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 <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
f55532a0c0
commit
33362c69c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user