Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120291
b: refs/heads/master
c: ca4513f
h: refs/heads/master
i:
  120289: bda1b54
  120287: a67b1a4
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Dec 9, 2008
1 parent b222b04 commit a944d20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: df339804bbfc118eaca066b95488a2dbacc2e258
refs/heads/master: ca4513fe06c483bf0111c990059d42f97288605d
12 changes: 2 additions & 10 deletions trunk/sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ static int twl4030_add_widgets(struct snd_soc_codec *codec)

static void twl4030_power_up(struct snd_soc_codec *codec)
{
u8 anamicl, regmisc1, byte, popn, hsgain;
u8 anamicl, regmisc1, byte, popn;
int i = 0;

/* set CODECPDZ to turn on codec */
Expand Down Expand Up @@ -925,28 +925,20 @@ static void twl4030_power_up(struct snd_soc_codec *codec)
popn |= TWL4030_VMID_EN;
twl4030_write(codec, TWL4030_REG_HS_POPN_SET, popn);

/* enable output stage and gain setting */
hsgain = TWL4030_HSR_GAIN_0DB | TWL4030_HSL_GAIN_0DB;
twl4030_write(codec, TWL4030_REG_HS_GAIN_SET, hsgain);

/* enable anti-pop ramp */
popn |= TWL4030_RAMP_EN;
twl4030_write(codec, TWL4030_REG_HS_POPN_SET, popn);
}

static void twl4030_power_down(struct snd_soc_codec *codec)
{
u8 popn, hsgain;
u8 popn;

/* disable anti-pop ramp */
popn = twl4030_read_reg_cache(codec, TWL4030_REG_HS_POPN_SET);
popn &= ~TWL4030_RAMP_EN;
twl4030_write(codec, TWL4030_REG_HS_POPN_SET, popn);

/* disable output stage and gain setting */
hsgain = TWL4030_HSR_GAIN_PWR_DOWN | TWL4030_HSL_GAIN_PWR_DOWN;
twl4030_write(codec, TWL4030_REG_HS_GAIN_SET, hsgain);

/* disable bias out */
popn &= ~TWL4030_VMID_EN;
twl4030_write(codec, TWL4030_REG_HS_POPN_SET, popn);
Expand Down

0 comments on commit a944d20

Please sign in to comment.