diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-04-25 07:20:30 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-04-26 10:26:13 -0400 |
commit | 5e5e2bef287b96ab29d2d93e89ecf0888323d7bf (patch) | |
tree | 8eaa52dd55c2cf9766a2b9c45e75a22b5c95cae4 /sound/soc/codecs/wm8994.c | |
parent | 759512fbacfbb6fd9b7f77f9806fb4995775848f (diff) |
ASoC: Warn on low WM8994 AIFCLK
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index cdfbfb633f30..f04a116e678b 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -1769,6 +1769,11 @@ static int configure_aif_clock(struct snd_soc_codec *codec, int aif) | |||
1769 | dev_dbg(codec->dev, "Dividing AIF%d clock to %dHz\n", | 1769 | dev_dbg(codec->dev, "Dividing AIF%d clock to %dHz\n", |
1770 | aif + 1, rate); | 1770 | aif + 1, rate); |
1771 | } | 1771 | } |
1772 | |||
1773 | if (rate && rate < 3000000) | ||
1774 | dev_warn(codec->dev, "AIF%dCLK is %dHz, should be >=3MHz for optimal performance\n", | ||
1775 | aif + 1, rate); | ||
1776 | |||
1772 | wm8994->aifclk[aif] = rate; | 1777 | wm8994->aifclk[aif] = rate; |
1773 | 1778 | ||
1774 | snd_soc_update_bits(codec, WM8994_AIF1_CLOCKING_1 + offset, | 1779 | snd_soc_update_bits(codec, WM8994_AIF1_CLOCKING_1 + offset, |