aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2019-05-29 00:41:38 -0400
committerTakashi Iwai <tiwai@suse.de>2019-05-29 01:17:38 -0400
commit9cb40eb184c4220d244a532bd940c6345ad9dbd9 (patch)
tree6e40466abaf0a171f43173fb71a5f04ad93b886e
parent0b074ab7fc0d575247b9cc9f93bb7e007ca38840 (diff)
ALSA: hda/realtek - Improve the headset mic for Acer Aspire laptops
We met another Acer Aspire laptop which has the problem on the headset-mic, the Pin 0x19 is not set the corret configuration for a mic and the pin presence can't be detected too after plugging a headset. Kailang suggested that we should set the coeff to enable the mic and apply the ALC269_FIXUP_LIFEBOOK_EXTMIC. After doing that, both headset-mic presence and headset-mic work well. The existing ALC255_FIXUP_ACER_MIC_NO_PRESENCE set the headset-mic jack to be a phantom jack. Now since the jack can support presence unsol event, let us imporve it to set the jack to be a normal jack. https://bugs.launchpad.net/bugs/1821269 Fixes: 5824ce8de7b1c ("ALSA: hda/realtek - Add support for Acer Aspire E5-475 headset mic") Cc: Chris Chiu <chiu@endlessm.com> CC: Daniel Drake <drake@endlessm.com> Cc: <stable@vger.kernel.org> Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/patch_realtek.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index f1bac03e954b..18cb48054e54 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6223,13 +6223,15 @@ static const struct hda_fixup alc269_fixups[] = {
6223 .chain_id = ALC269_FIXUP_THINKPAD_ACPI, 6223 .chain_id = ALC269_FIXUP_THINKPAD_ACPI,
6224 }, 6224 },
6225 [ALC255_FIXUP_ACER_MIC_NO_PRESENCE] = { 6225 [ALC255_FIXUP_ACER_MIC_NO_PRESENCE] = {
6226 .type = HDA_FIXUP_PINS, 6226 .type = HDA_FIXUP_VERBS,
6227 .v.pins = (const struct hda_pintbl[]) { 6227 .v.verbs = (const struct hda_verb[]) {
6228 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ 6228 /* Enable the Mic */
6229 { } 6229 { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 },
6230 { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 },
6231 {}
6230 }, 6232 },
6231 .chained = true, 6233 .chained = true,
6232 .chain_id = ALC255_FIXUP_HEADSET_MODE 6234 .chain_id = ALC269_FIXUP_LIFEBOOK_EXTMIC
6233 }, 6235 },
6234 [ALC255_FIXUP_ASUS_MIC_NO_PRESENCE] = { 6236 [ALC255_FIXUP_ASUS_MIC_NO_PRESENCE] = {
6235 .type = HDA_FIXUP_PINS, 6237 .type = HDA_FIXUP_PINS,
@@ -7274,6 +7276,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
7274 {0x19, 0x0181303F}, 7276 {0x19, 0x0181303F},
7275 {0x21, 0x0221102f}), 7277 {0x21, 0x0221102f}),
7276 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1025, "Acer", ALC255_FIXUP_ACER_MIC_NO_PRESENCE, 7278 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1025, "Acer", ALC255_FIXUP_ACER_MIC_NO_PRESENCE,
7279 {0x12, 0x90a60140},
7280 {0x14, 0x90170120},
7281 {0x21, 0x02211030}),
7282 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1025, "Acer", ALC255_FIXUP_ACER_MIC_NO_PRESENCE,
7277 {0x12, 0x90a601c0}, 7283 {0x12, 0x90a601c0},
7278 {0x14, 0x90171120}, 7284 {0x14, 0x90171120},
7279 {0x21, 0x02211030}), 7285 {0x21, 0x02211030}),