diff options
Diffstat (limited to 'sound/soc/codecs/ak4671.c')
-rw-r--r-- | sound/soc/codecs/ak4671.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sound/soc/codecs/ak4671.c b/sound/soc/codecs/ak4671.c index 24f5f49bb9d2..2ec75abfa3e9 100644 --- a/sound/soc/codecs/ak4671.c +++ b/sound/soc/codecs/ak4671.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <sound/soc.h> | 19 | #include <sound/soc.h> |
20 | #include <sound/soc-dapm.h> | ||
21 | #include <sound/initval.h> | 20 | #include <sound/initval.h> |
22 | #include <sound/tlv.h> | 21 | #include <sound/tlv.h> |
23 | 22 | ||
@@ -28,7 +27,6 @@ | |||
28 | struct ak4671_priv { | 27 | struct ak4671_priv { |
29 | enum snd_soc_control_type control_type; | 28 | enum snd_soc_control_type control_type; |
30 | void *control_data; | 29 | void *control_data; |
31 | u8 reg_cache[AK4671_CACHEREGNUM]; | ||
32 | }; | 30 | }; |
33 | 31 | ||
34 | /* ak4671 register cache & default register settings */ | 32 | /* ak4671 register cache & default register settings */ |
@@ -437,10 +435,11 @@ static const struct snd_soc_dapm_route intercon[] = { | |||
437 | 435 | ||
438 | static int ak4671_add_widgets(struct snd_soc_codec *codec) | 436 | static int ak4671_add_widgets(struct snd_soc_codec *codec) |
439 | { | 437 | { |
440 | snd_soc_dapm_new_controls(codec, ak4671_dapm_widgets, | 438 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
441 | ARRAY_SIZE(ak4671_dapm_widgets)); | ||
442 | 439 | ||
443 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 440 | snd_soc_dapm_new_controls(dapm, ak4671_dapm_widgets, |
441 | ARRAY_SIZE(ak4671_dapm_widgets)); | ||
442 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); | ||
444 | 443 | ||
445 | return 0; | 444 | return 0; |
446 | } | 445 | } |
@@ -602,7 +601,7 @@ static int ak4671_set_bias_level(struct snd_soc_codec *codec, | |||
602 | snd_soc_write(codec, AK4671_AD_DA_POWER_MANAGEMENT, 0x00); | 601 | snd_soc_write(codec, AK4671_AD_DA_POWER_MANAGEMENT, 0x00); |
603 | break; | 602 | break; |
604 | } | 603 | } |
605 | codec->bias_level = level; | 604 | codec->dapm.bias_level = level; |
606 | return 0; | 605 | return 0; |
607 | } | 606 | } |
608 | 607 | ||