summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia.h
diff options
context:
space:
mode:
authorJoshua Stein <jcs@cvs.openbsd.org>2019-03-24 14:37:45 +0000
committerJoshua Stein <jcs@cvs.openbsd.org>2019-03-24 14:37:45 +0000
commit2d6e83e897b6247f6afef7ce588fb90b54691db0 (patch)
tree02258bca95894fa57f1520f8e4148651e5f70c8f /sys/dev/pci/azalia.h
parent58141d1d9966efffea75e872a091ead9c9d78386 (diff)
Add a quirk for the Huawei Matebook X to activate the right-side
speaker on its Dolby Atmos system. Through some extensive tracing of the Realtek Windows driver, I found the many hundreds of CORB commands that the Windows driver sends to initialize Dolby Atmos and activate both speakers. The list of CORB commands was optimized by Tomas Espeleta to reduce file size and then implemented in azalia by Stefan Sperling. ok stsp, deraadt
Diffstat (limited to 'sys/dev/pci/azalia.h')
-rw-r--r--sys/dev/pci/azalia.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/azalia.h b/sys/dev/pci/azalia.h
index ead7352ccb5..32c7cbf7990 100644
--- a/sys/dev/pci/azalia.h
+++ b/sys/dev/pci/azalia.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.h,v 1.65 2016/09/14 06:12:19 ratchov Exp $ */
+/* $OpenBSD: azalia.h,v 1.66 2019/03/24 14:37:44 jcs Exp $ */
/* $NetBSD: azalia.h,v 1.6 2006/01/16 14:15:26 kent Exp $ */
/*-
@@ -513,6 +513,7 @@
#define AZ_QRK_WID_TPDOCK1 0x00010000
#define AZ_QRK_WID_TPDOCK2 0x00020000
#define AZ_QRK_WID_TPDOCK3 0x00040000
+#define AZ_QRK_WID_DOLBY_ATMOS 0x00100000
/* memory-mapped types */
typedef struct {
@@ -730,3 +731,5 @@ int azalia_mixer_get(const codec_t *, nid_t, int, mixer_ctrl_t *);
int azalia_mixer_set(codec_t *, nid_t, int, const mixer_ctrl_t *);
int azalia_codec_enable_unsol(codec_t *);
+
+void azalia_codec_init_dolby_atmos(codec_t *);