From: Daniel Mack Date: Tue, 9 Oct 2012 09:56:40 +0000 (+0200) Subject: ASoC: McASP: treat SNDRV_PCM_FORMAT_U24_* as 32 bit words X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6b7fa011571d10309cd2b39511f895cef9dd536c;p=openwrt%2Fstaging%2Fblogic.git ASoC: McASP: treat SNDRV_PCM_FORMAT_U24_* as 32 bit words Signed-off-by: Daniel Mack Reported-by: Mike Looijmans Signed-off-by: Mark Brown --- diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 05a2b1e6fd42..4fd149bb1ae7 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -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;