ASoC: arizona: Use the more idiomatic params_width
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 9 Jul 2015 10:28:46 +0000 (11:28 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jul 2015 10:51:43 +0000 (11:51 +0100)
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c

index a88202d..c246fbd 100644 (file)
@@ -1504,7 +1504,7 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
        else
                rates = &arizona_48k_bclk_rates[0];
 
-       wl = snd_pcm_format_width(params_format(params));
+       wl = params_width(params);
 
        if (tdm_slots) {
                arizona_aif_dbg(dai, "Configuring for %d %d bit TDM slots\n",