diff options
Diffstat (limited to 'sound/soc/codecs/wm8990.c')
-rw-r--r-- | sound/soc/codecs/wm8990.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c index 264828e4e67c..309664ea7dc3 100644 --- a/sound/soc/codecs/wm8990.c +++ b/sound/soc/codecs/wm8990.c | |||
@@ -914,11 +914,12 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
914 | 914 | ||
915 | static int wm8990_add_widgets(struct snd_soc_codec *codec) | 915 | static int wm8990_add_widgets(struct snd_soc_codec *codec) |
916 | { | 916 | { |
917 | snd_soc_dapm_new_controls(codec, wm8990_dapm_widgets, | 917 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
918 | ARRAY_SIZE(wm8990_dapm_widgets)); | ||
919 | 918 | ||
919 | snd_soc_dapm_new_controls(dapm, wm8990_dapm_widgets, | ||
920 | ARRAY_SIZE(wm8990_dapm_widgets)); | ||
920 | /* set up the WM8990 audio map */ | 921 | /* set up the WM8990 audio map */ |
921 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 922 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
922 | 923 | ||
923 | return 0; | 924 | return 0; |
924 | } | 925 | } |
@@ -1170,7 +1171,7 @@ static int wm8990_set_bias_level(struct snd_soc_codec *codec, | |||
1170 | break; | 1171 | break; |
1171 | 1172 | ||
1172 | case SND_SOC_BIAS_STANDBY: | 1173 | case SND_SOC_BIAS_STANDBY: |
1173 | if (codec->bias_level == SND_SOC_BIAS_OFF) { | 1174 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { |
1174 | /* Enable all output discharge bits */ | 1175 | /* Enable all output discharge bits */ |
1175 | snd_soc_write(codec, WM8990_ANTIPOP1, WM8990_DIS_LLINE | | 1176 | snd_soc_write(codec, WM8990_ANTIPOP1, WM8990_DIS_LLINE | |
1176 | WM8990_DIS_RLINE | WM8990_DIS_OUT3 | | 1177 | WM8990_DIS_RLINE | WM8990_DIS_OUT3 | |
@@ -1266,7 +1267,7 @@ static int wm8990_set_bias_level(struct snd_soc_codec *codec, | |||
1266 | break; | 1267 | break; |
1267 | } | 1268 | } |
1268 | 1269 | ||
1269 | codec->bias_level = level; | 1270 | codec->dapm.bias_level = level; |
1270 | return 0; | 1271 | return 0; |
1271 | } | 1272 | } |
1272 | 1273 | ||