From owner-freebsd-current@FreeBSD.ORG Tue Mar 12 07:09:18 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C5103694 for ; Tue, 12 Mar 2013 07:09:18 +0000 (UTC) (envelope-from dieterich.joh@gmail.com) Received: from mail-qc0-x235.google.com (mail-qc0-x235.google.com [IPv6:2607:f8b0:400d:c01::235]) by mx1.freebsd.org (Postfix) with ESMTP id 74C77CDB for ; Tue, 12 Mar 2013 07:09:18 +0000 (UTC) Received: by mail-qc0-f181.google.com with SMTP id a22so1916010qcs.12 for ; Tue, 12 Mar 2013 00:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=+WDKnL1bVA3sL5uweqHFNSUeAJbkqcPz9s6SbYHIitc=; b=Khk789OjGxztmfWt54yQE7Bw+47qijY0dyJi3wCfsZ8A6MMIaA9IuapB2DPcB3cgHP oeQ9+fKAMAinj6kyC2Q+kQYijcvmKQ0OA1WQdhKeTejSMSWwiIQhO7HXfFrANOZYmWk1 v1sQiptnfh7ZgFp8T8bnoN/h5HFiNcCGTvWOOGNFVKN+iz3LR3aMcz2eOxBJwn9oFspC qn728Zpedhc//YZG3jZuiIKXNMPyggTZPS2apMJis1azJGHP8jtlFTMvsB5CQ1GAP6Ze oz++MN2/bwNS0y8/4XaBMYncq3gRDHRrMxHDoFn9f0qSZXITzryICVmRVS2UeBMdknPl WuOQ== X-Received: by 10.49.51.5 with SMTP id g5mr24188060qeo.9.1363072157940; Tue, 12 Mar 2013 00:09:17 -0700 (PDT) Received: from bresson.poelloepaeae.de (pool-173-72-34-218.cmdnnj.fios.verizon.net. [173.72.34.218]) by mx.google.com with ESMTPS id u7sm26158856qau.2.2013.03.12.00.09.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 00:09:16 -0700 (PDT) Message-ID: <513ED49B.4060503@gmail.com> Date: Tue, 12 Mar 2013 03:09:15 -0400 From: Johannes Dieterich User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130309 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Headphone support on Thinkpad T430s Content-Type: multipart/mixed; boundary="------------060809090908040901030403" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 07:09:18 -0000 This is a multi-part message in MIME format. --------------060809090908040901030403 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dear list, please see a patch to enable proper headphone support on Thinkpad T430s models. The quirk uses the same logic as the recent patch to CURRENT to enable some other Thinkpad models. Unfortunately, I cannot comment if this will work for other models (such as the regular T430) as well, therefore I used the T430S identifier. Hope someone can commit this, Johannes --------------060809090908040901030403 Content-Type: text/plain; charset=us-ascii; name="t430s_headphones.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="t430s_headphones.diff" Index: sys/dev/sound/pci/hda/hdaa_patches.c =================================================================== --- sys/dev/sound/pci/hda/hdaa_patches.c (revision 248186) +++ sys/dev/sound/pci/hda/hdaa_patches.c (working copy) @@ -344,7 +344,8 @@ break; } } else if (id == HDA_CODEC_ALC269 && - subid == LENOVO_X1CRBN_SUBVENDOR) { + (subid == LENOVO_X1CRBN_SUBVENDOR || + subid == LENOVO_T430S_SUBVENDOR)) { switch (nid) { case 21: patch = "as=1 seq=15"; Index: sys/dev/sound/pci/hda/hdac.h =================================================================== --- sys/dev/sound/pci/hda/hdac.h (revision 248186) +++ sys/dev/sound/pci/hda/hdac.h (working copy) @@ -218,13 +218,14 @@ #define LENOVO_VENDORID 0x17aa #define LENOVO_3KN100_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2066) #define LENOVO_3KN200_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x384e) -#define LENOVO_B450_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3a0d) +#define LENOVO_B450_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3a0d) #define LENOVO_TCA55_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x1015) #define LENOVO_X1_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21e8) #define LENOVO_X1CRBN_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21f9) #define LENOVO_X220_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21da) #define LENOVO_X300_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x20ac) #define LENOVO_T420_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21ce) +#define LENOVO_T430S_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21fb) #define LENOVO_T520_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21cf) #define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff) --------------060809090908040901030403--