From owner-svn-src-head@FreeBSD.ORG Sun May 19 01:45:30 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 822655F8; Sun, 19 May 2013 01:45:30 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 728E8D9C; Sun, 19 May 2013 01:45:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4J1jU5t028548; Sun, 19 May 2013 01:45:30 GMT (envelope-from sbruno@svn.freebsd.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4J1jU21028547; Sun, 19 May 2013 01:45:30 GMT (envelope-from sbruno@svn.freebsd.org) Message-Id: <201305190145.r4J1jU21028547@svn.freebsd.org> From: Sean Bruno Date: Sun, 19 May 2013 01:45:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250797 - head/sys/dev/sound/pci/hda X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2013 01:45:30 -0000 Author: sbruno Date: Sun May 19 01:45:29 2013 New Revision: 250797 URL: http://svnweb.freebsd.org/changeset/base/250797 Log: 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 Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c ============================================================================== --- head/sys/dev/sound/pci/hda/hdaa_patches.c Sun May 19 01:33:17 2013 (r250796) +++ head/sys/dev/sound/pci/hda/hdaa_patches.c Sun May 19 01:45:29 2013 (r250797) @@ -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 ||