diff options
-rw-r--r-- | sound/soc/codecs/rt5670.c | 6 |
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, | |||
2700 | 2700 | ||
2701 | regmap_write(rt5670->regmap, RT5670_RESET, 0); | 2701 | regmap_write(rt5670->regmap, RT5670_RESET, 0); |
2702 | 2702 | ||
2703 | regmap_read(rt5670->regmap, RT5670_VENDOR_ID, &val); | ||
2704 | if (val >= 4) | ||
2705 | regmap_write(rt5670->regmap, RT5670_GPIO_CTRL3, 0x0980); | ||
2706 | else | ||
2707 | regmap_write(rt5670->regmap, RT5670_GPIO_CTRL3, 0x0d00); | ||
2708 | |||
2703 | ret = regmap_register_patch(rt5670->regmap, init_list, | 2709 | ret = regmap_register_patch(rt5670->regmap, init_list, |
2704 | ARRAY_SIZE(init_list)); | 2710 | ARRAY_SIZE(init_list)); |
2705 | if (ret != 0) | 2711 | if (ret != 0) |