svn commit: r236748 - stable/8/sys/dev/sound/pci/hda

Alexander Motin mav at FreeBSD.org
Fri Jun 8 12:24:48 UTC 2012


Author: mav
Date: Fri Jun  8 12:24:47 2012
New Revision: 236748
URL: http://svn.freebsd.org/changeset/base/236748

Log:
  MFC r224967:
  Fix headphones pin configuration on Lenovo B450 laptop.

Modified:
  stable/8/sys/dev/sound/pci/hda/hdac.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/dev/sound/pci/hda/hdac.c
==============================================================================
--- stable/8/sys/dev/sound/pci/hda/hdac.c	Fri Jun  8 12:23:02 2012	(r236747)
+++ stable/8/sys/dev/sound/pci/hda/hdac.c	Fri Jun  8 12:24:47 2012	(r236748)
@@ -295,6 +295,7 @@ SND_DECLARE_FILE("$FreeBSD$");
 #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_TCA55_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x1015)
 #define LENOVO_ALL_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
 
@@ -2582,6 +2583,13 @@ hdac_widget_pin_getconfig(struct hdac_wi
 			break;
 		}
 	    }
+	} else if (id == HDA_CODEC_CX20561 &&
+	    sc->pci_subvendor == LENOVO_B450_SUBVENDOR) {
+		switch (nid) {
+		case 22:
+			patch = "as=1 seq=15";
+			break;
+		}
 	}
 
 	if (patch != NULL)


More information about the svn-src-stable-8 mailing list