Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371779
b: refs/heads/master
c: f3f1163
h: refs/heads/master
i:
  371777: d1fe78b
  371775: a5f5b51
v: v3
  • Loading branch information
Charles Keepax authored and Mark Brown committed Mar 4, 2013
1 parent 23c7d07 commit 2bcb07f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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: ee929a9780605f21ad67a1ccb626baa41e038c1a
refs/heads/master: f3f1163d19ebd5aa374e5df5372a8f932f2bd5f9
8 changes: 4 additions & 4 deletions trunk/sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ int arizona_set_fll(struct arizona_fll *fll, int source,
int ret;

if (fll->ref_src < 0 || fll->ref_src == source) {
if (fll->sync_src == -1 &&
if (fll->sync_src == ARIZONA_FLL_SRC_NONE &&
fll->ref_src == source && fll->ref_freq == Fref &&
fll->fout == Fout)
return 0;
Expand All @@ -1196,7 +1196,7 @@ int arizona_set_fll(struct arizona_fll *fll, int source,
return ret;
}

fll->sync_src = -1;
fll->sync_src = ARIZONA_FLL_SRC_NONE;
fll->ref_src = source;
fll->ref_freq = Fref;
} else {
Expand Down Expand Up @@ -1240,7 +1240,7 @@ int arizona_init_fll(struct arizona *arizona, int id, int base, int lock_irq,
fll->id = id;
fll->base = base;
fll->arizona = arizona;
fll->sync_src = -1;
fll->sync_src = ARIZONA_FLL_SRC_NONE;

/* Configure default refclk to 32kHz if we have one */
regmap_read(arizona->regmap, ARIZONA_CLOCK_32K_1, &val);
Expand All @@ -1250,7 +1250,7 @@ int arizona_init_fll(struct arizona *arizona, int id, int base, int lock_irq,
fll->ref_src = val & ARIZONA_CLK_32K_SRC_MASK;
break;
default:
fll->ref_src = -1;
fll->ref_src = ARIZONA_FLL_SRC_NONE;
}
fll->ref_freq = 32768;

Expand Down
1 change: 1 addition & 0 deletions trunk/sound/soc/codecs/arizona.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define ARIZONA_CLK_SRC_AIF2BCLK 0x9
#define ARIZONA_CLK_SRC_AIF3BCLK 0xa

#define ARIZONA_FLL_SRC_NONE -1
#define ARIZONA_FLL_SRC_MCLK1 0
#define ARIZONA_FLL_SRC_MCLK2 1
#define ARIZONA_FLL_SRC_SLIMCLK 3
Expand Down

0 comments on commit 2bcb07f

Please sign in to comment.