ALSA: hda/conexant: fix FEVM FA880 PRO internal mic mux
cover ALSA: hda/conexant: fix FEVM FA880 PRO internal mic mux
This is a 1-patch series.
On FEVM FA880 PRO with Conexant CX20632, the capture ADC mux on NID 0x14 comes up with conn index 1 (NID 0x1b), which leaves the built-in microphone muted on cold boot, and it falls back to the same wrong index again after suspend/resume.
The fix adds an SSID-exact quirk for 2014:8004 and forces AC_VERB_SET_CONNECT_SEL = 0x03 on NID 0x14 at HDA_FIXUP_ACT_INIT, so the internal mic path (NID 0x1e) is selected on both boot-time init and resume re-init.
Tested on real hardware.
Ocean Zhou (1):
ALSA: hda/conexant: set CX20632 int mic mux on FEVM FA880 PRO
sound/hda/codecs/conexant.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
Signature · 1 line
2.53.0
PATCH 1/1 ALSA: hda/conexant: set CX20632 int mic mux on FEVM FA880 PRO
On FEVM FA880 PRO (PCI SSID 2014:8004), CX20632 ADC node 0x14 comes up with connection index 1 (NID 0x1b), which leaves the built-in microphone muted. Manually selecting index 3 (NID 0x1e, internal top mic) restores capture, but the setting falls back to index 1 after suspend/resume.
Add a dedicated fixup for this exact SSID and force NID 0x14 to AC_VERB_SET_CONNECT_SEL = 0x03 in HDA_FIXUP_ACT_INIT. ACT_INIT runs on both cold boot codec initialization and the codec re-initialization path used after resume, so the built-in mic route is restored in both cases.
Tested on real hardware:
- hda-verb /dev/snd/hwC1D0 0x14 GET_CONNECT_SEL 0 returns 0x3 after boot and after suspend/resume
- /proc/asound/card1/codec#0 shows Node 0x14 connection star on 0x1e
--- sound/hda/codecs/conexant.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
sound/hda/codecs/conexant.c +17 -0
@@ -299,6 +299,7 @@ enum {CXT_PINCFG_SWS_JS201D ,CXT_PINCFG_TOP_SPEAKER ,CXT_FIXUP_HP_A_U , + CXT_FIXUP_FEVM_FA880_PRO_INTMIC, };/* for hda_fixup_thinkpad_acpi() */
@@ -340,6 +341,16 @@ static void cxt5066_increase_mic_boost(struct hda_codec *codec, (0 << AC_AMPCAP_MUTE_SHIFT)); } +static void cxt_fixup_cx20632_intmic (struct hda_codec *codec, +const struct hda_fixup *fix,int action) +{ +if (action !=HDA_FIXUP_ACT_INIT ) +return ; + +/* Force ADC 0x14 to internal mic pin 0x1e (conn index 3). */ +snd_hda_codec_write (codec,0x14 ,0 ,AC_VERB_SET_CONNECT_SEL ,0x03 ); +} +static void cxt_update_headset_mode (struct hda_codec *codec) {/* The verbs used in this function were tested on a Conexant CX20751/2 codec. */
@@ -1024,6 +1035,10 @@ static const struct hda_fixup cxt_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = cxt_fixup_hp_a_u, }, + [CXT_FIXUP_FEVM_FA880_PRO_INTMIC] = { + .type = HDA_FIXUP_FUNC, + .v.func = cxt_fixup_cx20632_intmic, + }, }; static const struct hda_quirk cxt5045_fixups[] = {
@@ -1125,6 +1140,7 @@ static const struct hda_quirk cxt5066_fixups[] = {SND_PCI_QUIRK (0x1c06 ,0x2011 ,"Lemote A1004" ,CXT_PINCFG_LEMOTE_A1004 ),SND_PCI_QUIRK (0x1c06 ,0x2012 ,"Lemote A1205" ,CXT_PINCFG_LEMOTE_A1205 ),SND_PCI_QUIRK (0x1d05 ,0x3012 ,"MECHREVO Wujie 15X Pro" ,CXT_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x2014 ,0x8004 ,"FEVM FA880 PRO" ,CXT_FIXUP_FEVM_FA880_PRO_INTMIC ),HDA_CODEC_QUIRK (0x2782 ,0x12c3 ,"Sirius Gen1" ,CXT_PINCFG_TOP_SPEAKER ), HDA_CODEC_QUIRK(0x2782, 0x12c5, "Sirius Gen2", CXT_PINCFG_TOP_SPEAKER), {}
@@ -1149,6 +1165,7 @@ static const struct hda_model_fixup cxt5066_fixup_models[] = { { .id = CXT_PINCFG_SWS_JS201D, .name = "sws-js201d" }, { .id = CXT_PINCFG_TOP_SPEAKER, .name = "sirius-top-speaker" }, { .id = CXT_FIXUP_HP_A_U, .name = "HP-U-support" }, + { .id = CXT_FIXUP_FEVM_FA880_PRO_INTMIC, .name = "fevm-fa880-pro-intmic" }, {} };
Signature · 1 line
2.53.0