Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371781
b: refs/heads/master
c: 1c5617f
h: refs/heads/master
i:
  371779: 2bcb07f
v: v3
  • Loading branch information
Charles Keepax authored and Mark Brown committed Mar 4, 2013
1 parent a33ce72 commit f96f655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddbce97cd1798ba4661e33662c659b168e9f51ed
refs/heads/master: 1c5617fc230b399c1d84711b8a2e316199387eb9
15 changes: 6 additions & 9 deletions trunk/sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,30 +1183,27 @@ int arizona_set_fll_refclk(struct arizona_fll *fll, int source,
if (source < 0)
return -EINVAL;

if (fll->ref_src == source && fll->ref_freq == Fref &&
fll->fout == Fout)
if (fll->ref_src == source && fll->ref_freq == Fref)
return 0;

if (Fout) {
ret = arizona_calc_fll(fll, &ref, Fref, Fout);
if (fll->fout) {
ret = arizona_calc_fll(fll, &ref, Fref, fll->fout);
if (ret != 0)
return ret;

if (fll->sync_src >= 0) {
ret = arizona_calc_fll(fll, &sync, fll->sync_freq, Fout);
ret = arizona_calc_fll(fll, &sync, fll->sync_freq,
fll->fout);
if (ret != 0)
return ret;
}
}

fll->ref_src = source;
fll->ref_freq = Fref;
fll->fout = Fout;

if (Fout) {
if (fll->fout) {
arizona_enable_fll(fll, &ref, &sync);
} else {
arizona_disable_fll(fll);
}

return 0;
Expand Down

0 comments on commit f96f655

Please sign in to comment.