Message ID | 1411983642-12793-2-git-send-email-lars@metafoo.de (mailing list archive) |
---|---|
State | Accepted |
Commit | a761f87f367a2a172cbc62d0e88eabe175d349a8 |
Headers | show |
On Mon, Sep 29, 2014 at 11:40:41AM +0200, Lars-Peter Clausen wrote: > 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> > --- > sound/soc/omap/rx51.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 943922c..b10ae80 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, static int rx51_hp_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *k, int event) { - struct snd_soc_codec *codec = w->dapm->codec; + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); if (SND_SOC_DAPM_EVENT_ON(event)) tpa6130a2_stereo_enable(codec, 1);
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> --- sound/soc/omap/rx51.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)