ALSA: hda - move DELL_WMI_MIC_MUTE_LED to the tail in the quirk chain
PATCH 1/2 ALSA: hda - move DELL_WMI_MIC_MUTE_LED to the tail in the quirk chain
We have one more Dell machine needs DELL_WMI_MIC_MUTE_LED quirk, but the machine uses alc293 instead of alc255. So if DELL_WMI_MIC_MUTE_LED still chain ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, the machine can't use this quirk.
To change this situation, let the DELL_WMI_MIC_MUTE_LED to be a standalone quirk, and let other quirks chain it.
After this change, this quirk can be chained to any existing quirks, and as a result, it is possible that this quirk is applied to a non-Dell machine or a Dell machine without mic mute led on it, but it is still safe since alc_fixup_dell_wmi() will return an error in these situations.
And remove the quirk for machine with subsystem id 0x6010 and 0x601f, these two machines will fall back to the quirk ALC255_FIXUP_DELL1_MIC_NO_PRESENCE-->ALC255_FIXUP_HEADSET_MODE--> ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED through pin_fixup_tbl[].
--- sound/pci/hda/patch_realtek.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/pci/hda/patch_realtek.c +2 -4
@@ -4709,6 +4709,8 @@ static const struct hda_fixup alc269_fixups[] = { [ALC255_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode_alc255, + .chained = true, + .chain_id =ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED }, [ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC] = { .type = HDA_FIXUP_FUNC,
@@ -4744,8 +4746,6 @@ static const struct hda_fixup alc269_fixups[] = { [ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_dell_wmi, - .chained_before = true, - .chain_id =ALC255_FIXUP_DELL1_MIC_NO_PRESENCE }, [ALC282_FIXUP_ASPIRE_V5_PINS] = { .type = HDA_FIXUP_PINS,
@@ -4783,10 +4783,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1028 ,0x05f4 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x05f5 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x05f6 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ), -SND_PCI_QUIRK (0x1028 ,0x0610 ,"Dell" ,ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED ),SND_PCI_QUIRK (0x1028 ,0x0615 ,"Dell Vostro 5470" ,ALC290_FIXUP_SUBWOOFER_HSJACK ),SND_PCI_QUIRK (0x1028 ,0x0616 ,"Dell Vostro 5470" ,ALC290_FIXUP_SUBWOOFER_HSJACK ), -SND_PCI_QUIRK (0x1028 ,0x061f ,"Dell" ,ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED ),SND_PCI_QUIRK (0x1028 ,0x0638 ,"Dell Inspiron 5439" ,ALC290_FIXUP_MONO_SPEAKERS_HSJACK ),SND_PCI_QUIRK (0x1028 ,0x064a ,"Dell" ,ALC293_FIXUP_DELL1_MIC_NO_PRESENCE ), SND_PCI_QUIRK(0x1028, 0x064b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
Signature · 1 line
1.9.1
PATCH 2/2 ALSA: hda - fix the mic mute led problem for Latitude E5550
The microphone mute led on the Latitude E5550 can't work. We need to apply DELL_WMI_MIC_MUTE_LED quirk to this machine.
The machine uses alc293 codec and already applied the quirk ALC293_FIXUP_DELL1_MIC_NO_PRESENCE through pin_fixup_tbl[].
Here we just let DELL_WMI_MIC_MUTE_LED be chained to ALC269_FIXUP_HEADSET_MODE, then the machine will have these quirks ALC293_FIXUP_DELL1_MIC_NO_PRESENCE--> ALC269_FIXUP_HEADSET_MODE-->ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED.
--- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+)
sound/pci/hda/patch_realtek.c +2 -0
@@ -4520,6 +4520,8 @@ static const struct hda_fixup alc269_fixups[] = { [ALC269_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode, + .chained = true, + .chain_id =ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED }, [ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC] = { .type = HDA_FIXUP_FUNC,
Signature · 1 line
1.9.1
Takashi Iwai
AppliedRe: [PATCH 2/2] ALSA: hda - fix the mic mute led problem for Latitude E5550
At Tue, 18 Nov 2014 17:57:41 +0800,
Quoted 7 lines · Hui Wang
The microphone mute led on the Latitude E5550 can't work. We need to apply
DELL_WMI_MIC_MUTE_LEDquirk to this machine.The machine uses alc293 codec and already applied the quirk
ALC293_FIXUP_DELL1_MIC_NO_PRESENCEthrough pin_fixup_tbl[].
Quoted 8 lines
Here we just let
DELL_WMI_MIC_MUTE_LEDbe chained toALC269_FIXUP_HEADSET_MODE, then the machine will have these quirks ALC293_FIXUP_DELL1_MIC_NO_PRESENCE--> ALC269_FIXUP_HEADSET_MODE-->ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED.Reported-and-Tested-by Po-Hsu Lin <[email protected]>Signed-off-by Hui Wang <[email protected]>
Thanks, applied.
Takashi
Quoted 20 lines
--- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+)sound/pci/hda/patch_realtek.c +2
-0@@ -4520,6 +4520,8 @@ static const struct hda_fixup alc269_fixups[] = { [ALC269_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode, + .chained = true, + .chain_id =ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED }, [ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC] = { .type = HDA_FIXUP_FUNC,Signature · 1 line
1.9.1
Takashi Iwai
AppliedAt Tue, 18 Nov 2014 17:57:40 +0800,
Quoted 15 lines · Hui Wang
We have one more Dell machine needs
DELL_WMI_MIC_MUTE_LEDquirk, but the machine uses alc293 instead of alc255. So ifDELL_WMI_MIC_MUTE_LEDstill chainALC255_FIXUP_DELL1_MIC_NO_PRESENCE, the machine can't use this quirk.To change this situation, let the
DELL_WMI_MIC_MUTE_LEDto be a standalone quirk, and let other quirks chain it.After this change, this quirk can be chained to any existing quirks, and as a result, it is possible that this quirk is applied to a non-Dell machine or a Dell machine without mic mute led on it, but it is still safe since
alc_fixup_dell_wmi()will return an error in these situations.
Quoted 8 lines
And remove the quirk for machine with subsystem id
0x6010and0x601f, these two machines will fall back to the quirk ALC255_FIXUP_DELL1_MIC_NO_PRESENCE-->ALC255_FIXUP_HEADSET_MODE-->ALC255_FIXUP_DELL_WMI_MIC_MUTE_LEDthrough pin_fixup_tbl[].Reported-and-Tested-by Po-Hsu Lin <[email protected]>Signed-off-by Hui Wang <[email protected]>
Thanks, applied.
Takashi
Quoted 40 lines
--- sound/pci/hda/patch_realtek.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)sound/pci/hda/patch_realtek.c +2
-4@@ -4709,6 +4709,8 @@ static const struct hda_fixup alc269_fixups[] = { [ALC255_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode_alc255, + .chained = true, + .chain_id =ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED }, [ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC] = { .type = HDA_FIXUP_FUNC,@@ -4744,8 +4746,6 @@ static const struct hda_fixup alc269_fixups[] = { [ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_dell_wmi, - .chained_before = true, - .chain_id =ALC255_FIXUP_DELL1_MIC_NO_PRESENCE }, [ALC282_FIXUP_ASPIRE_V5_PINS] = { .type = HDA_FIXUP_PINS,@@ -4783,10 +4783,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1028 ,0x05f4 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x05f5 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x05f6 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ), -SND_PCI_QUIRK (0x1028 ,0x0610 ,"Dell" ,ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED ),SND_PCI_QUIRK (0x1028 ,0x0615 ,"Dell Vostro 5470" ,ALC290_FIXUP_SUBWOOFER_HSJACK ),SND_PCI_QUIRK (0x1028 ,0x0616 ,"Dell Vostro 5470" ,ALC290_FIXUP_SUBWOOFER_HSJACK ), -SND_PCI_QUIRK (0x1028 ,0x061f ,"Dell" ,ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED ),SND_PCI_QUIRK (0x1028 ,0x0638 ,"Dell Inspiron 5439" ,ALC290_FIXUP_MONO_SPEAKERS_HSJACK ),SND_PCI_QUIRK (0x1028 ,0x064a ,"Dell" ,ALC293_FIXUP_DELL1_MIC_NO_PRESENCE ), SND_PCI_QUIRK(0x1028, 0x064b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),Signature · 1 line
1.9.1