svn commit: r253036 - head/sys/dev/sound/pci/hda

Alexander Motin mav at FreeBSD.org
Mon Jul 8 15:28:09 UTC 2013


Author: mav
Date: Mon Jul  8 15:28:09 2013
New Revision: 253036
URL: http://svnweb.freebsd.org/changeset/base/253036

Log:
  Add quirk to configure headphones redirection on ASUS UX31A laptop.
  
  MFC after:	3 days

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	Mon Jul  8 13:24:18 2013	(r253035)
+++ head/sys/dev/sound/pci/hda/hdaa_patches.c	Mon Jul  8 15:28:09 2013	(r253036)
@@ -368,6 +368,13 @@ hdac_pin_patch(struct hdaa_widget *w)
 			patch = "as=1 seq=15";
 			break;
 		}
+	} else if (id == HDA_CODEC_ALC269 &&
+	    subid == ASUS_UX31A_SUBVENDOR) {
+		switch (nid) {
+		case 33:
+			patch = "as=1 seq=15";
+			break;
+		}
 	}
 
 	if (patch != NULL)

Modified: head/sys/dev/sound/pci/hda/hdac.h
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.h	Mon Jul  8 13:24:18 2013	(r253035)
+++ head/sys/dev/sound/pci/hda/hdac.h	Mon Jul  8 15:28:09 2013	(r253036)
@@ -198,6 +198,7 @@
 #define ASUS_F3JC_SUBVENDOR	HDA_MODEL_CONSTRUCT(ASUS, 0x1338)
 #define ASUS_G2K_SUBVENDOR	HDA_MODEL_CONSTRUCT(ASUS, 0x1339)
 #define ASUS_A7T_SUBVENDOR	HDA_MODEL_CONSTRUCT(ASUS, 0x13c2)
+#define ASUS_UX31A_SUBVENDOR	HDA_MODEL_CONSTRUCT(ASUS, 0x1517)
 #define ASUS_W2J_SUBVENDOR	HDA_MODEL_CONSTRUCT(ASUS, 0x1971)
 #define ASUS_M5200_SUBVENDOR	HDA_MODEL_CONSTRUCT(ASUS, 0x1993)
 #define ASUS_P5PL2_SUBVENDOR	HDA_MODEL_CONSTRUCT(ASUS, 0x817f)


More information about the svn-src-all mailing list