summaryrefslogtreecommitdiff
path: root/include/linux/ring_buffer.h
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-04-14 10:55:34 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2019-04-14 16:47:22 +0800
commit5d6cbeafb80c52af322a45985aa7b41f9b9ec66c (patch)
treeb057cd68f3543bfbc310b4989ac099cb980c7192 /include/linux/ring_buffer.h
parent7a0078775fb8681c4e12e434e8a4aba15e467e42 (diff)
MLK-21447: ASoC: fsl_rpmsg_i2s: underrun in m4 for msg delayed
With small buffer size, the resume will be triggered after suspend immediately, if we reserve the period done message to be sent with the next command, one period time later, it will cause underrun in m4 side, for ALSA thought the appl_ptr is updated, but the command won't be sent to M4 immediately, M4 don't have enough data to play. In this patch, we check that if the left size in the buffer is less that one period, the work queue will be triggered to send the period done message immediately. Fixes: 348d47695622 ("MLK-21307: ASoC: fsl_rpmsg_i2s: optimize the message sent to m4") Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 3dfecae40765329c0b7de1157f97ade24ecfce6d)
Diffstat (limited to 'include/linux/ring_buffer.h')
0 files changed, 0 insertions, 0 deletions