Skip to contentSkip to conversation

ASoC: fsl: Drop formats limitation for imx-pcm-dma.c

PATCH Applied Nicolin Chen 2 participants 2 messages Apr 24, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: fsl: Drop formats limitation for imx-pcm-dma.c

Now ASoC core is getting the intersection of supported formats not only from CPU and CODEC dai's but also from DMA's. However, there should be no specific width limitation from SDMA side.

So drop it. Otherwise, we would only support S16_LE format for all i.MX platforms.

---
 sound/soc/fsl/imx-pcm-dma.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/fsl/imx-pcm-dma.c +0 -1
index 2585ae4..0849b7b 100644
@@ -40,7 +40,6 @@ static const struct snd_pcm_hardware imx_pcm_hardware = {
 		SNDRV_PCM_INFO_MMAP_VALID |
 		SNDRV_PCM_INFO_PAUSE |
 		SNDRV_PCM_INFO_RESUME,
-	.formats = SNDRV_PCM_FMTBIT_S16_LE,
 	.buffer_bytes_max = IMX_SSI_DMABUF_SIZE,
 	.period_bytes_min = 128,
 	.period_bytes_max = 65535, /* Limited by SDMA engine */
Signature · 1 line
1.8.4
maintainer Applied
#1 lore raw
Quoted 3 lines · Nicolin Chen

Now ASoC core is getting the intersection of supported formats not only from CPU and CODEC dai's but also from DMA's. However, there should be no specific width limitation from SDMA side.

Applied, thanks.