summaryrefslogtreecommitdiff
path: root/sys/dev/pci/envyreg.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-11-02 05:54:17 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-11-02 05:54:17 +0000
commit8cf0f3b7277cb8e42f8471fdda85b3869063464b (patch)
treec942881de8f43e4f7a920333365128adc26db27d /sys/dev/pci/envyreg.h
parenta4fc96907fb0609d373c5c19f4ae315eaad555d9 (diff)
Add support for ``M-Audio Revolution 5.1'' cards, based on envy24HT.
From Alexandr Shadchin <ShadchinAV _at_ mail.ru> Thanks!
Diffstat (limited to 'sys/dev/pci/envyreg.h')
-rw-r--r--sys/dev/pci/envyreg.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/pci/envyreg.h b/sys/dev/pci/envyreg.h
index 27a056a9d0e..02ce615cc7a 100644
--- a/sys/dev/pci/envyreg.h
+++ b/sys/dev/pci/envyreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: envyreg.h,v 1.10 2009/10/11 12:59:29 ratchov Exp $ */
+/* $OpenBSD: envyreg.h,v 1.11 2009/11/02 05:54:16 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
@@ -199,6 +199,18 @@
#define AK4358_ATT_EN 0x80
/*
+ * AK5365 control registers
+ */
+#define AK5365_RST 0x00
+#define AK5365_RST_NORM 0x01
+#define AK5365_SRC 0x01
+#define AK5365_SRC_MASK 0x07
+#define AK5365_CTRL 0x02
+#define AK5365_CTRL_MUTE 0x01
+#define AK5365_CTRL_I2S 0x08
+#define AK5365_ATT(chan) (0x4 + (chan))
+
+/*
* default formats
*/
#define ENVY_RCHANS 12