From owner-freebsd-current@FreeBSD.ORG Tue Mar 12 10:44:45 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 60FE252D for ; Tue, 12 Mar 2013 10:44:45 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by mx1.freebsd.org (Postfix) with ESMTP id 01407A66 for ; Tue, 12 Mar 2013 10:44:44 +0000 (UTC) Received: by mail-ee0-f53.google.com with SMTP id e53so2584314eek.26 for ; Tue, 12 Mar 2013 03:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=zre6pXainB4VqHlBxZIM8perQEEGYC8cWTVZXvNVGO8=; b=oVipmVzW7Ht8wtxATjZglEqXyM0R0E2vXQN9omNfSSNXHtyOv3c2huVTLmBXWDAlEk Lb8J+j04IWd9nHrr/wJA+kH90vn8vc30nM1qq3LB8x4DM9gMSqVzKjVSF21kGJDeb6bW FcR+eiKW4RZe0PBsXUmRMNe9jgmeMa2+4b4lbRetLaa7z3qo+/Tx3RpI2S264KneZff4 NNuEEuOUbtIMiYueeV4K0Uw43c/UqyIy50sXrKaRM6ce423d6ntrds21K6/JubxoZNKV 14XNevK66Z7MW0lSZKdT8+muJ9h+n/vgV34n0Siryg4s4vyWGWIhXNCgof1M975ZUpxs zcSg== MIME-Version: 1.0 X-Received: by 10.14.219.129 with SMTP id m1mr41278202eep.16.1363085083884; Tue, 12 Mar 2013 03:44:43 -0700 (PDT) Received: by 10.14.133.204 with HTTP; Tue, 12 Mar 2013 03:44:43 -0700 (PDT) In-Reply-To: <1584949.6vl9dv5U6v@snasonovnbwxp.bcc> References: <513ED49B.4060503@gmail.com> <1584949.6vl9dv5U6v@snasonovnbwxp.bcc> Date: Tue, 12 Mar 2013 03:44:43 -0700 Message-ID: Subject: Re: Headphone support on Thinkpad T430s From: hiren panchasara To: Sergey Nasonov Content-Type: text/plain; charset=UTF-8 Cc: Johannes Dieterich , freebsd-current@freebsd.org 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 10:44:45 -0000 On Tue, Mar 12, 2013 at 1:04 AM, Sergey Nasonov wrote: > I have T430 and to get headphone working I am using following workaround: > > hint.hdaa.4.nid21.config="as=1 seq=15" in /boot/device.hints > > So the final patch should looks like this > > 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_T430_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_T430_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21f3) > +#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) > > > On Tuesday 12 March 2013 03:09:15 Johannes Dieterich wrote: >> 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, http://svnweb.freebsd.org/changeset/base/248187 Glebius just did. cheers, Hiren >> >> Johannes > -- > Best Regards, > Nasonov Sergey > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"