summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia.h
diff options
context:
space:
mode:
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;