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/hppa/gsc | |
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/hppa/gsc')
-rw-r--r-- | sys/arch/hppa/gsc/harmony.c | 51 |
1 files changed, 2 insertions, 49 deletions
diff --git a/sys/arch/hppa/gsc/harmony.c b/sys/arch/hppa/gsc/harmony.c index 853745aefb1..d71f20644da 100644 --- a/sys/arch/hppa/gsc/harmony.c +++ b/sys/arch/hppa/gsc/harmony.c @@ -1,4 +1,4 @@ -/* $OpenBSD: harmony.c,v 1.31 2015/09/08 07:14:04 deraadt Exp $ */ +/* $OpenBSD: harmony.c,v 1.32 2016/09/14 06:12:19 ratchov Exp $ */ /* * Copyright (c) 2003 Jason L. Wright (jason@thought.net) @@ -56,7 +56,6 @@ int harmony_open(void *, int); void harmony_close(void *); -int harmony_query_encoding(void *, struct audio_encoding *); int harmony_set_params(void *, int, int, struct audio_params *, struct audio_params *); int harmony_round_blocksize(void *, int); @@ -79,8 +78,6 @@ int harmony_trigger_input(void *, void *, void *, int, struct audio_hw_if harmony_sa_hw_if = { harmony_open, harmony_close, - NULL, - harmony_query_encoding, harmony_set_params, harmony_round_blocksize, harmony_commit_settings, @@ -99,11 +96,9 @@ struct audio_hw_if harmony_sa_hw_if = { harmony_allocm, harmony_freem, harmony_round_buffersize, - NULL, harmony_get_props, harmony_trigger_output, - harmony_trigger_input, - NULL + harmony_trigger_input }; int harmony_match(struct device *, void *, void *); @@ -402,48 +397,6 @@ harmony_close(void *vsc) } int -harmony_query_encoding(void *vsc, struct audio_encoding *fp) -{ - struct harmony_softc *sc = vsc; - 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_be, sizeof fp->name); - fp->encoding = AUDIO_ENCODING_SLINEAR_BE; - fp->precision = 16; - fp->flags = 0; - break; - case 3: - if (sc->sc_hasulinear8) { - strlcpy(fp->name, AudioEulinear, sizeof fp->name); - fp->encoding = AUDIO_ENCODING_ULINEAR; - fp->precision = 8; - fp->flags = 0; - break; - } - /*FALLTHROUGH*/ - default: - err = EINVAL; - } - fp->bps = AUDIO_BPS(fp->precision); - fp->msb = 1; - return (err); -} - -int harmony_set_params(void *vsc, int setmode, int usemode, struct audio_params *p, struct audio_params *r) { |