summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm512x-i2c.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-12-16 21:40:02 +0100
committerTakashi Iwai <tiwai@suse.de>2014-12-16 21:40:02 +0100
commita62bbe309338b73482be0de8fc2833d63771d61e (patch)
tree5531742a1c79e7083fa5a9f4260c09e3e61d3e11 /sound/soc/codecs/pcm512x-i2c.c
parent432ac1a2c028acb289d90f918e3a7b79e4ac8c07 (diff)
parentc52e5698efef1d9999d744be001be62d9fcabf55 (diff)
Merge tag 'asoc-v3.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Merge window fixes for v3.19 A smattering of driver specific fixes here, some more cleanup of the Exynos7 and Intel ACPI support plus a fix for register cache sync on the pcm512x driver which has been lurking for a while.
Diffstat (limited to 'sound/soc/codecs/pcm512x-i2c.c')
-rw-r--r--sound/soc/codecs/pcm512x-i2c.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm512x-i2c.c b/sound/soc/codecs/pcm512x-i2c.c
index 4d62230bd378..d0547fa275fc 100644
--- a/sound/soc/codecs/pcm512x-i2c.c
+++ b/sound/soc/codecs/pcm512x-i2c.c
@@ -24,8 +24,13 @@ static int pcm512x_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
struct regmap *regmap;
+ struct regmap_config config = pcm512x_regmap;
- regmap = devm_regmap_init_i2c(i2c, &pcm512x_regmap);
+ /* msb needs to be set to enable auto-increment of addresses */
+ config.read_flag_mask = 0x80;
+ config.write_flag_mask = 0x80;
+
+ regmap = devm_regmap_init_i2c(i2c, &config);
if (IS_ERR(regmap))
return PTR_ERR(regmap);