ASoC: adav80x: Replace w->codec with snd_soc_dapm_to_codec(w->dapm)
Subsystems (3)
Lars-Peter Clausen
maintainerPATCH 1/3 ASoC: adav80x: Replace w->codec with 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.
--- sound/soc/codecs/adav80x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/adav80x.c +2 -2
@@ -212,7 +212,7 @@ static const struct snd_soc_dapm_widget adav80x_dapm_widgets[] = {static int adav80x_dapm_sysclk_check (struct snd_soc_dapm_widget *source,struct snd_soc_dapm_widget *sink) { -struct snd_soc_codec *codec = source->codec; +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (source->dapm);struct adav80x *adav80x =snd_soc_codec_get_drvdata (codec);const char *clk;
@@ -236,7 +236,7 @@ static int adav80x_dapm_sysclk_check(struct snd_soc_dapm_widget *source,static int adav80x_dapm_pll_check (struct snd_soc_dapm_widget *source,struct snd_soc_dapm_widget *sink) { -struct snd_soc_codec *codec = source->codec; +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (source->dapm);struct adav80x *adav80x =snd_soc_codec_get_drvdata (codec);return adav80x->pll_src ==ADAV80X_PLL_SRC_XTAL ;
Signature · 1 line
1.8.0
Lars-Peter Clausen
maintainerPATCH 2/3 ASoC: adau1373: Replace w->codec with 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.
--- sound/soc/codecs/adau1373.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/adau1373.c +3 -3
@@ -551,7 +551,7 @@ static const struct snd_kcontrol_new adau1373_drc_controls[] = {static int adau1373_pll_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 adau1373 *adau1373 =snd_soc_codec_get_drvdata (codec);unsigned int pll_id = w->name[3 ] -'1' ;unsigned int val;
@@ -823,7 +823,7 @@ static const struct snd_soc_dapm_widget adau1373_dapm_widgets[] = {static int adau1373_check_aif_clk (struct snd_soc_dapm_widget *source,struct snd_soc_dapm_widget *sink) { -struct snd_soc_codec *codec = source->codec; +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (source->dapm);struct adau1373 *adau1373 =snd_soc_codec_get_drvdata (codec);unsigned int dai;const char *clk;
@@ -844,7 +844,7 @@ static int adau1373_check_aif_clk(struct snd_soc_dapm_widget *source,static int adau1373_check_src (struct snd_soc_dapm_widget *source,struct snd_soc_dapm_widget *sink) { -struct snd_soc_codec *codec = source->codec; +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (source->dapm);struct adau1373 *adau1373 =snd_soc_codec_get_drvdata (codec);unsigned int dai;
Signature · 1 line
1.8.0
Re: [PATCH 2/3] ASoC: adau1373: Replace w->codec with snd_soc_dapm_to_codec(w->dapm)
Quoted 2 lines · Lars-Peter Clausen
The codec field of the
snd_soc_widgetstruct is eventually going to be removed, usesnd_soc_dapm_to_codec(w->dapm)instead.
Applied, thanks.
Lars-Peter Clausen
maintainerPATCH 3/3 ASoC: adau17x1: Replace w->codec with snd_soc_dapm_to_codec(w->dapm)
In reply to Lars-Peter ClausenThe codec field of the snd_soc_widget struct is eventually going to be removed, use snd_soc_dapm_to_codec(w->dapm) instead.
--- sound/soc/codecs/adau1761.c | 3 ++- sound/soc/codecs/adau1781.c | 2 +- sound/soc/codecs/adau17x1.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-)
sound/soc/codecs/adau1761.c +2 -1
@@ -255,7 +255,8 @@ static const struct snd_kcontrol_new adau1761_input_mux_control =static int adau1761_dejitter_fixup (struct snd_soc_dapm_widget *w,struct snd_kcontrol *kcontrol,int event) { -struct adau *adau =snd_soc_codec_get_drvdata (w->codec); +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (w->dapm); +struct adau *adau =snd_soc_codec_get_drvdata (codec);/* After any power changes have been made the dejitter circuit * has to be reinitialized. */
sound/soc/codecs/adau1781.c +1 -1
@@ -174,7 +174,7 @@ static const struct snd_kcontrol_new adau1781_mono_mixer_controls[] = {static int adau1781_dejitter_fixup (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 adau *adau =snd_soc_codec_get_drvdata (codec);/* After any power changes have been made the dejitter circuit
sound/soc/codecs/adau17x1.c +2 -1
@@ -61,7 +61,8 @@ static const struct snd_kcontrol_new adau17x1_controls[] = {static int adau17x1_pll_event (struct snd_soc_dapm_widget *w,struct snd_kcontrol *kcontrol,int event) { -struct adau *adau =snd_soc_codec_get_drvdata (w->codec); +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (w->dapm); +struct adau *adau =snd_soc_codec_get_drvdata (codec);int ret;if (SND_SOC_DAPM_EVENT_ON (event)) {
Signature · 1 line
1.8.0
Re: [PATCH 3/3] ASoC: adau17x1: Replace w->codec with snd_soc_dapm_to_codec(w->dapm)
Quoted 2 lines · Lars-Peter Clausen
The codec field of the
snd_soc_widgetstruct is eventually going to be removed, usesnd_soc_dapm_to_codec(w->dapm)instead.
Applied, thanks.
Quoted 2 lines · Lars-Peter Clausen
The codec field of the
snd_soc_widgetstruct is eventually going to be removed, usesnd_soc_dapm_to_codec(w->dapm)instead.
Applied, thanks.