]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: omap-pcm: Select sDMA synchronization based on packet_size
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 14 Sep 2012 12:05:50 +0000 (15:05 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 22 Sep 2012 15:12:57 +0000 (11:12 -0400)
commita01fa1d0554d5b07299cbca104a4bc23791739d8
treedd09673eda46ed03dbb4cf00394789e5a45852b4
parent83242e0454adee3519c7c908707b63679b0b19ef
ASoC: omap-pcm: Select sDMA synchronization based on packet_size

Since we only have element or packet synchronization we can use the
dma_data->packet_size to select the desired mode:
if packet_size is 0 we use ELEMENT mode
if packet_size is not 0 we use PACKET mode for sDMA synchronization.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-pcm.c