Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2018 16:38:27 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r332890 - head/sys/dev/sound/pci/hda
Message-ID:  <201804231638.w3NGcR8b085925@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Mon Apr 23 16:38:27 2018
New Revision: 332890
URL: https://svnweb.freebsd.org/changeset/base/332890

Log:
  hda(4)
   - add quirk for Dell XPS9560 audio gleaned and massages from linux
  
  https://github.com/freebsd/freebsd/pull/137
  
  Submitted by:	K Staring
  MFC after:	3 days
  Relnotes:	yes

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 Apr 23 14:22:16 2018	(r332889)
+++ head/sys/dev/sound/pci/hda/hdaa_patches.c	Mon Apr 23 16:38:27 2018	(r332890)
@@ -410,6 +410,15 @@ hdac_pin_patch(struct hdaa_widget *w)
 			patch = "as=1 seq=15";
 			break;
 		}
+	} else if (id == HDA_CODEC_ALC298 && subid == DELL_XPS9560_SUBVENDOR) {
+		switch (nid) {
+		case 24:
+			config  = 0x01a1913c;
+			break;
+		case 26:
+			config  = 0x01a1913d;
+			break;
+		}
 	}
 
 	if (patch != NULL)

Modified: head/sys/dev/sound/pci/hda/hdac.h
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.h	Mon Apr 23 14:22:16 2018	(r332889)
+++ head/sys/dev/sound/pci/hda/hdac.h	Mon Apr 23 16:38:27 2018	(r332890)
@@ -201,6 +201,7 @@
 #define DELL_I1300_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x01c9)
 #define DELL_XPSM1210_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x01d7)
 #define DELL_OPLX745_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x01da)
+#define DELL_XPS9560_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x07be)
 #define DELL_ALL_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0xffff)
 
 /* Clevo */



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