Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb137ba6 authored by Adam Thomson's avatar Adam Thomson Committed by Mark Brown
Browse files

ASoC: da7219: Disallow unsupported 32KHz clock setting in set_dai_sysclk()



The PLL function was updated to disallow 32KHz in
commit 501f72e9 ("ASoC: da7219: Remove support for 32KHz PLL mode"),
but set_dai_sysclk() was missed and still permits it. This patch resolves
that discrepancy.

Signed-off-by: default avatarAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 63a450aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1025,7 +1025,7 @@ static int da7219_set_dai_sysclk(struct snd_soc_dai *codec_dai,
	if ((da7219->clk_src == clk_id) && (da7219->mclk_rate == freq))
		return 0;

	if (((freq < 2000000) && (freq != 32768)) || (freq > 54000000)) {
	if ((freq < 2000000) || (freq > 54000000)) {
		dev_err(codec_dai->dev, "Unsupported MCLK value %d\n",
			freq);
		return -EINVAL;