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

Marius Strobl marius at FreeBSD.org
Wed Apr 23 19:26:00 UTC 2014


Author: marius
Date: Wed Apr 23 19:25:59 2014
New Revision: 264831
URL: http://svnweb.freebsd.org/changeset/base/264831

Log:
  Add quirk to configure headphones redirection on Intel DH87RL boards.
  
  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	Wed Apr 23 19:12:26 2014	(r264830)
+++ head/sys/dev/sound/pci/hda/hdaa_patches.c	Wed Apr 23 19:25:59 2014	(r264831)
@@ -355,7 +355,7 @@ hdac_pin_patch(struct hdaa_widget *w)
 		case 25:
 			patch = "as=1 seq=15";
 			break;
-		/* 
+		/*
 		 * Group onboard mic and headphone mic
 		 * together.  Fixes onboard mic.
 		 */
@@ -383,6 +383,13 @@ hdac_pin_patch(struct hdaa_widget *w)
 			patch = "as=1 seq=15";
 			break;
 		}
+	} else if (id == HDA_CODEC_ALC892 &&
+	    subid == INTEL_DH87RL_SUBVENDOR) {
+		switch (nid) {
+		case 27:
+			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	Wed Apr 23 19:12:26 2014	(r264830)
+++ head/sys/dev/sound/pci/hda/hdac.h	Wed Apr 23 19:25:59 2014	(r264831)
@@ -155,6 +155,7 @@
 /* OEM/subvendors */
 
 /* Intel */
+#define	INTEL_DH87RL_SUBVENDOR	HDA_MODEL_CONSTRUCT(INTEL, 0x204a)
 #define INTEL_D101GGC_SUBVENDOR	HDA_MODEL_CONSTRUCT(INTEL, 0xd600)
 
 /* HP/Compaq */


More information about the svn-src-head mailing list