| Index: sound/soc/codecs/wm8900.c
|
| diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c
|
| index aca4b1ea10bb710cd733ea730d22171895df620e..449ea09a193d6800596c481eb564bee1e35d2997 100644
|
| --- a/sound/soc/codecs/wm8900.c
|
| +++ b/sound/soc/codecs/wm8900.c
|
| @@ -30,7 +30,6 @@
|
| #include <sound/pcm.h>
|
| #include <sound/pcm_params.h>
|
| #include <sound/soc.h>
|
| -#include <sound/soc-dapm.h>
|
| #include <sound/initval.h>
|
| #include <sound/tlv.h>
|
|
|
| @@ -140,7 +139,6 @@
|
|
|
| struct wm8900_priv {
|
| enum snd_soc_control_type control_type;
|
| - u16 reg_cache[WM8900_MAXREG];
|
|
|
| u32 fll_in; /* FLL input frequency */
|
| u32 fll_out; /* FLL output frequency */
|
| @@ -182,7 +180,7 @@ static const u16 wm8900_reg_defaults[WM8900_MAXREG] = {
|
| /* Remaining registers all zero */
|
| };
|
|
|
| -static int wm8900_volatile_register(unsigned int reg)
|
| +static int wm8900_volatile_register(struct snd_soc_codec *codec, unsigned int reg)
|
| {
|
| switch (reg) {
|
| case WM8900_REG_ID:
|
| @@ -611,10 +609,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
|
|
|
| static int wm8900_add_widgets(struct snd_soc_codec *codec)
|
| {
|
| - snd_soc_dapm_new_controls(codec, wm8900_dapm_widgets,
|
| - ARRAY_SIZE(wm8900_dapm_widgets));
|
| + struct snd_soc_dapm_context *dapm = &codec->dapm;
|
|
|
| - snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
|
| + snd_soc_dapm_new_controls(dapm, wm8900_dapm_widgets,
|
| + ARRAY_SIZE(wm8900_dapm_widgets));
|
| + snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
|
|
|
| return 0;
|
| }
|
| @@ -1051,7 +1050,7 @@ static int wm8900_set_bias_level(struct snd_soc_codec *codec,
|
|
|
| case SND_SOC_BIAS_STANDBY:
|
| /* Charge capacitors if initial power up */
|
| - if (codec->bias_level == SND_SOC_BIAS_OFF) {
|
| + if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) {
|
| /* STARTUP_BIAS_ENA on */
|
| snd_soc_write(codec, WM8900_REG_POWER1,
|
| WM8900_REG_POWER1_STARTUP_BIAS_ENA);
|
| @@ -1119,7 +1118,7 @@ static int wm8900_set_bias_level(struct snd_soc_codec *codec,
|
| WM8900_REG_POWER2_SYSCLK_ENA);
|
| break;
|
| }
|
| - codec->bias_level = level;
|
| + codec->dapm.bias_level = level;
|
| return 0;
|
| }
|
|
|
|
|