diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-27 05:02:09 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-27 06:22:05 -0500 |
commit | eb3032f8b9c06b3ff06a318aa5842c5e14e1fa95 (patch) | |
tree | 3c3a6e1faf2ab9812205c8984581f814c701136a /sound/soc/codecs/wm8904.c | |
parent | 7c08b51f2fbb76b768d78ca6b0e13155d2c1e811 (diff) |
ASoC: Set idle_bias_off flag in snd_soc_codec_driver
Since commit 33c5f969 "ASoC: Allow idle_bias_off to be specified in CODEC
drivers", now we can set idle_bias_off flag in struct snd_soc_codec_driver
for devices can unconditionally support idle_bias_off.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8904.c')
-rw-r--r-- | sound/soc/codecs/wm8904.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 14afc1193343..37079eace412 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c | |||
@@ -2088,7 +2088,6 @@ static int wm8904_probe(struct snd_soc_codec *codec) | |||
2088 | int ret, i; | 2088 | int ret, i; |
2089 | 2089 | ||
2090 | codec->cache_sync = 1; | 2090 | codec->cache_sync = 1; |
2091 | codec->dapm.idle_bias_off = 1; | ||
2092 | codec->control_data = wm8904->regmap; | 2091 | codec->control_data = wm8904->regmap; |
2093 | 2092 | ||
2094 | switch (wm8904->devtype) { | 2093 | switch (wm8904->devtype) { |
@@ -2237,6 +2236,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8904 = { | |||
2237 | .suspend = wm8904_suspend, | 2236 | .suspend = wm8904_suspend, |
2238 | .resume = wm8904_resume, | 2237 | .resume = wm8904_resume, |
2239 | .set_bias_level = wm8904_set_bias_level, | 2238 | .set_bias_level = wm8904_set_bias_level, |
2239 | .idle_bias_off = true, | ||
2240 | }; | 2240 | }; |
2241 | 2241 | ||
2242 | static const struct regmap_config wm8904_regmap = { | 2242 | static const struct regmap_config wm8904_regmap = { |