summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/azalia.h
diff options
context:
space:
mode:
authordeanna <deanna@openbsd.org>2007-07-23 02:03:42 +0000
committerdeanna <deanna@openbsd.org>2007-07-23 02:03:42 +0000
commit07e60bb68f7dfca5912b19f8f337989c4906a6dd (patch)
treed8330b85d00ed9bc2a3f002023b1c309ed6c892e /sys/dev/pci/azalia.h
parentGet rid of the fixe VA range for device mappings; use uvm_km_valloc() instead. (diff)
downloadwireguard-openbsd-07e60bb68f7dfca5912b19f8f337989c4906a6dd.tar.xz
wireguard-openbsd-07e60bb68f7dfca5912b19f8f337989c4906a6dd.zip
We will never make a mixer item out of the pin control operation, so
move it out of azalia_generic_mixer_set into its own function, azalia_generic_mixer_pinctrl. From kent@netbsd. In azalia_stac9200_mixer_init, let the unsolicited event handler make the initial headphone vs speaker choice. Removes some duplicate code. These changes only affect STAC9200. Tested by krw@ on a Latitude D620.
Diffstat (limited to 'sys/dev/pci/azalia.h')
-rw-r--r--sys/dev/pci/azalia.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/pci/azalia.h b/sys/dev/pci/azalia.h
index edc6d8f3a8f..8ef16858305 100644
--- a/sys/dev/pci/azalia.h
+++ b/sys/dev/pci/azalia.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.h,v 1.10 2007/05/02 17:01:22 deanna Exp $ */
+/* $OpenBSD: azalia.h,v 1.11 2007/07/23 02:03:42 deanna Exp $ */
/* $NetBSD: azalia.h,v 1.6 2006/01/16 14:15:26 kent Exp $ */
/*-
@@ -507,10 +507,9 @@ typedef struct {
#define MI_TARGET_CONNLIST 0x101
#define MI_TARGET_PINDIR 0x102 /* for bidirectional pin */
#define MI_TARGET_PINBOOST 0x103 /* for headphone pin */
-#define MI_TARGET_PINCTRL 0x104 /* for enabling/disabling pins */
-#define MI_TARGET_DAC 0x105
-#define MI_TARGET_ADC 0x106
-#define MI_TARGET_VOLUME 0x107
+#define MI_TARGET_DAC 0x104
+#define MI_TARGET_ADC 0x105
+#define MI_TARGET_VOLUME 0x106
} mixer_item_t;
#define VALID_WIDGET_NID(nid, codec) (nid == (codec)->audiofunc || \