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)
commit2d38df12832186e592c1330dc5c363a778800cf1
treed68c908a53c693f758ec1f0220233db77d5036cd
parent732814c8ffedd33a6b54f149b07ddec13c49fce9
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