diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-14 06:12:21 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-14 06:12:21 +0000 |
commit | ceb848007a2348912df73aefb9f2bb85a7c83592 (patch) | |
tree | 8e3da40be14132539aae22c08d6c2771c529d791 /sys/arch/sparc64/dev/ce4231.c | |
parent | 737c80c27fcb5e71a7de603a7a7dfd6329683161 (diff) |
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/arch/sparc64/dev/ce4231.c')
-rw-r--r-- | sys/arch/sparc64/dev/ce4231.c | 55 |
1 files changed, 2 insertions, 53 deletions
diff --git a/sys/arch/sparc64/dev/ce4231.c b/sys/arch/sparc64/dev/ce4231.c index 5ea32287c05..eeebcf06bb0 100644 --- a/sys/arch/sparc64/dev/ce4231.c +++ b/sys/arch/sparc64/dev/ce4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ce4231.c,v 1.33 2015/05/11 06:52:35 ratchov Exp $ */ +/* $OpenBSD: ce4231.c,v 1.34 2016/09/14 06:12:19 ratchov Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -133,7 +133,6 @@ u_int8_t ce4231_read(struct ce4231_softc *, u_int8_t); /* Audio interface */ int ce4231_open(void *, int); void ce4231_close(void *); -int ce4231_query_encoding(void *, struct audio_encoding *); int ce4231_set_params(void *, int, int, struct audio_params *, struct audio_params *); int ce4231_round_blocksize(void *, int); @@ -155,8 +154,6 @@ int ce4231_trigger_input(void *, void *, void *, int, struct audio_hw_if ce4231_sa_hw_if = { ce4231_open, ce4231_close, - 0, - ce4231_query_encoding, ce4231_set_params, ce4231_round_blocksize, ce4231_commit_settings, @@ -175,11 +172,9 @@ struct audio_hw_if ce4231_sa_hw_if = { ce4231_alloc, ce4231_free, 0, - 0, ce4231_get_props, ce4231_trigger_output, - ce4231_trigger_input, - 0 + ce4231_trigger_input }; struct cfattach audioce_ca = { @@ -469,52 +464,6 @@ ce4231_close(addr) } int -ce4231_query_encoding(addr, fp) - void *addr; - struct audio_encoding *fp; -{ - int err = 0; - - switch (fp->index) { - case 0: - strlcpy(fp->name, AudioEmulaw, sizeof(fp->name)); - fp->encoding = AUDIO_ENCODING_ULAW; - fp->precision = 8; - fp->flags = 0; - break; - case 1: - strlcpy(fp->name, AudioEalaw, sizeof(fp->name)); - fp->encoding = AUDIO_ENCODING_ALAW; - fp->precision = 8; - fp->flags = 0; - break; - case 2: - strlcpy(fp->name, AudioEslinear_le, sizeof(fp->name)); - fp->encoding = AUDIO_ENCODING_SLINEAR_LE; - fp->precision = 16; - fp->flags = 0; - break; - case 3: - strlcpy(fp->name, AudioEulinear, sizeof(fp->name)); - fp->encoding = AUDIO_ENCODING_ULINEAR; - fp->precision = 8; - fp->flags = 0; - break; - case 4: - strlcpy(fp->name, AudioEslinear_be, sizeof(fp->name)); - fp->encoding = AUDIO_ENCODING_SLINEAR_BE; - fp->precision = 16; - fp->flags = 0; - break; - default: - err = EINVAL; - } - fp->bps = AUDIO_BPS(fp->precision); - fp->msb = 1; - return (err); -} - -int ce4231_set_params(addr, setmode, usemode, p, r) void *addr; int setmode, usemode; |