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

index 53b455b8c07a76dfabd63e46d2ca934a418061bb..5839048ec4674e5d20cc5f06e206c2210977999e 100644 (file)
@@ -951,11 +951,11 @@ static int isabelle_hw_params(struct snd_pcm_substream *substream,
                        ISABELLE_FS_RATE_MASK, fs_val);
 
        /* bit size */
-       switch (params_format(params)) {
-       case SNDRV_PCM_FORMAT_S20_3LE:
+       switch (params_width(params)) {
+       case 20:
                aif |= ISABELLE_AIF_LENGTH_20;
                break;
-       case SNDRV_PCM_FORMAT_S32_LE:
+       case 32:
                aif |= ISABELLE_AIF_LENGTH_32;
                break;
        default: