Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371775
b: refs/heads/master
c: 7604054
h: refs/heads/master
i:
  371773: cda430a
  371771: 4e30af8
  371767: 1a922e9
  371759: 7f1a8a9
  371743: 21248c7
  371711: b6d643f
v: v3
  • Loading branch information
Charles Keepax authored and Mark Brown committed Mar 4, 2013
1 parent 6f1b331 commit a5f5b51
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 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: d122d6c974e35c940a638c26aa70bea363141d27
refs/heads/master: 7604054e13897c2da3570e33a67ecb76462212d8
22 changes: 15 additions & 7 deletions trunk/sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,20 @@ static bool arizona_is_enabled_fll(struct arizona_fll *fll)
return reg & ARIZONA_FLL1_ENA;
}

static void arizona_disable_fll(struct arizona_fll *fll)
{
struct arizona *arizona = fll->arizona;
bool change;

regmap_update_bits_check(arizona->regmap, fll->base + 1,
ARIZONA_FLL1_ENA, 0, &change);
regmap_update_bits(arizona->regmap, fll->base + 0x11,
ARIZONA_FLL1_SYNC_ENA, 0);

if (change)
pm_runtime_put_autosuspend(arizona->dev);
}

int arizona_set_fll(struct arizona_fll *fll, int source,
unsigned int Fref, unsigned int Fout)
{
Expand Down Expand Up @@ -1156,13 +1170,7 @@ int arizona_set_fll(struct arizona_fll *fll, int source,
if (ret == 0)
arizona_fll_warn(fll, "Timed out waiting for lock\n");
} else {
regmap_update_bits(arizona->regmap, fll->base + 1,
ARIZONA_FLL1_ENA, 0);
regmap_update_bits(arizona->regmap, fll->base + 0x11,
ARIZONA_FLL1_SYNC_ENA, 0);

if (ena)
pm_runtime_put_autosuspend(arizona->dev);
arizona_disable_fll(fll);
}

fll->fref = Fref;
Expand Down

0 comments on commit a5f5b51

Please sign in to comment.