Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm_adsp: 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>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Lars-Peter Clausen and committed by
Mark Brown
72718517 ff70508a

+3 -3
+3 -3
sound/soc/codecs/wm_adsp.c
··· 1373 1373 struct snd_kcontrol *kcontrol, 1374 1374 int event) 1375 1375 { 1376 - struct snd_soc_codec *codec = w->codec; 1376 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 1377 1377 struct wm_adsp *dsps = snd_soc_codec_get_drvdata(codec); 1378 1378 struct wm_adsp *dsp = &dsps[w->shift]; 1379 1379 struct wm_adsp_alg_region *alg_region; ··· 1605 1605 int wm_adsp2_early_event(struct snd_soc_dapm_widget *w, 1606 1606 struct snd_kcontrol *kcontrol, int event) 1607 1607 { 1608 - struct snd_soc_codec *codec = w->codec; 1608 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 1609 1609 struct wm_adsp *dsps = snd_soc_codec_get_drvdata(codec); 1610 1610 struct wm_adsp *dsp = &dsps[w->shift]; 1611 1611 ··· 1626 1626 int wm_adsp2_event(struct snd_soc_dapm_widget *w, 1627 1627 struct snd_kcontrol *kcontrol, int event) 1628 1628 { 1629 - struct snd_soc_codec *codec = w->codec; 1629 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 1630 1630 struct wm_adsp *dsps = snd_soc_codec_get_drvdata(codec); 1631 1631 struct wm_adsp *dsp = &dsps[w->shift]; 1632 1632 struct wm_adsp_alg_region *alg_region;