mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "ASoC: msm: qdsp6v2: write all periods to DSP on playback trigger"
This commit is contained in:
commit
f87e6e2e6c
1 changed files with 13 additions and 6 deletions
|
|
@ -265,12 +265,19 @@ static void event_handler(uint32_t opcode,
|
|||
break;
|
||||
}
|
||||
if (prtd->mmap_flag) {
|
||||
pr_debug("%s:writing %d bytes of buffer to dsp\n",
|
||||
__func__,
|
||||
prtd->pcm_count);
|
||||
q6asm_write_nolock(prtd->audio_client,
|
||||
prtd->pcm_count,
|
||||
0, 0, NO_TIMESTAMP);
|
||||
int cnt = prtd->pcm_size / prtd->pcm_count;
|
||||
|
||||
pr_debug("%s %d:buffer %d, period %d, %d writes\n",
|
||||
__func__, __LINE__,
|
||||
prtd->pcm_size, prtd->pcm_count, cnt);
|
||||
while (cnt--) {
|
||||
pr_debug("%s %d:writing %d bytes of buffer to dsp\n",
|
||||
__func__, __LINE__,
|
||||
prtd->pcm_count);
|
||||
q6asm_write_nolock(prtd->audio_client,
|
||||
prtd->pcm_count,
|
||||
0, 0, NO_TIMESTAMP);
|
||||
}
|
||||
} else {
|
||||
while (atomic_read(&prtd->out_needed)) {
|
||||
pr_debug("%s:writing %d bytes of buffer to dsp\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue