mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] ALSA: hda/conexant: fix FEVM FA880 PRO internal mic mux
@ 2026-05-29  4:11 ocean
  2026-05-29  9:05 ` Takashi Iwai
  0 siblings, 1 reply; 14+ messages in thread
From: ocean @ 2026-05-29  4:11 UTC (permalink / raw)
  To: tiwai, perex; +Cc: alsa-devel, linux-kernel, Ocean Zhou

From: Ocean Zhou <51983215+ocean-sudo@users.noreply.github.com>

FEVM FA880 PRO mini PC uses Conexant CX20632 codec. The internal
microphone is connected to pin 0x1e. In order to make it work,
we need to force ADC 0x14 connection to 0x1e (connection index 3).

This patch adds a new quirk CXT_FIXUP_CX20632_INTMIC to force
the connection selection on initialization, and applies it
for the SSID 2014:8004.

Signed-off-by: Ocean Zhou <51983215+ocean-sudo@users.noreply.github.com>
---
 sound/pci/hda/patch_conexant.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 2d4094be83ab..5e2279267104 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -300,6 +300,7 @@ enum {
 	CXT_PINCFG_SWS_JS201D,
 	CXT_PINCFG_TOP_SPEAKER,
 	CXT_FIXUP_HP_A_U,
+	CXT_FIXUP_CX20632_INTMIC,
 };
 
 /* for hda_fixup_thinkpad_acpi() */
@@ -343,6 +344,15 @@ 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. */
@@ -1035,6 +1045,10 @@ static const struct hda_fixup cxt_fixups[] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = cxt_fixup_hp_a_u,
 	},
+	[CXT_FIXUP_CX20632_INTMIC] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = cxt_fixup_cx20632_intmic,
+	},
 };
 
 static const struct hda_quirk cxt5045_fixups[] = {
@@ -1140,6 +1154,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_CX20632_INTMIC),
 	HDA_CODEC_QUIRK(0x2782, 0x12c3, "Sirius Gen1", CXT_PINCFG_TOP_SPEAKER),
 	HDA_CODEC_QUIRK(0x2782, 0x12c5, "Sirius Gen2", CXT_PINCFG_TOP_SPEAKER),
 	{}
@@ -1165,6 +1180,7 @@ static const struct hda_model_fixup cxt5066_fixup_models[] = {
 	{ .id = CXT_PINCFG_TOP_SPEAKER, .name = "sirius-top-speaker" },
 	{ .id = CXT_FIXUP_HP_A_U, .name = "HP-U-support" },
+	{ .id = CXT_FIXUP_CX20632_INTMIC, .name = "cx20632-intmic" },
 	{}
 };
 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-06-10 17:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-29  4:11 [PATCH v2] ALSA: hda/conexant: fix FEVM FA880 PRO internal mic mux ocean
2026-05-29  9:05 ` Takashi Iwai
2026-05-31  4:02   ` 周Ocean
     [not found]   ` <CACYx1SrnTfg6GKK2S1Vb13f9OWOq1x=VUDA=AFWs1CALsC_B2g@mail.gmail.com>
2026-05-31 13:26     ` Takashi Iwai
2026-06-03  2:06       ` 周Ocean
2026-06-03 15:08       ` 周Ocean
2026-06-04  8:12         ` Takashi Iwai
2026-06-06 14:19           ` 周Ocean
2026-06-07 12:15             ` Takashi Iwai
2026-06-07 16:48               ` 周Ocean
2026-06-07 17:40                 ` 周Ocean
2026-06-08  7:28                   ` Takashi Iwai
2026-06-10 15:19                     ` 周Ocean
2026-06-10 17:53                       ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox