diff options
Diffstat (limited to 'sound/soc/codecs/ak4671.c')
-rw-r--r-- | sound/soc/codecs/ak4671.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/codecs/ak4671.c b/sound/soc/codecs/ak4671.c index 24f5f49bb9d2..1d6573c38af4 100644 --- a/sound/soc/codecs/ak4671.c +++ b/sound/soc/codecs/ak4671.c | |||
@@ -437,10 +437,11 @@ static const struct snd_soc_dapm_route intercon[] = { | |||
437 | 437 | ||
438 | static int ak4671_add_widgets(struct snd_soc_codec *codec) | 438 | static int ak4671_add_widgets(struct snd_soc_codec *codec) |
439 | { | 439 | { |
440 | snd_soc_dapm_new_controls(codec, ak4671_dapm_widgets, | 440 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
441 | ARRAY_SIZE(ak4671_dapm_widgets)); | ||
442 | 441 | ||
443 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 442 | snd_soc_dapm_new_controls(dapm, ak4671_dapm_widgets, |
443 | ARRAY_SIZE(ak4671_dapm_widgets)); | ||
444 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); | ||
444 | 445 | ||
445 | return 0; | 446 | return 0; |
446 | } | 447 | } |
@@ -602,7 +603,7 @@ static int ak4671_set_bias_level(struct snd_soc_codec *codec, | |||
602 | snd_soc_write(codec, AK4671_AD_DA_POWER_MANAGEMENT, 0x00); | 603 | snd_soc_write(codec, AK4671_AD_DA_POWER_MANAGEMENT, 0x00); |
603 | break; | 604 | break; |
604 | } | 605 | } |
605 | codec->bias_level = level; | 606 | codec->dapm.bias_level = level; |
606 | return 0; | 607 | return 0; |
607 | } | 608 | } |
608 | 609 | ||