Date: Tue, 12 Mar 2013 03:09:15 -0400 From: Johannes Dieterich <dieterich.joh@gmail.com> To: freebsd-current@freebsd.org Subject: Headphone support on Thinkpad T430s Message-ID: <513ED49B.4060503@gmail.com>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?513ED49B.4060503>
