Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230413
b: refs/heads/master
c: 99903ea
h: refs/heads/master
i:
  230411: 84fd65f
v: v3
  • Loading branch information
Olaya, Margarita authored and Liam Girdwood committed Dec 14, 2010
1 parent 5594fc0 commit 5cfa1b0
Show file tree
Hide file tree
Showing 2 changed files with 10 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: cb973d78f82f038c7d8d78d469fb89842d246871
refs/heads/master: 99903ea23655a43ce4f75b64fef69e341fd0b7df
13 changes: 9 additions & 4 deletions trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ static int twl6040_probe(struct snd_soc_codec *codec)
struct twl6040_data *priv;
int audpwron, naudint;
int ret = 0;
u8 icrev;

priv = kzalloc(sizeof(struct twl6040_data), GFP_KERNEL);
if (priv == NULL)
Expand All @@ -1116,13 +1117,17 @@ static int twl6040_probe(struct snd_soc_codec *codec)

priv->codec = codec;

if (twl_codec) {
twl_i2c_read_u8(TWL_MODULE_AUDIO_VOICE, &icrev, TWL6040_REG_ASICREV);

if (twl_codec && (icrev > 0))
audpwron = twl_codec->audpwron_gpio;
naudint = twl_codec->naudint_irq;
} else {
else
audpwron = -EINVAL;

if (twl_codec)
naudint = twl_codec->naudint_irq;
else
naudint = 0;
}

priv->audpwron = audpwron;
priv->naudint = naudint;
Expand Down

0 comments on commit 5cfa1b0

Please sign in to comment.