ASoC: tlv320aic3x: Correct S24_3LE support
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 26 Jun 2014 05:06:55 +0000 (08:06 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 30 Jun 2014 14:51:40 +0000 (15:51 +0100)
Correct the hw_params callback to configure the codec correctly in case of
S24_3LE format since in case of S24_3LE the codec has been configured to
16bit format mode.
S24_LE is not defined as supported format for the codec.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/tlv320aic3x.c

index e12fafbb1e094c539663605a9bb5b5641c081f06..5360772bc1add02e30c6d4b5510ef9c0ab9ea06e 100644 (file)
@@ -879,7 +879,7 @@ static int aic3x_hw_params(struct snd_pcm_substream *substream,
        case SNDRV_PCM_FORMAT_S20_3LE:
                data |= (0x01 << 4);
                break;
-       case SNDRV_PCM_FORMAT_S24_LE:
+       case SNDRV_PCM_FORMAT_S24_3LE:
                data |= (0x02 << 4);
                break;
        case SNDRV_PCM_FORMAT_S32_LE:
This page took 0.032356 seconds and 5 git commands to generate.