ASoC: codecs: Fix Wolfson control definitions that write another control's bits
Subsystems (3)
cover ASoC: codecs: Fix Wolfson control definitions that write another control's bits
These are more fixes found by the overlap scan from the first series [1]. In each driver a control writes bits that belong to another control, or writes the left channel bits for a right channel control.
[1] https://lore.kernel.org/all/[email protected]/
HyeongJun An (13):
ASoC: codecs: wm8990: Fix definition of right input PGA controls
ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume
control
ASoC: codecs: wm8991: Fix definition of right input PGA controls
ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume
control
ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control
ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control
ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time
controls
ASoC: codecs: wm8955: Fix definition of Treble Cutoff control
ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume
control
ASoC: codecs: wm8737: Fix definition of zero cross switches
ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control
ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control
ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control
sound/soc/codecs/wm5100.c | 2 +- sound/soc/codecs/wm8510.c | 2 +- sound/soc/codecs/wm8737.c | 8 ++++---- sound/soc/codecs/wm8750.c | 2 +- sound/soc/codecs/wm8955.c | 2 +- sound/soc/codecs/wm8983.c | 2 +- sound/soc/codecs/wm8985.c | 2 +- sound/soc/codecs/wm8990.c | 10 +++++----- sound/soc/codecs/wm8991.c | 10 +++++----- sound/soc/codecs/wm8994.c | 6 +++--- sound/soc/codecs/wm_hubs.c | 2 +- 11 files changed, 24 insertions(+), 24 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/13 ASoC: codecs: wm8990: Fix definition of right input PGA controls
The right input PGA boost (R12MNBST, R34MNBST) and routing (R12MNB, R34MNB) bits are in Input Mixer4 (R42), not in Input Mixer3 (R41), where these controls write the left channel bits.
--- sound/soc/codecs/wm8990.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wm8990.c +4 -4
@@ -97,8 +97,8 @@ static const struct snd_kcontrol_new wm8990_snd_controls[] = {SOC_SINGLE ("LIN12 PGA Boost" ,WM8990_INPUT_MIXER3 ,WM8990_L12MNBST_BIT ,1 ,0 ),SOC_SINGLE ("LIN34 PGA Boost" ,WM8990_INPUT_MIXER3 ,WM8990_L34MNBST_BIT ,1 ,0 ),/* INMIXR */ -SOC_SINGLE ("RIN12 PGA Boost" ,WM8990_INPUT_MIXER3 ,WM8990_R12MNBST_BIT ,1 ,0 ), -SOC_SINGLE ("RIN34 PGA Boost" ,WM8990_INPUT_MIXER3 ,WM8990_R34MNBST_BIT ,1 ,0 ), +SOC_SINGLE ("RIN12 PGA Boost" ,WM8990_INPUT_MIXER4 ,WM8990_R12MNBST_BIT ,1 ,0 ), +SOC_SINGLE ("RIN34 PGA Boost" ,WM8990_INPUT_MIXER4 ,WM8990_R34MNBST_BIT ,1 ,0 ),/* LOMIX */ SOC_SINGLE_TLV("LOMIX LIN3 Bypass Volume", WM8990_OUTPUT_MIXER3,
@@ -377,9 +377,9 @@ SOC_DAPM_SINGLE_TLV("Record Right Volume", WM8990_INPUT_MIXER4, WM8990_RDBVOL_SHIFT, WM8990_RDBVOL_MASK, 0, in_mix_tlv),SOC_DAPM_SINGLE_TLV ("RIN2 Volume" ,WM8990_INPUT_MIXER6 ,WM8990_RI2BVOL_SHIFT ,7 ,0 , in_mix_tlv), -SOC_DAPM_SINGLE ("RINPGA12 Switch" ,WM8990_INPUT_MIXER3 ,WM8990_L12MNB_BIT , +SOC_DAPM_SINGLE ("RINPGA12 Switch" ,WM8990_INPUT_MIXER4 ,WM8990_R12MNB_BIT ,1 ,0 ), -SOC_DAPM_SINGLE ("RINPGA34 Switch" ,WM8990_INPUT_MIXER3 ,WM8990_L34MNB_BIT , +SOC_DAPM_SINGLE ("RINPGA34 Switch" ,WM8990_INPUT_MIXER4 ,WM8990_R34MNB_BIT , 1, 0), };
Signature · 1 line
2.43.0
PATCH 2/13 ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control
In reply to HyeongJun AnThe LOMIX AINLMUX bypass volume (LLBLOVOL) is at bits 2:0 of Output Mixer5, not at bits 5:3, which hold the AINRMUX bypass volume (LRBLOVOL).
--- sound/soc/codecs/wm8990.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8990.c +1 -1
@@ -112,7 +112,7 @@ SOC_SINGLE_TLV("LOMIX RIN3 Bypass Volume", WM8990_OUTPUT_MIXER5,SOC_SINGLE_TLV ("LOMIX AINRMUX Bypass Volume" ,WM8990_OUTPUT_MIXER5 ,WM8990_LRBLOVOL_SHIFT ,WM8990_LRBLOVOL_MASK ,1 , out_mix_tlv),SOC_SINGLE_TLV ("LOMIX AINLMUX Bypass Volume" ,WM8990_OUTPUT_MIXER5 , -WM8990_LRBLOVOL_SHIFT ,WM8990_LRBLOVOL_MASK ,1 , out_mix_tlv), +WM8990_LLBLOVOL_SHIFT ,WM8990_LLBLOVOL_MASK ,1 , out_mix_tlv),/* ROMIX */ SOC_SINGLE_TLV("ROMIX RIN3 Bypass Volume", WM8990_OUTPUT_MIXER4,
Signature · 1 line
2.43.0
PATCH 3/13 ASoC: codecs: wm8991: Fix definition of right input PGA controls
In reply to HyeongJun AnThe right input PGA boost (R12MNBST, R34MNBST) and routing (R12MNB, R34MNB) bits are in Input Mixer4 (R42), not in Input Mixer3 (R41), where these controls write the left channel bits.
--- sound/soc/codecs/wm8991.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wm8991.c +4 -4
@@ -169,8 +169,8 @@ static const struct snd_kcontrol_new wm8991_snd_controls[] = {SOC_SINGLE ("LIN12 PGA Boost" ,WM8991_INPUT_MIXER3 ,WM8991_L12MNBST_BIT ,1 ,0 ),SOC_SINGLE ("LIN34 PGA Boost" ,WM8991_INPUT_MIXER3 ,WM8991_L34MNBST_BIT ,1 ,0 ),/* INMIXR */ -SOC_SINGLE ("RIN12 PGA Boost" ,WM8991_INPUT_MIXER3 ,WM8991_R12MNBST_BIT ,1 ,0 ), -SOC_SINGLE ("RIN34 PGA Boost" ,WM8991_INPUT_MIXER3 ,WM8991_R34MNBST_BIT ,1 ,0 ), +SOC_SINGLE ("RIN12 PGA Boost" ,WM8991_INPUT_MIXER4 ,WM8991_R12MNBST_BIT ,1 ,0 ), +SOC_SINGLE ("RIN34 PGA Boost" ,WM8991_INPUT_MIXER4 ,WM8991_R34MNBST_BIT ,1 ,0 ),/* LOMIX */ SOC_SINGLE_TLV("LOMIX LIN3 Bypass Volume", WM8991_OUTPUT_MIXER3,
@@ -446,9 +446,9 @@ static const struct snd_kcontrol_new wm8991_dapm_inmixr_controls[] = { WM8991_RDBVOL_SHIFT, WM8991_RDBVOL_MASK, 0, in_mix_tlv),SOC_DAPM_SINGLE_TLV ("RIN2 Volume" ,WM8991_INPUT_MIXER6 ,WM8991_RI2BVOL_SHIFT ,7 ,0 , in_mix_tlv), -SOC_DAPM_SINGLE ("RINPGA12 Switch" ,WM8991_INPUT_MIXER3 ,WM8991_L12MNB_BIT , +SOC_DAPM_SINGLE ("RINPGA12 Switch" ,WM8991_INPUT_MIXER4 ,WM8991_R12MNB_BIT ,1 ,0 ), -SOC_DAPM_SINGLE ("RINPGA34 Switch" ,WM8991_INPUT_MIXER3 ,WM8991_L34MNB_BIT , +SOC_DAPM_SINGLE ("RINPGA34 Switch" ,WM8991_INPUT_MIXER4 ,WM8991_R34MNB_BIT , 1, 0), };
Signature · 1 line
2.43.0
PATCH 4/13 ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control
In reply to HyeongJun AnThe LOMIX AINLMUX bypass volume (LLBLOVOL) is at bits 2:0 of Output Mixer5, not at bits 5:3, which hold the AINRMUX bypass volume (LRBLOVOL).
--- sound/soc/codecs/wm8991.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8991.c +1 -1
@@ -184,7 +184,7 @@ static const struct snd_kcontrol_new wm8991_snd_controls[] = {SOC_SINGLE_TLV ("LOMIX AINRMUX Bypass Volume" ,WM8991_OUTPUT_MIXER5 ,WM8991_LRBLOVOL_SHIFT ,WM8991_LRBLOVOL_MASK ,1 , out_mix_tlv),SOC_SINGLE_TLV ("LOMIX AINLMUX Bypass Volume" ,WM8991_OUTPUT_MIXER5 , -WM8991_LRBLOVOL_SHIFT ,WM8991_LRBLOVOL_MASK ,1 , out_mix_tlv), +WM8991_LLBLOVOL_SHIFT ,WM8991_LLBLOVOL_MASK ,1 , out_mix_tlv),/* ROMIX */ SOC_SINGLE_TLV("ROMIX RIN3 Bypass Volume", WM8991_OUTPUT_MIXER4,
Signature · 1 line
2.43.0
PATCH 5/13 ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control
In reply to HyeongJun AnADC 128x oversampling (ADCOSR128) is at bit 3 of ADC Control, not at bit 8, which is the high pass filter enable (HPFEN).
--- sound/soc/codecs/wm8983.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8983.c +1 -1
@@ -234,7 +234,7 @@ static const struct snd_kcontrol_new wm8983_snd_controls[] = { 8, 1, 0, pga_boost_tlv),SOC_DOUBLE ("ADC Inversion Switch" ,WM8983_ADC_CONTROL ,0 ,1 ,1 ,0 ), -SOC_SINGLE ("ADC 128x Oversampling Switch" ,WM8983_ADC_CONTROL ,8 ,1 ,0 ), +SOC_SINGLE ("ADC 128x Oversampling Switch" ,WM8983_ADC_CONTROL ,3 ,1 ,0 ),SOC_DOUBLE_R_TLV ("Playback Volume" ,WM8983_LEFT_DAC_DIGITAL_VOL , WM8983_RIGHT_DAC_DIGITAL_VOL, 0, 255, 0, dac_tlv),
Signature · 1 line
2.43.0
PATCH 6/13 ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control
In reply to HyeongJun AnADC 128x oversampling (ADCOSR128) is at bit 3 of ADC Control, not at bit 8, which is the high pass filter enable (HPFEN).
--- sound/soc/codecs/wm8985.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8985.c +1 -1
@@ -327,7 +327,7 @@ static const struct snd_kcontrol_new wm8985_common_snd_controls[] = { 8, 1, 0, pga_boost_tlv),SOC_DOUBLE ("ADC Inversion Switch" ,WM8985_ADC_CONTROL ,0 ,1 ,1 ,0 ), -SOC_SINGLE ("ADC 128x Oversampling Switch" ,WM8985_ADC_CONTROL ,8 ,1 ,0 ), +SOC_SINGLE ("ADC 128x Oversampling Switch" ,WM8985_ADC_CONTROL ,3 ,1 ,0 ),SOC_DOUBLE_R_TLV ("Playback Volume" ,WM8985_LEFT_DAC_DIGITAL_VOL , WM8985_RIGHT_DAC_DIGITAL_VOL, 0, 255, 0, dac_tlv),
Signature · 1 line
2.43.0
PATCH 7/13 ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls
In reply to HyeongJun AnThe noise gate hold time (NG_HLD) is at bits 6:5 of each WM8958 DAC noise gate register, not at bits 3:1, which hold the threshold (NG_THR).
--- sound/soc/codecs/wm8994.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8994.c +3 -3
@@ -701,17 +701,17 @@ static const char *wm8958_ng_text[] = { static SOC_ENUM_SINGLE_DECL(wm8958_aif1dac1_ng_hold, WM8958_AIF1_DAC1_NOISE_GATE, - WM8958_AIF1DAC1_NG_THR_SHIFT, + WM8958_AIF1DAC1_NG_HLD_SHIFT, wm8958_ng_text); static SOC_ENUM_SINGLE_DECL(wm8958_aif1dac2_ng_hold, WM8958_AIF1_DAC2_NOISE_GATE, - WM8958_AIF1DAC2_NG_THR_SHIFT, + WM8958_AIF1DAC2_NG_HLD_SHIFT, wm8958_ng_text); static SOC_ENUM_SINGLE_DECL(wm8958_aif2dac_ng_hold, WM8958_AIF2_DAC_NOISE_GATE, - WM8958_AIF2DAC_NG_THR_SHIFT, + WM8958_AIF2DAC_NG_HLD_SHIFT, wm8958_ng_text);static const struct snd_kcontrol_new wm8958_snd_controls[] = {
Signature · 1 line
2.43.0
PATCH 8/13 ASoC: codecs: wm8955: Fix definition of Treble Cutoff control
In reply to HyeongJun AnTreble cutoff (TC) is at bit 6 of Treble Control, not at bit 2, which is part of the treble volume (TRBL[3:0]).
--- sound/soc/codecs/wm8955.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8955.c +1 -1
@@ -426,7 +426,7 @@ static const char *treble_cutoff_text[] = {"High" ,"Low" }; -static SOC_ENUM_SINGLE_DECL(treble_cutoff, WM8955_TREBLE_CONTROL, 2, +static SOC_ENUM_SINGLE_DECL(treble_cutoff, WM8955_TREBLE_CONTROL, 6, treble_cutoff_text); static const DECLARE_TLV_DB_SCALE(digital_tlv, -12750, 50, 1);
Signature · 1 line
2.43.0
PATCH 9/13 ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control
In reply to HyeongJun AnThe Right Output Mixer Right Input Volume (MIXINR_MIXOUTR_VOL) is at bits 2:0 of Output Mixer6, not at bits 8:6, which hold the IN2LN volume (IN2LN_MIXOUTR_VOL).
--- sound/soc/codecs/wm_hubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm_hubs.c +1 -1
@@ -427,7 +427,7 @@ SOC_SINGLE_TLV("Right Output Mixer IN2RP Volume",SOC_SINGLE_TLV ("Right Output Mixer Left Input Volume" ,WM8993_OUTPUT_MIXER6 ,3 ,7 ,1 , outmix_tlv),SOC_SINGLE_TLV ("Right Output Mixer Right Input Volume" , -WM8993_OUTPUT_MIXER6 ,6 ,7 ,1 , outmix_tlv), +WM8993_OUTPUT_MIXER6 ,0 ,7 ,1 , outmix_tlv),SOC_SINGLE_TLV ("Right Output Mixer DAC Volume" , WM8993_OUTPUT_MIXER6, 9, 7, 1, outmix_tlv),
Signature · 1 line
2.43.0
PATCH 10/13 ASoC: codecs: wm8737: Fix definition of zero cross switches
In reply to HyeongJun AnThe mic (xMZC) and PGA (xPZC) zero cross bits are bits 3 and 2 of each channel's Audio Path register. SOC_DOUBLE takes one register and two shifts, so both controls only write the left register. Use SOC_DOUBLE_R, as the Mic Boost Switch next to them does.
--- sound/soc/codecs/wm8737.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wm8737.c +4 -4
@@ -148,13 +148,13 @@ SOC_DOUBLE_R_TLV("Mic Boost Volume", WM8737_AUDIO_PATH_L, WM8737_AUDIO_PATH_R, 6, 3, 0, micboost_tlv),SOC_DOUBLE_R ("Mic Boost Switch" ,WM8737_AUDIO_PATH_L ,WM8737_AUDIO_PATH_R ,4 ,1 ,0 ), -SOC_DOUBLE ("Mic ZC Switch" ,WM8737_AUDIO_PATH_L ,WM8737_AUDIO_PATH_R , -3 ,1 ,0 ), +SOC_DOUBLE_R ("Mic ZC Switch" ,WM8737_AUDIO_PATH_L ,WM8737_AUDIO_PATH_R , +3 ,1 ,0 ),SOC_DOUBLE_R_TLV ("Capture Volume" ,WM8737_LEFT_PGA_VOLUME ,WM8737_RIGHT_PGA_VOLUME ,0 ,255 ,0 , pga_tlv), -SOC_DOUBLE ("Capture ZC Switch" ,WM8737_AUDIO_PATH_L ,WM8737_AUDIO_PATH_R , -2 ,1 ,0 ), +SOC_DOUBLE_R ("Capture ZC Switch" ,WM8737_AUDIO_PATH_L ,WM8737_AUDIO_PATH_R , +2 ,1 ,0 ), SOC_DOUBLE("INPUT1 DC Bias Switch", WM8737_MISC_BIAS_CONTROL, 0, 1, 1, 0),
Signature · 1 line
2.43.0
PATCH 11/13 ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control
In reply to HyeongJun AnThe EQ3 band 1 gain is in WM5100_EQ3_1, not in WM5100_EQ1_1, which holds the EQ1 band 1 gain.
--- sound/soc/codecs/wm5100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm5100.c +1 -1
@@ -658,7 +658,7 @@ SOC_SINGLE_TLV("EQ2 Band 4 Volume", WM5100_EQ2_2, WM5100_EQ2_B4_GAIN_SHIFT,SOC_SINGLE_TLV ("EQ2 Band 5 Volume" ,WM5100_EQ2_2 ,WM5100_EQ2_B5_GAIN_SHIFT ,24 ,0 , eq_tlv), -SOC_SINGLE_TLV ("EQ3 Band 1 Volume" ,WM5100_EQ1_1 ,WM5100_EQ3_B1_GAIN_SHIFT , +SOC_SINGLE_TLV ("EQ3 Band 1 Volume" ,WM5100_EQ3_1 ,WM5100_EQ3_B1_GAIN_SHIFT ,24 ,0 , eq_tlv),SOC_SINGLE_TLV ("EQ3 Band 2 Volume" ,WM5100_EQ3_1 ,WM5100_EQ3_B2_GAIN_SHIFT , 24, 0, eq_tlv),
Signature · 1 line
2.43.0
PATCH 12/13 ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control
In reply to HyeongJun AnThe noise gate type is wm8750_enum[7], bit 1 of WM8750_NGATE, not wm8750_enum[4], which is the 3D upper cut-off.
--- sound/soc/codecs/wm8750.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8750.c +1 -1
@@ -171,7 +171,7 @@ SOC_SINGLE("ALC Capture Hold Time", WM8750_ALC2, 0, 15, 0),SOC_SINGLE ("ALC Capture Decay Time" ,WM8750_ALC3 ,4 ,15 ,0 ),SOC_SINGLE ("ALC Capture Attack Time" ,WM8750_ALC3 ,0 ,15 ,0 ),SOC_SINGLE ("ALC Capture NG Threshold" ,WM8750_NGATE ,3 ,31 ,0 ), -SOC_ENUM ("ALC Capture NG Type" , wm8750_enum[4 ]), +SOC_ENUM ("ALC Capture NG Type" , wm8750_enum[7 ]),SOC_SINGLE ("ALC Capture NG Switch" ,WM8750_NGATE ,0 ,1 ,0 ), SOC_SINGLE("Left ADC Capture Volume", WM8750_LADC, 0, 255, 0),
Signature · 1 line
2.43.0
PATCH 13/13 ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control
In reply to HyeongJun AnADC polarity is bit 0 of WM8510_ADC, not bit 0 of WM8510_COMP, which is the loopback enable. wm8974, which has the same register layout, already uses WM8974_ADC for this control.
--- sound/soc/codecs/wm8510.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8510.c +1 -1
@@ -134,7 +134,7 @@ SOC_SINGLE("Master Playback Volume", WM8510_DACVOL, 0, 127, 0),SOC_SINGLE ("High Pass Filter Switch" ,WM8510_ADC ,8 ,1 ,0 ),SOC_SINGLE ("High Pass Cut Off" ,WM8510_ADC ,4 ,7 ,0 ), -SOC_SINGLE ("ADC Inversion Switch" ,WM8510_COMP ,0 ,1 ,0 ), +SOC_SINGLE ("ADC Inversion Switch" ,WM8510_ADC ,0 ,1 ,0 ), SOC_SINGLE("Capture Volume", WM8510_ADCVOL, 0, 127, 0),
Signature · 1 line
2.43.0
Re: [PATCH 02/13] ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control
In reply to HyeongJun AnQuoted 8 lines · HyeongJun An
The LOMIX AINLMUX bypass volume (LLBLOVOL) is at bits 2:0 of Output Mixer5, not at bits 5:3, which hold the AINRMUX bypass volume (LRBLOVOL).
Fixes f10485e79882 ("[ALSA] ASoC: Add WM8990 driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 03/13] ASoC: codecs: wm8991: Fix definition of right input PGA controls
In reply to HyeongJun AnQuoted 8 lines · HyeongJun An
The right input PGA boost (R12MNBST, R34MNBST) and routing (R12MNB, R34MNB) bits are in Input Mixer4 (R42), not in Input Mixer3 (R41), where these controls write the left channel bits.
Fixes 203db220718c ("ASoC: WM8991: Add initial WM8991 driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Again makes sense as per the headers.
Thanks,
Charles
Re: [PATCH 04/13] ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control
In reply to HyeongJun AnQuoted 8 lines · HyeongJun An
The LOMIX AINLMUX bypass volume (LLBLOVOL) is at bits 2:0 of Output Mixer5, not at bits 5:3, which hold the AINRMUX bypass volume (LRBLOVOL).
Fixes 203db220718c ("ASoC: WM8991: Add initial WM8991 driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 05/13] ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control
In reply to HyeongJun AnQuoted 7 lines · HyeongJun An
ADC 128x oversampling (ADCOSR128) is at bit 3 of ADC Control, not at bit 8, which is the high pass filter enable (HPFEN).
Fixes 6b3860b0a20a ("ASoC: WM8983: Initial driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 06/13] ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control
In reply to HyeongJun AnQuoted 7 lines · HyeongJun An
ADC 128x oversampling (ADCOSR128) is at bit 3 of ADC Control, not at bit 8, which is the high pass filter enable (HPFEN).
Fixes 6d6f8b832705 ("ASoC: WM8985: Initial driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 07/13] ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls
In reply to HyeongJun AnQuoted 8 lines · HyeongJun An
The noise gate hold time (
NG_HLD) is at bits 6:5 of each WM8958 DAC noise gate register, not at bits 3:1, which hold the threshold (NG_THR).Fixes 1ddc07d0f13a ("ASoC: Add WM8958 noise gate support")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 01/13] ASoC: codecs: wm8990: Fix definition of right input PGA controls
In reply to HyeongJun AnQuoted 8 lines · HyeongJun An
The right input PGA boost (R12MNBST, R34MNBST) and routing (R12MNB, R34MNB) bits are in Input Mixer4 (R42), not in Input Mixer3 (R41), where these controls write the left channel bits.
Fixes f10485e79882 ("[ALSA] ASoC: Add WM8990 driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Worth noting we don't seem to still have the datasheet for this part internally, but this looks correct as per the header file for the part.
Thanks,
Charles
Re: [PATCH 08/13] ASoC: codecs: wm8955: Fix definition of Treble Cutoff control
In reply to HyeongJun AnQuoted 7 lines · HyeongJun An
Treble cutoff (TC) is at bit 6 of Treble Control, not at bit 2, which is part of the treble volume (TRBL[3:0]).
Fixes 54db41c116c3 ("ASoC: wm8955: Use SOC_ENUM_SINGLE_DECL()")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Also struggling to find the datasheet for this one, but looks probably good from the headers, certainly the current value looks wrong :-)
Thanks,
Charles
Re: [PATCH 09/13] ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control
In reply to HyeongJun AnQuoted 8 lines · HyeongJun An
The Right Output Mixer Right Input Volume (
MIXINR_MIXOUTR_VOL) is at bits 2:0 of Output Mixer6, not at bits 8:6, which hold the IN2LN volume (IN2LN_MIXOUTR_VOL).Fixes 942c435ba79f ("ASoC: Add WM8993 CODEC driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 10/13] ASoC: codecs: wm8737: Fix definition of zero cross switches
In reply to HyeongJun AnQuoted 9 lines · HyeongJun An
The mic (xMZC) and PGA (xPZC) zero cross bits are bits 3 and 2 of each channel's Audio Path register.
SOC_DOUBLEtakes one register and two shifts, so both controls only write the left register. UseSOC_DOUBLE_R, as the Mic Boost Switch next to them does.Fixes 2a9ae13a2641 ("ASoC: Add initial WM8737 driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 11/13] ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control
In reply to HyeongJun AnQuoted 7 lines · HyeongJun An
The EQ3 band 1 gain is in
WM5100_EQ3_1, not inWM5100_EQ1_1, which holds the EQ1 band 1 gain.Fixes 6d4baf084f4d ("ASoC: Add WM5100 driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 12/13] ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control
In reply to HyeongJun AnQuoted 7 lines · HyeongJun An
The noise gate type is wm8750_enum[7], bit 1 of
WM8750_NGATE, not wm8750_enum[4], which is the 3D upper cut-off.Fixes abadfc928a27 ("[ALSA] ASoC codecs: WM8750 support")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Re: [PATCH 13/13] ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control
In reply to HyeongJun AnQuoted 8 lines · HyeongJun An
ADC polarity is bit 0 of
WM8510_ADC, not bit 0 ofWM8510_COMP, which is the loopback enable. wm8974, which has the same register layout, already usesWM8974_ADCfor this control.Fixes 5d421516670e ("[ALSA] ASoC: Add WM8510 driver")Assisted-by Claude:claude-opus-5-5Signed-off-by HyeongJun An <[email protected]>---
Thanks,
Charles
Mark Brown
maintainerQuoted 9 lines · HyeongJun An
ASoC: codecs: Fix Wolfson control definitions that write another control's bits
These are more fixes found by the overlap scan from the first series [1]. In each driver a control writes bits that belong to another control, or writes the left channel bits for a right channel control.
[1] https://lore.kernel.org/all/[email protected]/
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[01/13] ASoC: codecs: wm8990: Fix definition of right input PGA controls
https://git.kernel.org/broonie/sound/c/5bd6d05197af [02/13] ASoC: codecs: wm8990: Fix definition of LOMIX AINLMUX Bypass Volume control https://git.kernel.org/broonie/sound/c/75e0b607e345 [03/13] ASoC: codecs: wm8991: Fix definition of right input PGA controls https://git.kernel.org/broonie/sound/c/2dfecdc25d49 [04/13] ASoC: codecs: wm8991: Fix definition of LOMIX AINLMUX Bypass Volume control https://git.kernel.org/broonie/sound/c/fee722db39c2 [05/13] ASoC: codecs: wm8983: Fix definition of ADC 128x Oversampling control https://git.kernel.org/broonie/sound/c/c1af9e2272f0 [06/13] ASoC: codecs: wm8985: Fix definition of ADC 128x Oversampling control https://git.kernel.org/broonie/sound/c/a747ec6e12cf [07/13] ASoC: codecs: wm8994: Fix definition of WM8958 noise gate hold time controls https://git.kernel.org/broonie/sound/c/291d81d628f3 [08/13] ASoC: codecs: wm8955: Fix definition of Treble Cutoff control https://git.kernel.org/broonie/sound/c/71911bf5bb3f [09/13] ASoC: codecs: wm_hubs: Fix definition of MIXINR to MIXOUTR volume control https://git.kernel.org/broonie/sound/c/22bfcedd3feb [10/13] ASoC: codecs: wm8737: Fix definition of zero cross switches https://git.kernel.org/broonie/sound/c/121963197200 [11/13] ASoC: codecs: wm5100: Fix definition of EQ3 Band 1 Volume control https://git.kernel.org/broonie/sound/c/96d30816a9a4 [12/13] ASoC: codecs: wm8750: Fix definition of ALC Capture NG Type control https://git.kernel.org/broonie/sound/c/8c299077c787 [13/13] ASoC: codecs: wm8510: Fix definition of ADC Inversion Switch control https://git.kernel.org/broonie/sound/c/22d50113078d
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark