aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5640.c
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2014-03-30 22:21:10 -0400
committerMark Brown <broonie@linaro.org>2014-04-14 12:27:42 -0400
commit09caf300540c4a610dbe6e46afdab18f365be7e7 (patch)
tree1e5326f863b4a7dc213ff78d7856772241e5d174 /sound/soc/codecs/rt5640.c
parent3441e524293c5e8d640488e343f2eb2bcc944108 (diff)
ASoC: rt5640: Change the setting method of idle_bias_off
The patch moves the idle_bias_off setting to struct "soc_codec_dev_rt5640". Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.c')
-rw-r--r--sound/soc/codecs/rt5640.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index b6a02c16f100..a7db7ef38cfc 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -1879,7 +1879,6 @@ static int rt5640_probe(struct snd_soc_codec *codec)
1879 1879
1880 rt5640->codec = codec; 1880 rt5640->codec = codec;
1881 1881
1882 codec->dapm.idle_bias_off = 1;
1883 rt5640_set_bias_level(codec, SND_SOC_BIAS_OFF); 1882 rt5640_set_bias_level(codec, SND_SOC_BIAS_OFF);
1884 1883
1885 snd_soc_update_bits(codec, RT5640_DUMMY1, 0x0301, 0x0301); 1884 snd_soc_update_bits(codec, RT5640_DUMMY1, 0x0301, 0x0301);
@@ -1988,6 +1987,7 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5640 = {
1988 .suspend = rt5640_suspend, 1987 .suspend = rt5640_suspend,
1989 .resume = rt5640_resume, 1988 .resume = rt5640_resume,
1990 .set_bias_level = rt5640_set_bias_level, 1989 .set_bias_level = rt5640_set_bias_level,
1990 .idle_bias_off = true,
1991 .controls = rt5640_snd_controls, 1991 .controls = rt5640_snd_controls,
1992 .num_controls = ARRAY_SIZE(rt5640_snd_controls), 1992 .num_controls = ARRAY_SIZE(rt5640_snd_controls),
1993 .dapm_widgets = rt5640_dapm_widgets, 1993 .dapm_widgets = rt5640_dapm_widgets,