ALSA: hda/realtek: Fix the Dell XPS 8940 headset microphone
PATCH 1/1 ALSA: hda/realtek: Fix the Dell XPS 8940 headset microphone
The Dell XPS 8940 (1028:09c5) has an ALC3861 codec (0x10ec0899). Its BIOS marks the headset microphone pin at NID 0x19 as disconnected (0x411111f0). With no external microphone input in the pin configuration, the generic parser creates a shared headphone/mic input on NID 0x1b instead. Headphone playback works, but the headset microphone is silent.
Override NID 0x19 as a front microphone without independent presence detection. This gives the generic parser the dedicated microphone input and preserves NID 0x1b for simultaneous headphone playback.
I encountered this issue on my XPS 8940. Similar symptoms were also reported by a user on Ubuntu:
https://bugs.launchpad.net/bugs/1971232
---
Notes:
Build-tested alc882.o with x86_64 defconfig, GCC 16.2.0 and W=1 without warnings. The patch also applies to upstream v6.18.
Boot-tested on a Dell XPS 8940 running Linux 6.18.58. Microphone capture and headphone playback work simultaneously.
sound/hda/codecs/realtek/alc882.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
sound/hda/codecs/realtek/alc882.c +10 -0
@@ -50,6 +50,7 @@ enum {ALC889_FIXUP_MP41_VREF ,ALC882_FIXUP_INV_DMIC ,ALC882_FIXUP_NO_PRIMARY_HP , +ALC898_FIXUP_DELL_XPS8940_MIC ,ALC887_FIXUP_ASUS_BASS ,ALC887_FIXUP_BASS_CHMAP , ALC1220_FIXUP_GB_DUAL_CODECS,
@@ -507,6 +508,13 @@ static const struct hda_fixup alc882_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc882_fixup_no_primary_hp, }, + [ALC898_FIXUP_DELL_XPS8940_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl []) { + {0x19 ,0x02a19130 },/* headset mic, no separate jack detect */ + {} + }, + }, [ALC887_FIXUP_ASUS_BASS] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl []) {
@@ -610,6 +618,8 @@ static const struct hda_quirk alc882_fixup_tbl[] = {SND_PCI_QUIRK (0x1025 ,0x0259 ,"Acer Aspire 5935" ,ALC889_FIXUP_DAC_ROUTE ),SND_PCI_QUIRK (0x1025 ,0x026b ,"Acer Aspire 8940G" ,ALC882_FIXUP_ACER_ASPIRE_8930G ),SND_PCI_QUIRK (0x1025 ,0x0296 ,"Acer Aspire 7736z" ,ALC882_FIXUP_ACER_ASPIRE_7736 ), +SND_PCI_QUIRK (0x1028 ,0x09c5 ,"Dell XPS 8940" , +ALC898_FIXUP_DELL_XPS8940_MIC ),SND_PCI_QUIRK (0x1043 ,0x13c2 ,"Asus A7M" ,ALC882_FIXUP_EAPD ),SND_PCI_QUIRK (0x1043 ,0x1873 ,"ASUS W90V" ,ALC882_FIXUP_ASUS_W90V ), SND_PCI_QUIRK(0x1043, 0x1971, "Asus W2JC", ALC882_FIXUP_ASUS_W2JC),
base-commit: a4311e9447bbb219044db38897f95be112f46a8a
Quoted 11 lines · Angel J
The Dell XPS 8940 (1028:09c5) has an ALC3861 codec (
0x10ec0899). Its BIOS marks the headset microphone pin at NID0x19as disconnected (0x411111f0). With no external microphone input in the pin configuration, the generic parser creates a shared headphone/mic input on NID0x1binstead. Headphone playback works, but the headset microphone is silent.Override NID
0x19as a front microphone without independent presence detection. This gives the generic parser the dedicated microphone input and preserves NID0x1bfor simultaneous headphone playback.
Quoted 7 lines
I encountered this issue on my XPS 8940. Similar symptoms were also reported by a user on Ubuntu:
https://bugs.launchpad.net/bugs/1971232
The code change looks OK, but could you resubmit with a proper Signed-off-by tag with your full name (also From tag, too)? Signed-off-by is a legal requirement.
thanks,
Takashi
Quoted 3 lines · Takashi Iwai
The code change looks OK, but could you resubmit with a proper Signed-off-by tag with your full name (also From tag, too)? Signed-off-by is a legal requirement.
Hi Takashi,
Thanks for reviewing. My understanding is that the guidelines require a known identity, without necessarily requiring disclosure of a full name. I consistently use “Angel J” and this email address for kernel contributions. My PCI fix, commit 8805840aad73, was merged with the same author identity and Signed-off-by.
Is there an additional requirement for this submission that I’m missing?
Thanks,
Angel J
Quoted 6 lines · Angel J
Quoted 3 lines · Takashi Iwai
The code change looks OK, but could you resubmit with a proper Signed-off-by tag with your full name (also From tag, too)? Signed-off-by is a legal requirement.
Quoted 7 lines
Hi Takashi,
Thanks for reviewing. My understanding is that the guidelines require a known identity, without necessarily requiring disclosure of a full name. I consistently use “Angel J” and this email address for kernel contributions. My PCI fix, commit
8805840aad73, was merged with the same author identity and Signed-off-by.
Is your identity really already widely known in the kernel community? I see only one recent commit in the past, and I can't see it's really "known".
thanks,
Takashi
Quoted 11 lines · Takashi Iwai
Quoted 5 lines · Angel J
Thanks for reviewing. My understanding is that the guidelines require a known identity, without necessarily requiring disclosure of a full name. I consistently use “Angel J” and this email address for kernel contributions. My PCI fix, commit
8805840aad73, was merged with the same author identity and Signed-off-by.Is your identity really already widely known in the kernel community? I see only one recent commit in the past, and I can't see it's really "known".
Hi Takashi,
No, I'm a new contributor and not widely known, and a full name would not change that. I don't read "known identity" as requiring it, though. Documentation/process/submitting-patches.rst asks for "a known identity (sorry, no anonymous contributions.)", which I understand as excluding anonymous contributions rather than requiring a full name.
"Angel J" is the name I use consistently for my public work, and I can be reached at this address.
Let me know if you read the guideline differently.
Thanks,
Angel J
Quoted 10 lines · Angel J
Quoted 8 lines · Takashi Iwai
Quoted 5 lines · Angel J
Thanks for reviewing. My understanding is that the guidelines require a known identity, without necessarily requiring disclosure of a full name. I consistently use “Angel J” and this email address for kernel contributions. My PCI fix, commit
8805840aad73, was merged with the same author identity and Signed-off-by.
Quoted 8 lines
Quoted 3 lines
Is your identity really already widely known in the kernel community? I see only one recent commit in the past, and I can't see it's really "known".
Hi Takashi,
No, I'm a new contributor and not widely known, and a full name would not change that.
As Signed-off-by tag is a legal requirement, giving a full name makes the identity obviously clearer.
Quoted 5 lines
I don't read "known identity" as requiring it, though.
Documentation/process/submitting-patches.rstasks for "a known identity (sorry, no anonymous contributions.)", which I understand as excluding anonymous contributions rather than requiring a full name.
Quoted 7 lines
"Angel J" is the name I use consistently for my public work, and I can be reached at this address.
Let me know if you read the guideline differently.
Thanks,
Angel J
Honestly speaking, the problem is that I don't know you, so I can't trust. If you have been involved with the kernel development long enough, e.g. already appearing with "Angel J" in many threads or commits, then it could be a good sign that it's a trustable known identity. But it doesn't look like that for now...
thanks,
Takashi
Quoted 5 lines · Takashi Iwai
Honestly speaking, the problem is that I don't know you, so I can't trust. If you have been involved with the kernel development long enough, e.g. already appearing with "Angel J" in many threads or commits, then it could be a good sign that it's a trustable known identity. But it doesn't look like that for now...
Hi Takashi,
That is fair, I am new to kernel development. Outside the kernel I am an active open source contributor, mostly to NixOS, with over 100 merged changes in nixpkgs and contributions to other projects from this account:
I am not comfortable publishing my full name in a public archive. If the above is not enough, is there another way I could establish the identity that would work for you?
Thanks,
Angel J
Quoted 15 lines · Angel J
Quoted 5 lines · Takashi Iwai
Honestly speaking, the problem is that I don't know you, so I can't trust. If you have been involved with the kernel development long enough, e.g. already appearing with "Angel J" in many threads or commits, then it could be a good sign that it's a trustable known identity. But it doesn't look like that for now...
Hi Takashi,
That is fair, I am new to kernel development. Outside the kernel I am an active open source contributor, mostly to NixOS, with over 100 merged changes in nixpkgs and contributions to other projects from this account:
Quoted 5 lines
I am not comfortable publishing my full name in a public archive. If the above is not enough, is there another way I could establish the identity that would work for you?
Well, although I'm not comfortable with the situation, the code change itself is so trivial and can't do anything seriously wrong -- so it's not wise to delay it just because of that, and I took as is now.
thanks,
Takashi