summaryrefslogtreecommitdiff
path: root/sys/dev/audio_if.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/audio_if.h')
-rw-r--r--sys/dev/audio_if.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/sys/dev/audio_if.h b/sys/dev/audio_if.h
index 90ae5a7ef2d..5620ff53e91 100644
--- a/sys/dev/audio_if.h
+++ b/sys/dev/audio_if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio_if.h,v 1.19 2002/07/23 17:53:25 drahn Exp $ */
+/* $OpenBSD: audio_if.h,v 1.20 2002/08/26 16:20:04 mickey Exp $ */
/* $NetBSD: audio_if.h,v 1.24 1998/01/10 14:07:25 tv Exp $ */
/*
@@ -65,20 +65,20 @@ struct audio_hw_if {
int (*open)(void *, int); /* open hardware */
void (*close)(void *); /* close hardware */
int (*drain)(void *); /* Optional: drain buffers */
-
+
/* Encoding. */
/* XXX should we have separate in/out? */
int (*query_encoding)(void *, struct audio_encoding *);
/* Set the audio encoding parameters (record and play).
- * Return 0 on success, or an error code if the
+ * Return 0 on success, or an error code if the
* requested parameters are impossible.
* The values in the params struct may be changed (e.g. rounding
* to the nearest sample rate.)
*/
- int (*set_params)(void *, int, int, struct audio_params *,
+ int (*set_params)(void *, int, int, struct audio_params *,
struct audio_params *);
-
+
/* Hardware may have some say in the blocksize to choose */
int (*round_blocksize)(void *, int);
@@ -106,13 +106,13 @@ struct audio_hw_if {
int (*getdev)(void *, struct audio_device *);
int (*setfd)(void *, int);
-
+
/* Mixer (in/out ports) */
int (*set_port)(void *, struct mixer_ctrl *);
int (*get_port)(void *, struct mixer_ctrl *);
int (*query_devinfo)(void *, struct mixer_devinfo *);
-
+
/* Allocate/free memory for the ring buffer. Usually malloc/free. */
/* The _old interfaces have been deprecated and will not be
called in newer kernels if the new interfaces are present */
@@ -121,7 +121,7 @@ struct audio_hw_if {
size_t (*round_buffersize)(void *, int, size_t);
paddr_t (*mappage)(void *, void *, off_t, int);
- int (*get_props)(void *); /* device properties */
+ int (*get_props)(void *); /* device properties */
int (*trigger_output)(void *, void *, void *, int,
void (*)(void *), void *, struct audio_params *);
@@ -141,8 +141,7 @@ struct audio_attach_args {
#define AUDIODEV_TYPE_RADIO 4
/* Attach the MI driver(s) to the MD driver. */
-struct device *audio_attach_mi(struct audio_hw_if *, void *,
- struct device *);
+struct device *audio_attach_mi(struct audio_hw_if *, void *, struct device *);
int audioprint(void *, const char *);
/* Device identity flags */