From 156860b2b32cfd192528d405f9f4dff8071e6a3b Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Sun, 19 May 2013 01:45:29 +0000 Subject: [PATCH] Update snd quirks for T520, T420, X220. Group onboard mic and headphone mic jack together. Creates association that will switch between microphone inputs depending on the state of the headphone jack being connected to a live mic. Fixes onboard mic not working at all on T520. Tested on T520, T420. Suspect X220 needs this too, untested on. MFC after: 1 month --- sys/dev/sound/pci/hda/hdaa_patches.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c index ffa1f75e168..e1e2d746dd9 100644 --- a/sys/dev/sound/pci/hda/hdaa_patches.c +++ b/sys/dev/sound/pci/hda/hdaa_patches.c @@ -347,6 +347,16 @@ hdac_pin_patch(struct hdaa_widget *w) case 25: patch = "as=1 seq=15"; break; + /* + * Group onboard mic and headphone mic + * together. Fixes onboard mic. + */ + case 27: + patch = "as=2 seq=15"; + break; + case 35: + patch = "as=2"; + break; } } else if (id == HDA_CODEC_ALC269 && (subid == LENOVO_X1CRBN_SUBVENDOR ||