diff options
Diffstat (limited to 'sound/soc/codecs/ssm2602.c')
-rw-r--r-- | sound/soc/codecs/ssm2602.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index 6f38d619bf8a..adbc3e8dafc8 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c | |||
@@ -207,10 +207,11 @@ static const struct snd_soc_dapm_route audio_conn[] = { | |||
207 | 207 | ||
208 | static int ssm2602_add_widgets(struct snd_soc_codec *codec) | 208 | static int ssm2602_add_widgets(struct snd_soc_codec *codec) |
209 | { | 209 | { |
210 | snd_soc_dapm_new_controls(codec, ssm2602_dapm_widgets, | 210 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
211 | ARRAY_SIZE(ssm2602_dapm_widgets)); | ||
212 | 211 | ||
213 | snd_soc_dapm_add_routes(codec, audio_conn, ARRAY_SIZE(audio_conn)); | 212 | snd_soc_dapm_new_controls(dapm, ssm2602_dapm_widgets, |
213 | ARRAY_SIZE(ssm2602_dapm_widgets)); | ||
214 | snd_soc_dapm_add_routes(dapm, audio_conn, ARRAY_SIZE(audio_conn)); | ||
214 | 215 | ||
215 | return 0; | 216 | return 0; |
216 | } | 217 | } |
@@ -493,7 +494,7 @@ static int ssm2602_set_bias_level(struct snd_soc_codec *codec, | |||
493 | break; | 494 | break; |
494 | 495 | ||
495 | } | 496 | } |
496 | codec->bias_level = level; | 497 | codec->dapm.bias_level = level; |
497 | return 0; | 498 | return 0; |
498 | } | 499 | } |
499 | 500 | ||