diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2016-04-19 10:19:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-04-19 12:39:52 -0400 |
commit | fb137ba64a6415ddf231495f6d1a82de1cd69ed0 (patch) | |
tree | 153e08e6b9a0c7e51ad64c09c122f1c844be3409 | |
parent | 63a450aa4d08ccf4f53e9fa59144e746e2288319 (diff) |
ASoC: da7219: Disallow unsupported 32KHz clock setting in set_dai_sysclk()
The PLL function was updated to disallow 32KHz in
commit 501f72e9c520 ("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>
-rw-r--r-- | sound/soc/codecs/da7219.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 3b1d65badbda..caea2ee19d9a 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c | |||
@@ -1025,7 +1025,7 @@ static int da7219_set_dai_sysclk(struct snd_soc_dai *codec_dai, | |||
1025 | if ((da7219->clk_src == clk_id) && (da7219->mclk_rate == freq)) | 1025 | if ((da7219->clk_src == clk_id) && (da7219->mclk_rate == freq)) |
1026 | return 0; | 1026 | return 0; |
1027 | 1027 | ||
1028 | if (((freq < 2000000) && (freq != 32768)) || (freq > 54000000)) { | 1028 | if ((freq < 2000000) || (freq > 54000000)) { |
1029 | dev_err(codec_dai->dev, "Unsupported MCLK value %d\n", | 1029 | dev_err(codec_dai->dev, "Unsupported MCLK value %d\n", |
1030 | freq); | 1030 | freq); |
1031 | return -EINVAL; | 1031 | return -EINVAL; |