ASoC: max98088: Replace w->codec snd_soc_dapm_to_codec(w->dapm)
PATCH 1/3 ASoC: max98088: 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.
--- sound/soc/codecs/max98088.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/max98088.c +2 -2
@@ -875,7 +875,7 @@ static const struct snd_kcontrol_new max98088_right_ADC_mixer_controls[] = {static int max98088_mic_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 max98088_priv *max98088 =snd_soc_codec_get_drvdata (codec);switch (event) {
@@ -905,7 +905,7 @@ static int max98088_mic_event(struct snd_soc_dapm_widget *w,static int max98088_line_pga (struct snd_soc_dapm_widget *w,int event,int line,u8 channel) { -struct snd_soc_codec *codec = w->codec; +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (w->dapm);struct max98088_priv *max98088 =snd_soc_codec_get_drvdata (codec);u8 *state;
Signature · 1 line
1.8.0
PATCH 2/3 ASoC: max98090: 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.
--- sound/soc/codecs/max98090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/max98090.c +1 -1
@@ -806,7 +806,7 @@ static const struct snd_kcontrol_new max98091_snd_controls[] = {static int max98090_micinput_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 max98090_priv *max98090 =snd_soc_codec_get_drvdata (codec);unsigned int val =snd_soc_read (codec, w->reg);
Signature · 1 line
1.8.0
Re: [PATCH 2/3] ASoC: max98090: Replace w->codec 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.
PATCH 3/3 ASoC: max98095: Replace w->codec 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/max98095.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/max98095.c +3 -3
@@ -866,7 +866,7 @@ static const struct snd_kcontrol_new max98095_right_ADC_mixer_controls[] = {static int max98095_mic_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 max98095_priv *max98095 =snd_soc_codec_get_drvdata (codec);switch (event) {
@@ -896,7 +896,7 @@ static int max98095_mic_event(struct snd_soc_dapm_widget *w,static int max98095_line_pga (struct snd_soc_dapm_widget *w,int event,u8 channel) { -struct snd_soc_codec *codec = w->codec; +struct snd_soc_codec *codec =snd_soc_dapm_to_codec (w->dapm);struct max98095_priv *max98095 =snd_soc_codec_get_drvdata (codec);u8 *state;
@@ -944,7 +944,7 @@ static int max98095_pga_in2_event(struct snd_soc_dapm_widget *w,static int max98095_lineout_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);switch (event) {case SND_SOC_DAPM_POST_PMU :
Signature · 1 line
1.8.0
Re: [PATCH 3/3] ASoC: max98095: Replace w->codec 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.