summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5677.c
diff options
context:
space:
mode:
authorOder Chiou2015-01-08 03:31:06 +0100
committerMark Brown2015-01-08 19:36:02 +0100
commit277880a356c10adcb43604f6ab9ec9b2d64db8b2 (patch)
treeb2ba380212e71c14a84b656f888a64e855910dd1 /sound/soc/codecs/rt5677.c
parentASoC: rt5677: Adjust the routing of "PLL1" (diff)
downloadkernel-qcow2-linux-277880a356c10adcb43604f6ab9ec9b2d64db8b2.tar.gz
kernel-qcow2-linux-277880a356c10adcb43604f6ab9ec9b2d64db8b2.tar.xz
kernel-qcow2-linux-277880a356c10adcb43604f6ab9ec9b2d64db8b2.zip
ASoC: rt5677: Add the MICBIAS VDD setting in the platform data
The patch adds the MICBIAS VDD setting in the platform data. It can be set to 1V8 or 3V3 in the MICBIAS VDD. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5677.c')
-rw-r--r--sound/soc/codecs/rt5677.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index cf39fe6d0601..3b32c3ecbe05 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -4912,6 +4912,11 @@ static int rt5677_i2c_probe(struct i2c_client *i2c,
RT5677_GPIO5_DIR_OUT);
}
+ if (rt5677->pdata.micbias1_vdd_3v3)
+ regmap_update_bits(rt5677->regmap, RT5677_MICBIAS,
+ RT5677_MICBIAS1_CTRL_VDD_MASK,
+ RT5677_MICBIAS1_CTRL_VDD_3_3V);
+
rt5677_init_gpio(i2c);
rt5677_init_irq(i2c);