summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia.h
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2009-05-31 02:57:52 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2009-05-31 02:57:52 +0000
commitb7aba38b6b06fac64b2b610ad953c111b5d684d2 (patch)
tree75e726bcb5093da2109e1634fa97a2fb59c99126 /sys/dev/pci/azalia.h
parent6d36489723e16575a03179284cfe0f375033894a (diff)
- all codecs now use the same functions, always. call the functions
directly instead of through pointers in the codec_t. - fold azalia_generic_{g,s}et_port into azalia_{g,s}et_port since both are small and partly duplicated eachother.
Diffstat (limited to 'sys/dev/pci/azalia.h')
-rw-r--r--sys/dev/pci/azalia.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/pci/azalia.h b/sys/dev/pci/azalia.h
index efd5f17541b..fd3467ef503 100644
--- a/sys/dev/pci/azalia.h
+++ b/sys/dev/pci/azalia.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.h,v 1.48 2009/05/29 21:16:37 jakemsr Exp $ */
+/* $OpenBSD: azalia.h,v 1.49 2009/05/31 02:57:51 jakemsr Exp $ */
/* $NetBSD: azalia.h,v 1.6 2006/01/16 14:15:26 kent Exp $ */
/*-
@@ -633,12 +633,6 @@ struct io_pin {
typedef struct codec_t {
int (*comresp)(const struct codec_t *, nid_t, uint32_t, uint32_t, uint32_t *);
- int (*init_dacgroup)(struct codec_t *);
- int (*mixer_init)(struct codec_t *);
- int (*mixer_delete)(struct codec_t *);
- int (*set_port)(struct codec_t *, mixer_ctrl_t *);
- int (*get_port)(struct codec_t *, mixer_ctrl_t *);
- int (*unsol_event)(struct codec_t *, int);
struct azalia_t *az;
uint32_t vid; /* codec vendor/device ID */
@@ -712,3 +706,11 @@ int azalia_widget_enabled(const codec_t *, nid_t);
int azalia_codec_gpio_quirks(codec_t *);
int azalia_codec_widget_quirks(codec_t *, nid_t);
int azalia_codec_fnode(codec_t *, nid_t, int, int);
+
+int azalia_init_dacgroup(codec_t *);
+int azalia_mixer_init(codec_t *);
+int azalia_mixer_delete(codec_t *);
+int azalia_unsol_event(codec_t *, int);
+int azalia_comresp(const codec_t *, nid_t, uint32_t, uint32_t, uint32_t *);
+int azalia_generic_mixer_get(const codec_t *, nid_t, int, mixer_ctrl_t *);
+int azalia_generic_mixer_set(codec_t *, nid_t, int, const mixer_ctrl_t *);