From: Charles Keepax Date: Mon, 28 Mar 2016 09:47:34 +0000 (+0100) Subject: ASoC: wm8962: Correct typo when setting DSPCLK rate X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~10298^2^2^3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=33362c69c8e68281633a7c3a1d5c840e940097b7;p=mirror_ubuntu-focal-kernel.git ASoC: wm8962: Correct typo when setting DSPCLK rate The variable dspclk holds the rate of the DSPCLK, but the variable sysclk holds an identifier for the clock. Currently if read a non-sensical value from the DSPCLK_DIV register we assign sysclk to dspclk, clearly this was intended to be sysclk_rate. Signed-off-by: Charles Keepax Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 88223608a33f..720a14e0687d 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2471,7 +2471,7 @@ static void wm8962_configure_bclk(struct snd_soc_codec *codec) break; default: dev_warn(codec->dev, "Unknown DSPCLK divisor read back\n"); - dspclk = wm8962->sysclk; + dspclk = wm8962->sysclk_rate; } dev_dbg(codec->dev, "DSPCLK is %dHz, BCLK %d\n", dspclk, wm8962->bclk);