diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-03-07 06:07:24 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-03-07 06:13:42 -0500 |
commit | 20d660653a488c1c88db6fe51c2459e00cb79230 (patch) | |
tree | 6f56eee7b3cdaaee696d4c7281b7a07723714d93 | |
parent | 1d471cd1261a44a3b28350bef7e5113a4609c106 (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>
-rw-r--r-- | sound/soc/codecs/tlv320aic32x4.c | 10 |
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) | |||
340 | 340 | ||
341 | static int aic32x4_add_widgets(struct snd_soc_codec *codec) | 341 | static int aic32x4_add_widgets(struct snd_soc_codec *codec) |
342 | { | 342 | { |
343 | snd_soc_dapm_new_controls(codec, aic32x4_dapm_widgets, | 343 | snd_soc_dapm_new_controls(&codec->dapm, aic32x4_dapm_widgets, |
344 | ARRAY_SIZE(aic32x4_dapm_widgets)); | 344 | ARRAY_SIZE(aic32x4_dapm_widgets)); |
345 | 345 | ||
346 | snd_soc_dapm_add_routes(codec, aic32x4_dapm_routes, | 346 | snd_soc_dapm_add_routes(&codec->dapm, aic32x4_dapm_routes, |
347 | ARRAY_SIZE(aic32x4_dapm_routes)); | 347 | ARRAY_SIZE(aic32x4_dapm_routes)); |
348 | 348 | ||
349 | snd_soc_dapm_new_widgets(codec); | 349 | snd_soc_dapm_new_widgets(&codec->dapm); |
350 | return 0; | 350 | return 0; |
351 | } | 351 | } |
352 | 352 | ||
@@ -602,7 +602,7 @@ static int aic32x4_set_bias_level(struct snd_soc_codec *codec, | |||
602 | case SND_SOC_BIAS_OFF: | 602 | case SND_SOC_BIAS_OFF: |
603 | break; | 603 | break; |
604 | } | 604 | } |
605 | codec->bias_level = level; | 605 | codec->dapm.bias_level = level; |
606 | return 0; | 606 | return 0; |
607 | } | 607 | } |
608 | 608 | ||