summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5640.c
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2016-10-17 14:14:04 +0300
committerMark Brown <broonie@kernel.org>2016-10-24 20:31:23 +0300
commit25fb7062484a219174baab0761e06bbfd8fa3b07 (patch)
tree2a0a278fce1a8ef09865fa5d17a38a230b9920f6 /sound/soc/codecs/rt5640.c
parent1001354ca34179f3db924eb66672442a173147dc (diff)
downloadlinux-25fb7062484a219174baab0761e06bbfd8fa3b07.tar.xz
ASoC: rt5640: enable MCLK detection
There is a power saving mechanism in rt5640. It will turn off some unused power when MCLK is not present. We call that "MCLK detection" and it should be enabled by default. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.c')
-rw-r--r--sound/soc/codecs/rt5640.c3
1 files changed, 3 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,
if (ret != 0)
dev_warn(&i2c->dev, "Failed to apply regmap patch: %d\n", ret);
+ regmap_update_bits(rt5640->regmap, RT5640_DUMMY1,
+ RT5640_MCLK_DET, RT5640_MCLK_DET);
+
if (rt5640->pdata.in1_diff)
regmap_update_bits(rt5640->regmap, RT5640_IN1_IN2,
RT5640_IN_DF1, RT5640_IN_DF1);