Skip to contentSkip to conversation

ALSA: hda - Add Dell headset detection quirk for one more laptop model

PATCH Superseded Hui Wang 2 participants 6 messages Dec 17, 2013 – Dec 18, 2013 Sound

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Hui Wang

author
#0 lore raw

PATCH 1/1 ALSA: hda - Add Dell headset detection quirk for one more laptop model

On the Dell machines with codec whose Subsystem Id is 0x10280640, no external microphone can be detected when plugging a 3-ring headset. If we add "model=dell-headset-multi" for the snd-hda-intel.ko, the problem will disappear.

The codec (Vendor ID: 0x10ec0255) on the machine belongs to alc_269 family.

---
This patch was generated against the master branch of
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git

 sound/pci/hda/patch_realtek.c | 1 +
 1 file changed, 1 insertion(+)
sound/pci/hda/patch_realtek.c +1 -0
index 3578f11..4d7c602 100644
@@ -4309,6 +4309,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439", ALC290_FIXUP_MONO_SPEAKERS),
 	SND_PCI_QUIRK(0x1028, 0x063e, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1028, 0x063f, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
+	SND_PCI_QUIRK(0x1028, 0x0640, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1028, 0x15cc, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1028, 0x15cd, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 24 lines · Hui Wang

On the Dell machines with codec whose Subsystem Id is 0x10280640, no external microphone can be detected when plugging a 3-ring headset. If we add "model=dell-headset-multi" for the snd-hda-intel.ko, the problem will disappear.

The codec (Vendor ID: 0x10ec0255) on the machine belongs to alc_269 family.

---
This patch was generated against the master branch of
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git

 sound/pci/hda/patch_realtek.c | 1 +
 1 file changed, 1 insertion(+)
sound/pci/hda/patch_realtek.c +0 -0
index 3578f11..4d7c602 100644

sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] = { · line 4312

Quoted 4 lines
sound/pci/hda/patch_realtek.c +1 -0
@@ -4309,6 +4309,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439", ALC290_FIXUP_MONO_SPEAKERS),
 	SND_PCI_QUIRK(0x1028, 0x063e, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1028, 0x063f, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
+	SND_PCI_QUIRK(0x1028, 0x0640, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),

Are you sure it shouldn't be ALC255_FIXUP_... in this line instead of ALC269_FIXUP_... ?

Quoted 4 lines
sound/pci/hda/patch_realtek.c +0 -0
 	SND_PCI_QUIRK(0x1028, 0x15cc, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1028, 0x15cd, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),
Signature · 2 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
author
#2 lore raw
Quoted 20 lines · David Henningsson
Quoted 19 lines · Hui Wang

On the Dell machines with codec whose Subsystem Id is 0x10280640, no external microphone can be detected when plugging a 3-ring headset. If we add "model=dell-headset-multi" for the snd-hda-intel.ko, the problem will disappear.

The codec (Vendor ID: 0x10ec0255) on the machine belongs to alc_269 family.

---
This patch was generated against the master branch of
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git

  sound/pci/hda/patch_realtek.c | 1 +
  1 file changed, 1 insertion(+)
Quoted 11 lines

sound/pci/hda/patch_realtek.c static const struct snd_pci_quirk alc269_fixup_tbl[] = { · line 4312

Quoted 9 lines
sound/pci/hda/patch_realtek.c +1 -0
index 3578f11..4d7c602 100644
@@ -4309,6 +4309,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
  	SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439", ALC290_FIXUP_MONO_SPEAKERS),
  	SND_PCI_QUIRK(0x1028, 0x063e, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
  	SND_PCI_QUIRK(0x1028, 0x063f, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
+	SND_PCI_QUIRK(0x1028, 0x0640, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),

Are you sure it shouldn't be ALC255_FIXUP_... in this line instead of ALC269_FIXUP_... ?

I also had the same concern as yours yesterday, so i let ShawnWang perform the test, he confirmed that adding "model=dell-headset-multi" can solve this problem. Below is the irc log:

<hwang4> shawnwang, Does adding "options snd-hda-intel model=,dell-headset-multi" solve the problem on this machine (10280640) <shawnwang> hwang4, yes
<hwang4> shawnwang, ok, got it, i will fix it.

Regards,
Hui.

Quoted 6 lines
Quoted 4 lines
sound/pci/hda/patch_realtek.c +0 -0
  	SND_PCI_QUIRK(0x1028, 0x15cc, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
  	SND_PCI_QUIRK(0x1028, 0x15cd, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
  	SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),
#3 lore raw
Quoted 38 lines · Hui Wang
Quoted 29 lines · David Henningsson
Quoted 28 lines · Hui Wang

On the Dell machines with codec whose Subsystem Id is 0x10280640, no external microphone can be detected when plugging a 3-ring headset. If we add "model=dell-headset-multi" for the snd-hda-intel.ko, the problem will disappear.

The codec (Vendor ID: 0x10ec0255) on the machine belongs to alc_269 family.

---
This patch was generated against the master branch of
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git

  sound/pci/hda/patch_realtek.c | 1 +
  1 file changed, 1 insertion(+)
sound/pci/hda/patch_realtek.c +0 -0
index 3578f11..4d7c602 100644
@@ -4309,6 +4309,7 @@ static const struct snd_pci_quirk
 alc269_fixup_tbl[] = {
      SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439",
 ALC290_FIXUP_MONO_SPEAKERS),
Quoted 8 lines
Quoted 6 lines
sound/pci/hda/patch_realtek.c +0 -0
      SND_PCI_QUIRK(0x1028, 0x063e, "Dell",
 ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
      SND_PCI_QUIRK(0x1028, 0x063f, "Dell",

ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
+ SND_PCI_QUIRK(0x1028, 0x0640, "Dell",
ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),

Are you sure it shouldn't be ALC255_FIXUP_... in this line instead of ALC269_FIXUP_... ?

Quoted 8 lines

I also had the same concern as yours yesterday, so i let ShawnWang perform the test, he confirmed that adding "model=dell-headset-multi" can solve this problem. Below is the irc log:

<hwang4> shawnwang, Does adding "options snd-hda-intel model=,dell-headset-multi" solve the problem on this machine (10280640) <shawnwang> hwang4, yes
<hwang4> shawnwang, ok, got it, i will fix it.

Well, just because the alc269 model works does not mean that the alc255 model does not work. They are quite similar, with the only difference being a few verbs set on initial boot. Maybe those verbs handle some corner case that was not tested explicitly by Shawn.

Signature · 2 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
author
#4 lore raw
Quoted 14 lines · David Henningsson
Quoted 14 lines
Quoted 14 lines
Quoted 10 lines
       SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439",
Quoted 9 lines
Quoted 7 lines
Quoted 7 lines

ALC290_FIXUP_MONO_SPEAKERS),

      SND_PCI_QUIRK(0x1028, 0x063e, "Dell",
ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
      SND_PCI_QUIRK(0x1028, 0x063f, "Dell",

ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
+ SND_PCI_QUIRK(0x1028, 0x0640, "Dell",
ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),

Are you sure it shouldn't be ALC255_FIXUP_... in this line instead of ALC269_FIXUP_... ?

I also had the same concern as yours yesterday, so i let ShawnWang perform the test, he confirmed that adding "model=dell-headset-multi" can solve this problem. Below is the irc log:

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

<hwang4> shawnwang, Does adding "options snd-hda-intel model=,dell-headset-multi" solve the problem on this machine (10280640) <shawnwang> hwang4, yes
<hwang4> shawnwang, ok, got it, i will fix it.

Well, just because the alc269 model works does not mean that the alc255 model does not work. They are quite similar, with the only difference being a few verbs set on initial boot. Maybe those verbs handle some corner case that was not tested explicitly by Shawn.

All right, I am going to let Shawn redo the test.

Regards,
Hui.

author
#5 lore raw
In reply to David Henningsson
Quoted 18 lines · David Henningsson
Quoted 18 lines
Quoted 18 lines
Quoted 14 lines

--- a/sound/pci/hda/patch_realtek.c

Quoted 13 lines
Quoted 11 lines
Quoted 11 lines

+++ b/sound/pci/hda/patch_realtek.c

(quoted diff) +0 -0
@@ -4309,6 +4309,7 @@ static const struct snd_pci_quirk
 alc269_fixup_tbl[] = {
      SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439",
 ALC290_FIXUP_MONO_SPEAKERS),
      SND_PCI_QUIRK(0x1028, 0x063e, "Dell",
 ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
      SND_PCI_QUIRK(0x1028, 0x063f, "Dell",

ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
+ SND_PCI_QUIRK(0x1028, 0x0640, "Dell",
ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),

Are you sure it shouldn't be ALC255_FIXUP_... in this line instead of ALC269_FIXUP_... ?

I also had the same concern as yours yesterday, so i let ShawnWang perform the test, he confirmed that adding "model=dell-headset-multi" can solve this problem. Below is the irc log:

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

<hwang4> shawnwang, Does adding "options snd-hda-intel model=,dell-headset-multi" solve the problem on this machine (10280640) <shawnwang> hwang4, yes
<hwang4> shawnwang, ok, got it, i will fix it.

Well, just because the alc269 model works does not mean that the alc255 model does not work. They are quite similar, with the only difference being a few verbs set on initial boot. Maybe those verbs handle some corner case that was not tested explicitly by Shawn.

Shawn has done the test, according to his test result, both ALC255_FIXUP and ALC269_FIXUP can fix headset detection bug, and furthermore he also did the record and playback test for them, the result was same, no matter we choose ALC255 or ALC269, the machine can correctly detect, record and playback.

Since the codec's vendor ID is 0x10ec0255, choosing ALC255_FIXUP is more reasonable and safer.

Regards,
Hui.