summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia.h
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-12-23 04:12:20 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-12-23 04:12:20 +0000
commitebd28540e4f7be4f9ef9d4d4d33e668a0539bff7 (patch)
tree997eb0bf18f867ce2be2b85df50415aaa5660159 /sys/dev/pci/azalia.h
parent8083bb86bd02150fececb5437e32e454c0a9cfd6 (diff)
a) a widget's nid is always it's index in the codec's widget list.
b) members of the widget connection list may be invalid. so, - change azalia_nid_to_index to azalia_widget_enabled, and have it only check that the given nid is valid, and that the corresponding widget is enabled. - use azalia_widget_enabled every time members of the connection list are used.
Diffstat (limited to 'sys/dev/pci/azalia.h')
-rw-r--r--sys/dev/pci/azalia.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/azalia.h b/sys/dev/pci/azalia.h
index 2d77dae781d..7179acf5037 100644
--- a/sys/dev/pci/azalia.h
+++ b/sys/dev/pci/azalia.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.h,v 1.28 2008/12/22 00:03:08 jakemsr Exp $ */
+/* $OpenBSD: azalia.h,v 1.29 2008/12/23 04:12:19 jakemsr Exp $ */
/* $NetBSD: azalia.h,v 1.6 2006/01/16 14:15:26 kent Exp $ */
/*-
@@ -636,3 +636,4 @@ typedef struct codec_t {
int azalia_codec_init_vtbl(codec_t *);
int azalia_codec_construct_format(codec_t *, int, int);
+int azalia_widget_enabled(const codec_t *, nid_t);