aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-03-03 18:31:29 +0800
committerMark Brown <broonie@kernel.org>2015-03-04 17:29:46 +0000
commit2bf9eba14340a53776a742f2c8a0bfbd9c86d259 (patch)
tree5ab411c31bf3a96caa7bd3e2e0c65c7196c7810c /sound
parentASoC: rt5670: add API to select ASRC clock source (diff)
downloadlinux-dev-2bf9eba14340a53776a742f2c8a0bfbd9c86d259.tar.xz
linux-dev-2bf9eba14340a53776a742f2c8a0bfbd9c86d259.zip
ASoC: rt5670: Fix the speaker mono output issue
We need to set left/right control for the speaker amp to get stereo output on speaker. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5670.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 0632b7458a53..592f961b5de5 100644
--- a/sound/soc/codecs/rt5670.c
+++ b/sound/soc/codecs/rt5670.c
@@ -2700,6 +2700,12 @@ static int rt5670_i2c_probe(struct i2c_client *i2c,
regmap_write(rt5670->regmap, RT5670_RESET, 0);
+ regmap_read(rt5670->regmap, RT5670_VENDOR_ID, &val);
+ if (val >= 4)
+ regmap_write(rt5670->regmap, RT5670_GPIO_CTRL3, 0x0980);
+ else
+ regmap_write(rt5670->regmap, RT5670_GPIO_CTRL3, 0x0d00);
+
ret = regmap_register_patch(rt5670->regmap, init_list,
ARRAY_SIZE(init_list));
if (ret != 0)