ASoC: McASP: treat SNDRV_PCM_FORMAT_U24_* as 32 bit words
authorDaniel Mack <zonque@gmail.com>
Tue, 9 Oct 2012 09:56:40 +0000 (11:56 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Oct 2012 02:24:48 +0000 (11:24 +0900)
Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-mcasp.c

index 05a2b1e6fd42553b5a628ada3406c3c80930ddbb..4fd149bb1ae7cf23634cd2c34b96f1fa4f08d38e 100644 (file)
@@ -867,12 +867,12 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream,
 
        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_U24_LE:
+       case SNDRV_PCM_FORMAT_S24_LE:
        case SNDRV_PCM_FORMAT_U32_LE:
        case SNDRV_PCM_FORMAT_S32_LE:
                dma_params->data_type = 4;