From 19cef88ead36b65744a3c81734a3c54e55245b1e Mon Sep 17 00:00:00 2001 From: Daniel Solomon Date: Wed, 21 Mar 2012 18:38:22 -0700 Subject: asoc: codecs: Enable bias off when idle for rt5639 and rt5640 Allow bias off in order to turn off clock extern1 when codec is not used. Bug 957635 Signed-off-by: Daniel Solomon (cherry picked from commit adc6929ab3170acd6a0b2cee4f65fa20a1c1d30f) Change-Id: I4f2e91b0cd9bb4516a5722d2df268f08e78f92e2 Reviewed-on: http://git-master/r/93949 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson Reviewed-by: Sumit Bhattacharya --- sound/soc/codecs/rt5639.c | 2 ++ sound/soc/codecs/rt5640.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'sound') diff --git a/sound/soc/codecs/rt5639.c b/sound/soc/codecs/rt5639.c index 139503e0d32a..06c8451a27c8 100644 --- a/sound/soc/codecs/rt5639.c +++ b/sound/soc/codecs/rt5639.c @@ -2239,6 +2239,8 @@ static int rt5639_probe(struct snd_soc_codec *codec) struct rt5639_priv *rt5639 = snd_soc_codec_get_drvdata(codec); int ret; + codec->dapm.idle_bias_off = 1; + ret = snd_soc_codec_set_cache_io(codec, 8, 16, SND_SOC_I2C); if (ret != 0) { dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index e3d0af02e392..4f50b39cb48a 100644 --- a/sound/soc/codecs/rt5640.c +++ b/sound/soc/codecs/rt5640.c @@ -2302,6 +2302,8 @@ static int rt5640_probe(struct snd_soc_codec *codec) int ret; u16 val; + codec->dapm.idle_bias_off = 1; + ret = snd_soc_codec_set_cache_io(codec, 8, 16, SND_SOC_I2C); if (ret != 0) { dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); -- cgit v1.2.3