summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Alonso <aalonso@freescale.com>2012-04-09 12:18:08 -0500
committerAdrian Alonso <aalonso@freescale.com>2012-04-10 16:10:51 -0500
commit8a08d00d0aea12baa1590a37ebc6ab945aa9ec3c (patch)
tree37113ffe0dec7e2e5292d46ba9c579aeeff32077
parent5744953ee278f9deac3c51221b1414ef9c509a11 (diff)
ENGR00179230: imx-esai add record support for S24_LE format
* Add record support for S24_LE and S20_3LE bit format. Signed-off-by: Adrian Alonso <aalonso@freescale.com>
-rw-r--r--sound/soc/imx/imx-esai.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/imx/imx-esai.c b/sound/soc/imx/imx-esai.c
index f6361716c20c..22edbf949763 100644
--- a/sound/soc/imx/imx-esai.c
+++ b/sound/soc/imx/imx-esai.c
@@ -375,6 +375,14 @@ static int imx_esai_hw_rx_params(struct snd_pcm_substream *substream,
rfcr |= ESAI_WORD_LEN_16;
rcr |= ESAI_RCR_RSHFD_MSB | ESAI_RCR_RSWS_STL32_WDL16;
break;
+ case SNDRV_PCM_FORMAT_S20_3LE:
+ rfcr |= ESAI_WORD_LEN_20;
+ rcr |= ESAI_RCR_RSHFD_MSB | ESAI_RCR_RSWS_STL32_WDL20;
+ break;
+ case SNDRV_PCM_FORMAT_S24_LE:
+ rfcr |= ESAI_WORD_LEN_24;
+ rcr |= ESAI_RCR_RSHFD_MSB | ESAI_RCR_RSWS_STL32_WDL24;
+ break;
}
channels = params_channels(params);