]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: generic-dmaengine-pcm: Prepare formats mask for valid physical sample sizes
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 3 Jul 2014 04:51:54 +0000 (07:51 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 4 Jul 2014 17:55:21 +0000 (18:55 +0100)
commit5cf5dc74615b4cf3e26923cac5d456bb81e96c92
treed68c908a53c693f758ec1f0220233db77d5036cd
parent97db40e6f687ca401cbb480081515d197d6a7fe0
ASoC: generic-dmaengine-pcm: Prepare formats mask for valid physical sample sizes

Based on the dma_slave_caps's addr_widths queried from the dma driver
prepare the hw.formats mask to include only formats which is supported by
the DMA engine.
In case the dma driver does not implement the slave_caps the default
assumption is that it supports 1, 2 and 4 bytes widths.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-generic-dmaengine-pcm.c