aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/rt5677.h3
-rw-r--r--sound/soc/codecs/rt5677.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/rt5677.h b/include/sound/rt5677.h
index d9eb7d861cd0..a6207043ac3c 100644
--- a/include/sound/rt5677.h
+++ b/include/sound/rt5677.h
@@ -37,6 +37,9 @@ struct rt5677_platform_data {
37 OFF, GPIO4, GPIO5 and GPIO6 respectively */ 37 OFF, GPIO4, GPIO5 and GPIO6 respectively */
38 unsigned int jd2_gpio; 38 unsigned int jd2_gpio;
39 unsigned int jd3_gpio; 39 unsigned int jd3_gpio;
40
41 /* Set MICBIAS1 VDD 1v8 or 3v3 */
42 bool micbias1_vdd_3v3;
40}; 43};
41 44
42#endif 45#endif
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,
4912 RT5677_GPIO5_DIR_OUT); 4912 RT5677_GPIO5_DIR_OUT);
4913 } 4913 }
4914 4914
4915 if (rt5677->pdata.micbias1_vdd_3v3)
4916 regmap_update_bits(rt5677->regmap, RT5677_MICBIAS,
4917 RT5677_MICBIAS1_CTRL_VDD_MASK,
4918 RT5677_MICBIAS1_CTRL_VDD_3_3V);
4919
4915 rt5677_init_gpio(i2c); 4920 rt5677_init_gpio(i2c);
4916 rt5677_init_irq(i2c); 4921 rt5677_init_irq(i2c);
4917 4922