diff options
author | 2016-09-14 06:12:19 +0000 | |
---|---|---|
committer | 2016-09-14 06:12:19 +0000 | |
commit | 7cb42e31c81b1e003815ca6e6cbf9182b1f7e7fe (patch) | |
tree | e6ea853253b5ad1ea38c78dc01025b1cac88e7f2 /sys/dev/isa/gus.c | |
parent | add %-escapes to AuthorizedPrincipalsCommand to match those supported (diff) | |
download | wireguard-openbsd-7cb42e31c81b1e003815ca6e6cbf9182b1f7e7fe.tar.xz wireguard-openbsd-7cb42e31c81b1e003815ca6e6cbf9182b1f7e7fe.zip |
Remove drain(), query_encoding(), mappage() and get_default_params()
methods from all audio drivers and from the audio_if structure as they
are never called.
Diffstat (limited to 'sys/dev/isa/gus.c')
-rw-r--r-- | sys/dev/isa/gus.c | 58 |
1 files changed, 1 insertions, 57 deletions
diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c index 70881f89edc..a3741beb31e 100644 --- a/sys/dev/isa/gus.c +++ b/sys/dev/isa/gus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gus.c,v 1.43 2015/06/25 20:05:11 ratchov Exp $ */ +/* $OpenBSD: gus.c,v 1.44 2016/09/14 06:12:19 ratchov Exp $ */ /* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */ /*- @@ -263,10 +263,6 @@ static const unsigned short gus_log_volumes[512] = { struct audio_hw_if gus_hw_if = { gusopen, gusclose, - NULL, /* drain */ - - gus_query_encoding, - gus_set_params, gus_round_blocksize, @@ -290,21 +286,15 @@ struct audio_hw_if gus_hw_if = { gus_malloc, gus_free, gus_round, - gus_mappage, gus_get_props, NULL, - NULL, NULL }; static struct audio_hw_if gusmax_hw_if = { gusmaxopen, gusmax_close, - NULL, /* drain */ - - gus_query_encoding, /* query encoding */ - gusmax_set_params, gusmax_round_blocksize, @@ -329,11 +319,9 @@ static struct audio_hw_if gusmax_hw_if = { ad1848_malloc, ad1848_free, ad1848_round, - ad1848_mappage, gusmax_get_props, NULL, - NULL, NULL }; @@ -3115,44 +3103,6 @@ mute: return 0; } -int -gus_query_encoding(void *addr, struct audio_encoding *fp) -{ - switch (fp->index) { - case 0: - strlcpy(fp->name, AudioEslinear, sizeof fp->name); - fp->encoding = AUDIO_ENCODING_SLINEAR; - fp->precision = 8; - fp->flags = 0; - break; - case 1: - strlcpy(fp->name, AudioEslinear_le, sizeof fp->name); - fp->encoding = AUDIO_ENCODING_SLINEAR_LE; - fp->precision = 16; - fp->flags = 0; - break; - case 2: - strlcpy(fp->name, AudioEulinear, sizeof fp->name); - fp->encoding = AUDIO_ENCODING_ULINEAR; - fp->precision = 8; - fp->flags = 0; - break; - case 3: - strlcpy(fp->name, AudioEulinear_le, sizeof fp->name); - fp->encoding = AUDIO_ENCODING_ULINEAR_LE; - fp->precision = 16; - fp->flags = 0; - break; - default: - return(EINVAL); - /*NOTREACHED*/ - } - fp->bps = AUDIO_BPS(fp->precision); - fp->msb = 1; - - return (0); -} - void * gus_malloc(void *addr, int direction, size_t size, int pool, int flags) { @@ -3181,12 +3131,6 @@ gus_round(void *addr, int direction, size_t size) return size; } -paddr_t -gus_mappage(void *addr, void *mem, off_t off, int prot) -{ - return isa_mappage(mem, off, prot); -} - /* * Setup the ICS mixer in "transparent" mode: reset everything to a sensible * level. Levels as suggested by GUS SDK code. |