]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix Blackfin I2S _pointer() implementation return in bounds values
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 13 Jun 2011 11:14:07 +0000 (12:14 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 29 Jun 2011 16:47:53 +0000 (09:47 -0700)
commit5d614d670992edeab73b1219c99a630f80c71cd5
tree7715fe9e51e7591a16c8c133b1c1347927ba9147
parent21a89e0809b614c226c1690704b04c8c44481e68
ASoC: Fix Blackfin I2S _pointer() implementation return in bounds values

The Blackfin DMA controller can report one frame beyond the end of the
buffer in the wraparound case but ALSA requires that the pointer always
be in the buffer. Do the wraparound to handle this. A similar bug is
likely to apply to the other Blackfin PCM drivers but the code is less
obvious to inspection and I don't have a user to test.

Reported-by: Kieran O'Leary <Kieran.O'Leary@wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
sound/soc/blackfin/bf5xx-i2s-pcm.c