Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257488
b: refs/heads/master
c: ea7b437
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jun 6, 2011
1 parent 3c5e15f commit 6cf983d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84abd1b395cf41269ffb5605a6ece3d6d7f8a3e1
refs/heads/master: ea7b4378364093678ff1724fa91c43913f97774b
6 changes: 6 additions & 0 deletions trunk/sound/soc/codecs/wm8915.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ struct wm8915_priv {
int ldo1ena;

int sysclk;
int sysclk_src;

int fll_src;
int fll_fref;
Expand Down Expand Up @@ -1834,6 +1835,9 @@ static int wm8915_set_sysclk(struct snd_soc_dai *dai,
int src;
int old;

if (freq == wm8915->sysclk && clk_id == wm8915->sysclk_src)
return 0;

/* Disable SYSCLK while we reconfigure */
old = snd_soc_read(codec, WM8915_AIF_CLOCKING_1) & WM8915_SYSCLK_ENA;
snd_soc_update_bits(codec, WM8915_AIF_CLOCKING_1,
Expand Down Expand Up @@ -1885,6 +1889,8 @@ static int wm8915_set_sysclk(struct snd_soc_dai *dai,
snd_soc_update_bits(codec, WM8915_AIF_CLOCKING_1,
WM8915_SYSCLK_ENA, old);

wm8915->sysclk_src = clk_id;

return 0;
}

Expand Down

0 comments on commit 6cf983d

Please sign in to comment.