misc/176656: Headphones redirection for Lenovo T420 and T520
Hiren Panchasara
hiren.panchasara at gmail.com
Tue Mar 5 06:00:00 UTC 2013
>Number: 176656
>Category: misc
>Synopsis: Headphones redirection for Lenovo T420 and T520
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 05 06:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Hiren Panchasara
>Release: current
>Organization:
>Environment:
FreeBSD my.machine.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r247409M: Mon Mar 4 14:36:48 PST 2013
>Description:
Inspired by r247815 from mav@
http://svnweb.freebsd.org/base?view=revision&revision=247815
Adding similar quirks for Lenovo T420 and T520.
>How-To-Repeat:
With the patch, sound gets redirected to headphones when inserted and back to laptop speakers when removed.
>Fix:
Index: sys/dev/sound/pci/hda/hdaa_patches.c
===================================================================
--- sys/dev/sound/pci/hda/hdaa_patches.c (revision 247821)
+++ sys/dev/sound/pci/hda/hdaa_patches.c (working copy)
@@ -334,7 +334,9 @@
break;
}
} else if (id == HDA_CODEC_CX20590 &&
- subid == LENOVO_X220_SUBVENDOR) {
+ (subid == LENOVO_X220_SUBVENDOR ||
+ subid == LENOVO_T420_SUBVENDOR ||
+ subid == LENOVO_T520_SUBVENDOR)) {
switch (nid) {
case 25:
patch = "as=1 seq=15";
Index: sys/dev/sound/pci/hda/hdac.h
===================================================================
--- sys/dev/sound/pci/hda/hdac.h (revision 247821)
+++ sys/dev/sound/pci/hda/hdac.h (working copy)
@@ -222,6 +222,8 @@
#define LENOVO_TCA55_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x1015)
#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_T520_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21cf)
#define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
/* Samsung */
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list