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)
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

Simple merge