diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-12-21 20:21:25 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-12-21 20:21:25 +0000 |
commit | 278bca9bf22c007da5199f29e799bd3b911433dc (patch) | |
tree | 6b64d4493fcf1b6f3fb5da63afe626dcfb801719 /sys/dev/pci/azalia.h | |
parent | 22499e1f27be5180c551f8d72f250bd542ef0cf8 (diff) |
add mixer_class member to struct widget_t, and define the mixer
classes in azalia.h instead of azalia_codec.c. this will allow
the mixer class to be determined outside of azalia_generic_mixer_init.
Diffstat (limited to 'sys/dev/pci/azalia.h')
-rw-r--r-- | sys/dev/pci/azalia.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/azalia.h b/sys/dev/pci/azalia.h index 71f49443e85..13c69024aa0 100644 --- a/sys/dev/pci/azalia.h +++ b/sys/dev/pci/azalia.h @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.h,v 1.26 2008/11/30 08:36:57 jakemsr Exp $ */ +/* $OpenBSD: azalia.h,v 1.27 2008/12/21 20:21:24 jakemsr Exp $ */ /* $NetBSD: azalia.h,v 1.6 2006/01/16 14:15:26 kent Exp $ */ /*- @@ -478,6 +478,10 @@ #define HDA_MAX_CHANNELS 16 #define HDA_MAX_SENSE_PINS 16 +#define AZ_CLASS_INPUT 0 +#define AZ_CLASS_OUTPUT 1 +#define AZ_CLASS_RECORD 2 + /* memory-mapped types */ typedef struct { uint32_t low; @@ -518,6 +522,7 @@ typedef struct { int enable; uint32_t widgetcap; int type; /* = bit20-24 of widgetcap */ + int mixer_class; int nconnections; nid_t *connections; int selected; |