Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230415
b: refs/heads/master
c: 4f44ee1
h: refs/heads/master
i:
  230413: 5cfa1b0
  230411: 84fd65f
  230407: bb0f5e9
  230399: 650b1a5
v: v3
  • Loading branch information
Misael Lopez Cruz authored and Liam Girdwood committed Dec 14, 2010
1 parent cdf1231 commit a24d0d3
Show file tree
Hide file tree
Showing 3 changed files with 5 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: f1f489a6aa89993892cd7b4d08f67e7e110492cb
refs/heads/master: 4f44ee1f494edef1fea3db20565b2e209bef6280
10 changes: 3 additions & 7 deletions trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ static int twl6040_probe(struct snd_soc_codec *codec)
struct twl6040_data *priv;
int audpwron, naudint;
int ret = 0;
u8 icrev;
u8 icrev, intmr = TWL6040_ALLINT_MSK;

priv = kzalloc(sizeof(struct twl6040_data), GFP_KERNEL);
if (priv == NULL)
Expand Down Expand Up @@ -1154,16 +1154,12 @@ static int twl6040_probe(struct snd_soc_codec *codec)
priv->codec_powered = 0;

/* enable only codec ready interrupt */
twl6040_write(codec, TWL6040_REG_INTMR,
~TWL6040_READYMSK & TWL6040_ALLINT_MSK);
intmr &= ~(TWL6040_READYMSK | TWL6040_PLUGMSK);

/* reset interrupt status to allow correct power up sequence */
twl6040_read_reg_volatile(codec, TWL6040_REG_INTID);
} else {
/* no interrupts at all */
twl6040_write_reg_cache(codec, TWL6040_REG_INTMR,
TWL6040_ALLINT_MSK);
}
twl6040_write(codec, TWL6040_REG_INTMR, intmr);

if (naudint) {
/* audio interrupt */
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/soc/codecs/twl6040.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@

/* INTMR (0x04) fields */

#define TWL6040_PLUGMSK 0x02
#define TWL6040_READYMSK 0x40
#define TWL6040_ALLINT_MSK 0x7B

Expand Down

0 comments on commit a24d0d3

Please sign in to comment.