Skip to content

Commit

Permalink
ASoC: da7219: Disallow unsupported 32KHz clock setting in set_dai_sys…
Browse files Browse the repository at this point in the history
…clk()

The PLL function was updated to disallow 32KHz in
commit 501f72e ("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: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Adam Thomson authored and Mark Brown committed Apr 19, 2016
1 parent 63a450a commit fb137ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/da7219.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb137ba

Please sign in to comment.