ALSA: ASoC: McASP: add support for 24 bit samples
PATCH v2 1/1 ALSA: ASoC: McASP: add support for 24 bit samples
Signed-off-by Daniel Mack <[email protected]>
Cc Hebbar, Gururaja <[email protected]>
Cc Matt Porter <[email protected]>
---
v2: also enable 24bit in the DAI
sound/soc/davinci/davinci-mcasp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
sound/soc/davinci/davinci-mcasp.c +12 -0
@@ -839,6 +839,14 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream, word_length =DAVINCI_AUDIO_WORD_16 ;break ; +case SNDRV_PCM_FORMAT_U24_3LE : +case SNDRV_PCM_FORMAT_S24_3LE : +case SNDRV_PCM_FORMAT_U24_LE : +case SNDRV_PCM_FORMAT_S24_LE : + dma_params->data_type =3 ; + word_length =DAVINCI_AUDIO_WORD_24 ; +break ; +case SNDRV_PCM_FORMAT_U32_LE :case SNDRV_PCM_FORMAT_S32_LE : dma_params->data_type =4 ;
@@ -917,6 +925,10 @@ static const struct snd_soc_dai_ops davinci_mcasp_dai_ops = {SNDRV_PCM_FMTBIT_U8 | \SNDRV_PCM_FMTBIT_S16_LE | \SNDRV_PCM_FMTBIT_U16_LE | \ +SNDRV_PCM_FMTBIT_S24_LE | \ +SNDRV_PCM_FMTBIT_U24_LE | \ +SNDRV_PCM_FMTBIT_S24_3LE | \ +SNDRV_PCM_FMTBIT_U24_3LE | \SNDRV_PCM_FMTBIT_S32_LE | \ SNDRV_PCM_FMTBIT_U32_LE)
Signature · 1 line
1.7.11.4
Mark Brown
AppliedQuoted 3 lines · Daniel Mack
Signed-off-by Daniel Mack <[email protected]>Cc Hebbar, Gururaja <[email protected]>Cc Matt Porter <[email protected]>
Applied, thanks.