Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148254
b: refs/heads/master
c: 80ab881
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Mack authored and Mark Brown committed May 5, 2009
1 parent 771b296 commit ee27cad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: e6e55122a54db87e22c67477de2a9978a3e4c81b
refs/heads/master: 80ab8817bf9b740df1f0778c41875e93151409bf
3 changes: 2 additions & 1 deletion trunk/sound/soc/codecs/cs4270.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#define CS4270_FIRSTREG 0x01
#define CS4270_LASTREG 0x08
#define CS4270_NUMREGS (CS4270_LASTREG - CS4270_FIRSTREG + 1)
#define CS4270_I2C_INCR 0x80

/* Bit masks for the CS4270 registers */
#define CS4270_CHIPID_ID 0xF0
Expand Down Expand Up @@ -296,7 +297,7 @@ static int cs4270_fill_cache(struct snd_soc_codec *codec)
s32 length;

length = i2c_smbus_read_i2c_block_data(i2c_client,
CS4270_FIRSTREG | 0x80, CS4270_NUMREGS, cache);
CS4270_FIRSTREG | CS4270_I2C_INCR, CS4270_NUMREGS, cache);

if (length != CS4270_NUMREGS) {
dev_err(codec->dev, "i2c read failure, addr=0x%x\n",
Expand Down

0 comments on commit ee27cad

Please sign in to comment.