aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/rt5640.c3
-rw-r--r--sound/soc/codecs/rt5640.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 3cc1135fc2cd..0a7378f81acb 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2407,6 +2407,9 @@ static int rt5640_i2c_probe(struct i2c_client *i2c,
2407 if (ret != 0) 2407 if (ret != 0)
2408 dev_warn(&i2c->dev, "Failed to apply regmap patch: %d\n", ret); 2408 dev_warn(&i2c->dev, "Failed to apply regmap patch: %d\n", ret);
2409 2409
2410 regmap_update_bits(rt5640->regmap, RT5640_DUMMY1,
2411 RT5640_MCLK_DET, RT5640_MCLK_DET);
2412
2410 if (rt5640->pdata.in1_diff) 2413 if (rt5640->pdata.in1_diff)
2411 regmap_update_bits(rt5640->regmap, RT5640_IN1_IN2, 2414 regmap_update_bits(rt5640->regmap, RT5640_IN1_IN2,
2412 RT5640_IN_DF1, RT5640_IN_DF1); 2415 RT5640_IN_DF1, RT5640_IN_DF1);
diff --git a/sound/soc/codecs/rt5640.h b/sound/soc/codecs/rt5640.h
index 90c88711c72a..22c017c58d5b 100644
--- a/sound/soc/codecs/rt5640.h
+++ b/sound/soc/codecs/rt5640.h
@@ -1970,6 +1970,8 @@
1970#define RT5640_ZCD_HP_DIS (0x0 << 15) 1970#define RT5640_ZCD_HP_DIS (0x0 << 15)
1971#define RT5640_ZCD_HP_EN (0x1 << 15) 1971#define RT5640_ZCD_HP_EN (0x1 << 15)
1972 1972
1973/* General Control 1 (0xfa) */
1974#define RT5640_MCLK_DET (0x1 << 11)
1973 1975
1974/* Codec Private Register definition */ 1976/* Codec Private Register definition */
1975/* 3D Speaker Control (0x63) */ 1977/* 3D Speaker Control (0x63) */