summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/arizona.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-07 16:14:04 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-08 11:40:46 +0800
commit86cd684fcb3220f4aa20cf9e32fd1059373a608a (patch)
tree7fbfe9c92325710b375ba27008a97040403bc49a /sound/soc/codecs/arizona.c
parenteca2e8e24a0c712c2613ce5704e9e73b693d2e98 (diff)
downloadop-kernel-dev-86cd684fcb3220f4aa20cf9e32fd1059373a608a.zip
op-kernel-dev-86cd684fcb3220f4aa20cf9e32fd1059373a608a.tar.gz
ASoC: arizona: Suppress reference calculations when setting REFCLK to 0
Allow users to keep on specifying their output frequency when disabling the reference clock. Reported-by: Kyung Kwee Ryu <Kyung-Kwee.Ryu@wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/arizona.c')
-rw-r--r--sound/soc/codecs/arizona.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index 53ddd52..ad21d82 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -1249,7 +1249,7 @@ int arizona_set_fll_refclk(struct arizona_fll *fll, int source,
if (fll->ref_src == source && fll->ref_freq == Fref)
return 0;
- if (fll->fout) {
+ if (fll->fout && Fref > 0) {
ret = arizona_calc_fll(fll, &ref, Fref, fll->fout);
if (ret != 0)
return ret;
@@ -1265,7 +1265,7 @@ int arizona_set_fll_refclk(struct arizona_fll *fll, int source,
fll->ref_src = source;
fll->ref_freq = Fref;
- if (fll->fout) {
+ if (fll->fout && Fref > 0) {
arizona_enable_fll(fll, &ref, &sync);
}
OpenPOWER on IntegriCloud