diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-09-29 05:40:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-29 13:25:43 -0400 |
commit | a761f87f367a2a172cbc62d0e88eabe175d349a8 (patch) | |
tree | 115825a414171ceddaa00bf660781fc24afc2ea6 /sound/soc/omap | |
parent | 9cca023e5c5c13486d48d47a46564c359af9ae73 (diff) |
ASoC: rx51: Use snd_soc_dapm_to_codec() instead of dapm->codec
The CODEC struct in the snd_soc_dapm_context struct is deprecated and
scheduled for removal. Use the snd_soc_dapm_to_codec() function instead.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/omap')
-rw-r--r-- | sound/soc/omap/rx51.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 943922c79f78..b10ae8074461 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c | |||
@@ -168,7 +168,7 @@ static int rx51_spk_event(struct snd_soc_dapm_widget *w, | |||
168 | static int rx51_hp_event(struct snd_soc_dapm_widget *w, | 168 | static int rx51_hp_event(struct snd_soc_dapm_widget *w, |
169 | struct snd_kcontrol *k, int event) | 169 | struct snd_kcontrol *k, int event) |
170 | { | 170 | { |
171 | struct snd_soc_codec *codec = w->dapm->codec; | 171 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
172 | 172 | ||
173 | if (SND_SOC_DAPM_EVENT_ON(event)) | 173 | if (SND_SOC_DAPM_EVENT_ON(event)) |
174 | tpa6130a2_stereo_enable(codec, 1); | 174 | tpa6130a2_stereo_enable(codec, 1); |