ALSA: hda/realtek: Enable headset mic on F+ FLAPTOP r
Subsystems (2)
PATCH 1/1 ALSA: hda/realtek: Enable headset mic on F+ FLAPTOP r
The BIOS of the F+ FLAPTOP r laptop (Realtek ALC897, SSID 1e63:6d9a) declares only pin 0x1b, the headphone output of the 3.5 mm combo jack. Every other external pin is left at 0x411111f0, so the headset mic pin 0x19 is never parsed and no headset mic input exists. The pin is wired on this board - retasking it makes the headset mic record.
Reuse ALC897_FIXUP_HP_HSMIC_VERB, which already sets the pin config this machine needs: 0x19 as a headset mic without its own presence detect. Only 0x1b reports jack presence here, so a mic pin with presence detect would leave the driver in auto-mic mode waiting for an event that never arrives.
Without the quirk the generic parser retasks the lone headphone pin as an input instead. That surfaces as a "Headphone Mic" input which records only the internal mic bleed, so the headset mic appears present but dead.
Tested on ALT Linux, kernel 6.12, by recording a CTIA headset mic on the combo jack with the internal mic as a reference.
ALSA info before the patch:
https://alsa-project.org/db/?f=18363eddea933baee100c9bf461d0e5cf74c8de2
ALSA info after the patch:
https://alsa-project.org/db/?f=48ae2cd7aaf1eb0f24639ce83cd38cfd93b25f76
--- sound/hda/codecs/realtek/alc662.c | 1 + 1 file changed, 1 insertion(+)
sound/hda/codecs/realtek/alc662.c +1 -0
@@ -852,6 +852,7 @@SND_PCI_QUIRK (0x1b35 ,0x1234 ,"CZC ET26" ,ALC662_FIXUP_CZC_ET26 ),SND_PCI_QUIRK (0x1b35 ,0x2206 ,"CZC P10T" ,ALC662_FIXUP_CZC_P10T ),SND_PCI_QUIRK (0x1c6c ,0x1239 ,"Compaq N14JP6-V2" ,ALC897_FIXUP_HP_HSMIC_VERB ), +SND_PCI_QUIRK (0x1e63 ,0x6d9a ,"F+ FLAPTOP r" ,ALC897_FIXUP_HP_HSMIC_VERB ), #if 0/* Below is a quirk table taken from the old code.
Takashi Iwai
AppliedQuoted 20 lines · Ajrat Makhmutov
The BIOS of the F+ FLAPTOP r laptop (Realtek ALC897, SSID 1e63:6d9a) declares only pin
0x1b, the headphone output of the 3.5 mm combo jack. Every other external pin is left at0x411111f0, so the headset mic pin0x19is never parsed and no headset mic input exists. The pin is wired on this board - retasking it makes the headset mic record.Reuse
ALC897_FIXUP_HP_HSMIC_VERB, which already sets the pin config this machine needs:0x19as a headset mic without its own presence detect. Only0x1breports jack presence here, so a mic pin with presence detect would leave the driver in auto-mic mode waiting for an event that never arrives.Without the quirk the generic parser retasks the lone headphone pin as an input instead. That surfaces as a "Headphone Mic" input which records only the internal mic bleed, so the headset mic appears present but dead.
Tested on ALT Linux, kernel 6.12, by recording a CTIA headset mic on the combo jack with the internal mic as a reference.
Quoted 8 lines
ALSA info before the patch:
https://alsa-project.org/db/?f=18363eddea933baee100c9bf461d0e5cf74c8de2ALSA info after the patch:
https://alsa-project.org/db/?f=48ae2cd7aaf1eb0f24639ce83cd38cfd93b25f76Cc [email protected] # 6.12.xSigned-off-by Ajrat Makhmutov <[email protected]>
Applied to for-next branch now. Thanks.
Takashi