Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342652
b: refs/heads/master
c: a7f9be7
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Nov 28, 2012
1 parent e71b838 commit 4bb20b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 973838a030d2a91fbd524c95281991510ed0a865
refs/heads/master: a7f9be7ec5503166164ee4a037d6d497964ccdb6
8 changes: 5 additions & 3 deletions trunk/sound/soc/codecs/wm_adsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,16 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,

ret = regmap_update_bits(dsp->regmap,
dsp->base + ADSP2_CONTROL,
ADSP2_SYS_ENA | ADSP2_START, 0);
ADSP2_CORE_ENA | ADSP2_START,
ADSP2_CORE_ENA | ADSP2_START);
if (ret != 0)
goto err;
break;

case SND_SOC_DAPM_PRE_PMD:
regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
ADSP2_SYS_ENA | ADSP2_START, 0);
ADSP2_SYS_ENA | ADSP2_CORE_ENA |
ADSP2_START, 0);

if (dsp->dvfs) {
ret = regulator_set_voltage(dsp->dvfs, 1200000,
Expand All @@ -620,7 +622,7 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
return 0;
err:
regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
ADSP2_SYS_ENA | ADSP2_START, 0);
ADSP2_SYS_ENA | ADSP2_CORE_ENA | ADSP2_START, 0);
return ret;
}
EXPORT_SYMBOL_GPL(wm_adsp2_event);
Expand Down

0 comments on commit 4bb20b6

Please sign in to comment.