summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-07 11:07:24 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-07 11:13:42 +0000
commit20d660653a488c1c88db6fe51c2459e00cb79230 (patch)
tree6f56eee7b3cdaaee696d4c7281b7a07723714d93 /sound
parent1d471cd1261a44a3b28350bef7e5113a4609c106 (diff)
ASoC: Fix outdated API usage in tlv320aic32x4
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tlv320aic32x4.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index ee82e3896039..e93b9d1ae1dd 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -340,13 +340,13 @@ static inline int aic32x4_get_divs(int mclk, int rate)
static int aic32x4_add_widgets(struct snd_soc_codec *codec)
{
- snd_soc_dapm_new_controls(codec, aic32x4_dapm_widgets,
- ARRAY_SIZE(aic32x4_dapm_widgets));
+ snd_soc_dapm_new_controls(&codec->dapm, aic32x4_dapm_widgets,
+ ARRAY_SIZE(aic32x4_dapm_widgets));
- snd_soc_dapm_add_routes(codec, aic32x4_dapm_routes,
+ snd_soc_dapm_add_routes(&codec->dapm, aic32x4_dapm_routes,
ARRAY_SIZE(aic32x4_dapm_routes));
- snd_soc_dapm_new_widgets(codec);
+ snd_soc_dapm_new_widgets(&codec->dapm);
return 0;
}
@@ -602,7 +602,7 @@ static int aic32x4_set_bias_level(struct snd_soc_codec *codec,
case SND_SOC_BIAS_OFF:
break;
}
- codec->bias_level = level;
+ codec->dapm.bias_level = level;
return 0;
}