summaryrefslogtreecommitdiffstats
path: root/sys/dev/audio_if.h
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>1997-07-10 23:06:29 +0000
committerprovos <provos@openbsd.org>1997-07-10 23:06:29 +0000
commit5b2c3f1fd0684de59361a15165ccbb8c3645f13b (patch)
tree74691b978f759d4ef1bd8b5020ad3fb3a49656f7 /sys/dev/audio_if.h
parentUse new SHA1* functions. (diff)
downloadwireguard-openbsd-5b2c3f1fd0684de59361a15165ccbb8c3645f13b.tar.xz
wireguard-openbsd-5b2c3f1fd0684de59361a15165ccbb8c3645f13b.zip
sync with NETBSD 30/3/97 + adapating aria.c
Diffstat (limited to 'sys/dev/audio_if.h')
-rw-r--r--sys/dev/audio_if.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/audio_if.h b/sys/dev/audio_if.h
index 9ee9b45ae1d..ac6c67440ce 100644
--- a/sys/dev/audio_if.h
+++ b/sys/dev/audio_if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio_if.h,v 1.4 1996/04/18 23:46:58 niklas Exp $ */
+/* $OpenBSD: audio_if.h,v 1.5 1997/07/10 23:06:30 provos Exp $ */
/* $NetBSD: audio_if.h,v 1.7 1996/03/07 15:00:10 christos Exp $ */
/*
@@ -53,14 +53,11 @@ struct audio_hw_if {
u_long (*get_out_sr)__P((void *));
/* Encoding. */
+ /* Precision = bits/sample, usually 8 or 16 */
/* XXX should we have separate in/out? */
int (*query_encoding)__P((void *, struct audio_encoding *));
- int (*set_encoding)__P((void *, u_int));
+ int (*set_format)__P((void *, u_int, u_int));
int (*get_encoding)__P((void *));
-
- /* Precision = bits/sample, usually 8 or 16 */
- /* XXX should we have separate in/out? */
- int (*set_precision)__P((void *, u_int));
int (*get_precision)__P((void *));
/* Channels - mono(1), stereo(2) */
@@ -86,9 +83,6 @@ struct audio_hw_if {
*/
int (*commit_settings)__P((void *));
- /* Return silence value for encoding */
- u_int (*get_silence)__P((int));
-
/* Software en/decode functions, set if SW coding required by HW */
void (*sw_encode)__P((void *, int, u_char *, int));
void (*sw_decode)__P((void *, int, u_char *, int));