aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8900.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8900.c')
-rw-r--r--sound/soc/codecs/wm8900.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c
index aca4b1ea10bb..06ea9c0f863b 100644
--- a/sound/soc/codecs/wm8900.c
+++ b/sound/soc/codecs/wm8900.c
@@ -611,10 +611,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
611 611
612static int wm8900_add_widgets(struct snd_soc_codec *codec) 612static int wm8900_add_widgets(struct snd_soc_codec *codec)
613{ 613{
614 snd_soc_dapm_new_controls(codec, wm8900_dapm_widgets, 614 struct snd_soc_dapm_context *dapm = &codec->dapm;
615 ARRAY_SIZE(wm8900_dapm_widgets));
616 615
617 snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); 616 snd_soc_dapm_new_controls(dapm, wm8900_dapm_widgets,
617 ARRAY_SIZE(wm8900_dapm_widgets));
618 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
618 619
619 return 0; 620 return 0;
620} 621}
@@ -1051,7 +1052,7 @@ static int wm8900_set_bias_level(struct snd_soc_codec *codec,
1051 1052
1052 case SND_SOC_BIAS_STANDBY: 1053 case SND_SOC_BIAS_STANDBY:
1053 /* Charge capacitors if initial power up */ 1054 /* Charge capacitors if initial power up */
1054 if (codec->bias_level == SND_SOC_BIAS_OFF) { 1055 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) {
1055 /* STARTUP_BIAS_ENA on */ 1056 /* STARTUP_BIAS_ENA on */
1056 snd_soc_write(codec, WM8900_REG_POWER1, 1057 snd_soc_write(codec, WM8900_REG_POWER1,
1057 WM8900_REG_POWER1_STARTUP_BIAS_ENA); 1058 WM8900_REG_POWER1_STARTUP_BIAS_ENA);
@@ -1119,7 +1120,7 @@ static int wm8900_set_bias_level(struct snd_soc_codec *codec,
1119 WM8900_REG_POWER2_SYSCLK_ENA); 1120 WM8900_REG_POWER2_SYSCLK_ENA);
1120 break; 1121 break;
1121 } 1122 }
1122 codec->bias_level = level; 1123 codec->dapm.bias_level = level;
1123 return 0; 1124 return 0;
1124} 1125}
1125 1126