Commit 20d66065 authored by Mark Brown's avatar Mark Brown

ASoC: Fix outdated API usage in tlv320aic32x4

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 1d471cd1
...@@ -340,13 +340,13 @@ static inline int aic32x4_get_divs(int mclk, int rate) ...@@ -340,13 +340,13 @@ static inline int aic32x4_get_divs(int mclk, int rate)
static int aic32x4_add_widgets(struct snd_soc_codec *codec) static int aic32x4_add_widgets(struct snd_soc_codec *codec)
{ {
snd_soc_dapm_new_controls(codec, aic32x4_dapm_widgets, snd_soc_dapm_new_controls(&codec->dapm, aic32x4_dapm_widgets,
ARRAY_SIZE(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)); ARRAY_SIZE(aic32x4_dapm_routes));
snd_soc_dapm_new_widgets(codec); snd_soc_dapm_new_widgets(&codec->dapm);
return 0; return 0;
} }
...@@ -602,7 +602,7 @@ static int aic32x4_set_bias_level(struct snd_soc_codec *codec, ...@@ -602,7 +602,7 @@ static int aic32x4_set_bias_level(struct snd_soc_codec *codec,
case SND_SOC_BIAS_OFF: case SND_SOC_BIAS_OFF:
break; break;
} }
codec->bias_level = level; codec->dapm.bias_level = level;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment