diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-15 11:52:04 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 11:57:06 (GMT) |
commit | 38d3df61e094eb3c8f8af7c6f264a8cd59501ec0 (patch) | |
tree | 9786f9f48d4ebb35f2fe51c30f237f520802e45d /sound/soc/codecs/tlv320aic3x.c | |
parent | dd943d36f1c4029b6fc5dc1feeb15acda930756d (diff) | |
download | linux-38d3df61e094eb3c8f8af7c6f264a8cd59501ec0.tar.xz |
ASoC: tlv320aic3x: Replace w->codec snd_soc_dapm_to_codec(w->dapm)
The codec field of the snd_soc_widget struct is eventually going to be
removed, use snd_soc_dapm_to_codec(w->dapm) instead.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic3x.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index b7ebce0..a78ad36 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c @@ -197,7 +197,7 @@ static int snd_soc_dapm_put_volsw_aic3x(struct snd_kcontrol *kcontrol, static int mic_bias_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event) { - struct snd_soc_codec *codec = w->codec; + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); struct aic3x_priv *aic3x = snd_soc_codec_get_drvdata(codec); switch (event) { |