From: Axel Lin Date: Tue, 23 Feb 2016 06:53:13 +0000 (+0800) Subject: ASoC: max9867: Use params_width instead of open-coded X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9dcc72efae313472d1d719e91b23e2bea3513789;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: max9867: Use params_width instead of open-coded Signed-off-by: Axel Lin Acked-by: anish kumar Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c index 4fb6fc7188c7..f371a52fe29d 100755 --- a/sound/soc/codecs/max9867.c +++ b/sound/soc/codecs/max9867.c @@ -207,10 +207,9 @@ static int max9867_dai_hw_params(struct snd_pcm_substream *substream, unsigned long int bclk_rate, pclk_bclk_ratio; int bclk_value; - bclk_rate = params_rate(params) * 2 * - snd_pcm_format_width(params_format(params)); + bclk_rate = params_rate(params) * 2 * params_width(params); pclk_bclk_ratio = max9867->pclk/bclk_rate; - switch (snd_pcm_format_width(params_format(params))) { + switch (params_width(params)) { case 8: case 16: switch (pclk_bclk_ratio) {