Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jul 2014 08:44:16 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269152 - head/sys/dev/sound/pci/hda
Message-ID:  <201407270844.s6R8iG8s075634@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Jul 27 08:44:15 2014
New Revision: 269152
URL: http://svnweb.freebsd.org/changeset/base/269152

Log:
  Add support for my Lenovo T400.
  
  Tested:
  
  * Lenovo T400, model w/ P8700 Intel CPU on-board

Modified:
  head/sys/dev/sound/pci/hda/hdaa_patches.c
  head/sys/dev/sound/pci/hda/hdac.h

Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdaa_patches.c	Sun Jul 27 08:02:24 2014	(r269151)
+++ head/sys/dev/sound/pci/hda/hdaa_patches.c	Sun Jul 27 08:44:15 2014	(r269152)
@@ -346,6 +346,22 @@ hdac_pin_patch(struct hdaa_widget *w)
 			patch = "as=1 seq=15";
 			break;
 		}
+	} else if (id == HDA_CODEC_CX20561 &&
+	    subid == LENOVO_T400_SUBVENDOR) {
+		switch (nid) {
+		case 22:
+			patch = "as=1 seq=15";
+			break;
+		case 24:
+			patch = "as=2 seq=14";
+			break;
+		case 26:
+			patch = "as=1 seq=0";
+			break;
+		case 29:
+			patch = "as=2 seq=0";
+			break;
+		}
 	} else if (id == HDA_CODEC_CX20590 &&
 	    (subid == LENOVO_X1_SUBVENDOR ||
 	    subid == LENOVO_X220_SUBVENDOR ||

Modified: head/sys/dev/sound/pci/hda/hdac.h
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.h	Sun Jul 27 08:02:24 2014	(r269151)
+++ head/sys/dev/sound/pci/hda/hdac.h	Sun Jul 27 08:44:15 2014	(r269152)
@@ -236,6 +236,7 @@
 #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_T400_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x20f2)
 #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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407270844.s6R8iG8s075634>