Skip to content

Commit

Permalink
ASoC: rx51: Use snd_soc_dapm_to_codec() instead of dapm->codec
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Sep 29, 2014
1 parent 9cca023 commit a761f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/omap/rx51.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a761f87

Please sign in to comment.