summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm0010.c
diff options
context:
space:
mode:
authorKoro Chen <koro.chen@mediatek.com>2015-09-14 08:51:17 +0200
committerMark Brown <broonie@kernel.org>2015-09-14 19:13:54 +0200
commite4fba9b5be12d577d2e2c19fdca6b0744c3f271e (patch)
treea5baa4b7e21809e256239781d862b5a1dc0eb9d6 /sound/soc/codecs/wm0010.c
parentLinux 4.3-rc1 (diff)
downloadlinux-e4fba9b5be12d577d2e2c19fdca6b0744c3f271e.tar.xz
linux-e4fba9b5be12d577d2e2c19fdca6b0744c3f271e.zip
ASoC: mediatek: Increase periods_min in capture
In capture, there is chance that hw_ptr reported at IRQ is a little smaller than period_size due to internal AFE buffer. In the case of ping-pong buffer: |xxxxxxxxxxxxxxxxxxxxxxxxxxxx--|-----------------------------| hw_ptr < period_size This available buffer will not be read since its size is smaller than avail_min (which is period_size by default), and read thread continues to sleep. If the next hw_ptr is just a little larger than buffer_size, overrun occurs. One more period can hold the possible unread buffer. Signed-off-by: Koro Chen <koro.chen@mediatek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm0010.c')
0 files changed, 0 insertions, 0 deletions