aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs4270.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/cs4270.c')
-rw-r--r--sound/soc/codecs/cs4270.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
index ece6ed6a844f..153124b2e3b1 100644
--- a/sound/soc/codecs/cs4270.c
+++ b/sound/soc/codecs/cs4270.c
@@ -56,6 +56,7 @@
56#define CS4270_FIRSTREG 0x01 56#define CS4270_FIRSTREG 0x01
57#define CS4270_LASTREG 0x08 57#define CS4270_LASTREG 0x08
58#define CS4270_NUMREGS (CS4270_LASTREG - CS4270_FIRSTREG + 1) 58#define CS4270_NUMREGS (CS4270_LASTREG - CS4270_FIRSTREG + 1)
59#define CS4270_I2C_INCR 0x80
59 60
60/* Bit masks for the CS4270 registers */ 61/* Bit masks for the CS4270 registers */
61#define CS4270_CHIPID_ID 0xF0 62#define CS4270_CHIPID_ID 0xF0
@@ -296,7 +297,7 @@ static int cs4270_fill_cache(struct snd_soc_codec *codec)
296 s32 length; 297 s32 length;
297 298
298 length = i2c_smbus_read_i2c_block_data(i2c_client, 299 length = i2c_smbus_read_i2c_block_data(i2c_client,
299 CS4270_FIRSTREG | 0x80, CS4270_NUMREGS, cache); 300 CS4270_FIRSTREG | CS4270_I2C_INCR, CS4270_NUMREGS, cache);
300 301
301 if (length != CS4270_NUMREGS) { 302 if (length != CS4270_NUMREGS) {
302 dev_err(codec->dev, "i2c read failure, addr=0x%x\n", 303 dev_err(codec->dev, "i2c read failure, addr=0x%x\n",