summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDaniel Solomon <daniels@nvidia.com>2012-03-21 18:38:22 -0700
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-04-06 04:18:13 -0700
commit19cef88ead36b65744a3c81734a3c54e55245b1e (patch)
treec28022a486dbe6f96db4935b35e167d6549ba0bb /sound
parente6839d988cdb182908636d611220abaf2f870f2b (diff)
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 <daniels@nvidia.com> (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 <speterson@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5639.c2
-rw-r--r--sound/soc/codecs/rt5640.c2
2 files changed, 4 insertions, 0 deletions
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);