ASoC: adau17x1: Convert to params_width()
authorMark Brown <broonie@linaro.org>
Thu, 31 Jul 2014 11:28:24 +0000 (12:28 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 31 Jul 2014 12:30:01 +0000 (13:30 +0100)
The CODEC doesn't care how data is laid out in memory.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
sound/soc/codecs/adau17x1.c

index 2961fae9670a59ce51185648e55bdc0683797f5f..0b659704e60c0db2c425474857a5372e0702a22a 100644 (file)
@@ -359,14 +359,14 @@ static int adau17x1_hw_params(struct snd_pcm_substream *substream,
        if (adau->dai_fmt != SND_SOC_DAIFMT_RIGHT_J)
                return 0;
 
-       switch (params_format(params)) {
-       case SNDRV_PCM_FORMAT_S16_LE:
+       switch (params_width(params)) {
+       case 16:
                val = ADAU17X1_SERIAL_PORT1_DELAY16;
                break;
-       case SNDRV_PCM_FORMAT_S24_LE:
+       case 24:
                val = ADAU17X1_SERIAL_PORT1_DELAY8;
                break;
-       case SNDRV_PCM_FORMAT_S32_LE:
+       case 32:
                val = ADAU17X1_SERIAL_PORT1_DELAY0;
                break;
        default: