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>
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;
fll->ref_src = source;
fll->ref_freq = Fref;
- if (fll->fout) {
+ if (fll->fout && Fref > 0) {
arizona_enable_fll(fll, &ref, &sync);
}