]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: generic-dmaengine-pcm: Check DMA residue granularity
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Jan 2014 13:02:19 +0000 (14:02 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 14 Jan 2014 21:28:39 +0000 (21:28 +0000)
commitc46412cec50a2ba4b0c97f38617be127c0910e31
tree8bebc11e20820e4a61b1ccbe8dd7ab9881571a15
parent7f8475956d37ec3791b4551a98888511e8c07ea2
ASoC: generic-dmaengine-pcm: Check DMA residue granularity

The dmaengine framework now exposes the granularity with which it is able to
report the transfer residue for a certain DMA channel. Check the granularity in
the generic dmaengine PCM driver and
a) Set the SNDRV_PCM_INFO_BATCH if the granularity is per period or worse.
b) Fallback to the (race condition prone) period counting if the driver does
not support any residue reporting.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-generic-dmaengine-pcm.c