ASoC: alc5632: Use params_width() rather than memory format
authorMark Brown <broonie@linaro.org>
Wed, 8 Jan 2014 19:28:27 +0000 (19:28 +0000)
committerMark Brown <broonie@linaro.org>
Mon, 13 Jan 2014 11:45:50 +0000 (11:45 +0000)
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/alc5632.c

index 19e9f222d09c0934cb184843b40ff0ad52b4a1ec..fb001c56cf8d63525d3350f54c96e117454d06bd 100644 (file)
@@ -869,14 +869,14 @@ static int alc5632_pcm_hw_params(struct snd_pcm_substream *substream,
        iface &= ~ALC5632_DAI_I2S_DL_MASK;
 
        /* bit size */
-       switch (params_format(params)) {
-       case SNDRV_PCM_FORMAT_S16_LE:
+       switch (params_width(params)) {
+       case 16:
                iface |= ALC5632_DAI_I2S_DL_16;
                break;
-       case SNDRV_PCM_FORMAT_S20_3LE:
+       case 20:
                iface |= ALC5632_DAI_I2S_DL_20;
                break;
-       case SNDRV_PCM_FORMAT_S24_LE:
+       case 24:
                iface |= ALC5632_DAI_I2S_DL_24;
                break;
        default: