Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148318
b: refs/heads/master
c: 16a30fb
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed May 29, 2009
1 parent eaa23f1 commit fe2d685
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 203350c1a8e23adf17fd9a96d8bfc7adf63c1ff6
refs/heads/master: 16a30fbb0d3aa4ee829a2dd3d0e314e2b5ae96a9
4 changes: 2 additions & 2 deletions trunk/sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ struct twl4030_priv {
static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec,
unsigned int reg)
{
u8 *cache = codec->reg_cache;

if (reg >= TWL4030_CACHEREGNUM)
return -EIO;
Expand Down Expand Up @@ -204,14 +203,15 @@ static void twl4030_codec_enable(struct snd_soc_codec *codec, int enable)

static void twl4030_init_chip(struct snd_soc_codec *codec)
{
u8 *cache = codec->reg_cache;
int i;

/* clear CODECPDZ prior to setting register defaults */
twl4030_codec_enable(codec, 0);

/* set all audio section registers to reasonable defaults */
for (i = TWL4030_REG_OPTION; i <= TWL4030_REG_MISC_SET_2; i++)
twl4030_write(codec, i, twl4030_reg[i]);
twl4030_write(codec, i, cache[i]);

}

Expand Down

0 comments on commit fe2d685

Please sign in to comment.