diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-06-26 01:09:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-30 10:53:25 -0400 |
commit | 182bef863cc37a9a387ae9bc0f1b05243234bd4a (patch) | |
tree | c6e884c9fbb3964bea0baa901b12ca60b8d933c0 /sound/soc/davinci/davinci-mcasp.c | |
parent | 7f28f357840fc857348b7ed42d7ee697cd221a59 (diff) |
ASoC: davinci-mcasp: Fix S24_LE and U24_LE support
In case of S24_LE/U24_LE modes we expect 24bits on the bus while the samples
are stored and transferred in memory on 32bits (lower 3 bytes of the 4
bytes).
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 0ee4986038cc..bfcc6c3dc2fd 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -720,6 +720,10 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream, | |||
720 | 720 | ||
721 | case SNDRV_PCM_FORMAT_U24_LE: | 721 | case SNDRV_PCM_FORMAT_U24_LE: |
722 | case SNDRV_PCM_FORMAT_S24_LE: | 722 | case SNDRV_PCM_FORMAT_S24_LE: |
723 | dma_params->data_type = 4; | ||
724 | word_length = 24; | ||
725 | break; | ||
726 | |||
723 | case SNDRV_PCM_FORMAT_U32_LE: | 727 | case SNDRV_PCM_FORMAT_U32_LE: |
724 | case SNDRV_PCM_FORMAT_S32_LE: | 728 | case SNDRV_PCM_FORMAT_S32_LE: |
725 | dma_params->data_type = 4; | 729 | dma_params->data_type = 4; |