summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-05-08 03:52:38 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-05-08 03:52:38 +0000
commit9b14c2412a705c63c0c3812d32c231530bfaf8d5 (patch)
treea277d4fb5f575d417798ec7af6247c5d2ccee1ae /sys/dev/pci/azalia.h
parenta9dfbeb84a851f947455c476a3b89e2fe3d78518 (diff)
- make this compile with AZALIA_DEBUG
- introduce WIDGET_CHANNELS macro From NetBSD
Diffstat (limited to 'sys/dev/pci/azalia.h')
-rw-r--r--sys/dev/pci/azalia.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/azalia.h b/sys/dev/pci/azalia.h
index 945383dc9a7..c22d478f663 100644
--- a/sys/dev/pci/azalia.h
+++ b/sys/dev/pci/azalia.h
@@ -490,6 +490,7 @@ typedef struct {
} volume;
} d;
} widget_t;
+#define WIDGET_CHANNELS(w) ((w)->widgetcap & COP_AWCAP_STEREO ? 2 : 1)
typedef struct {
mixer_devinfo_t devinfo;