diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2015-05-11 06:52:37 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2015-05-11 06:52:37 +0000 |
commit | dd89c635d9a50b7d33645609c7c98f4b2eda9e1c (patch) | |
tree | 6bebf17adabcdf1d3d8dc35b7d8f6e691ca15f32 /sys/dev/sbus | |
parent | cb499c42facd77434ebac9a75c6bd41df9f1ed9d (diff) |
Remove support for ADPCM encoding which isn't used nowadays and
not available to programs anyway.
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r-- | sys/dev/sbus/cs4231.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/sbus/cs4231.c b/sys/dev/sbus/cs4231.c index 5798650b135..a5697d497bc 100644 --- a/sys/dev/sbus/cs4231.c +++ b/sys/dev/sbus/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.34 2015/05/11 06:46:22 ratchov Exp $ */ +/* $OpenBSD: cs4231.c,v 1.35 2015/05/11 06:52:35 ratchov Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -537,12 +537,6 @@ cs4231_query_encoding(void *vsc, struct audio_encoding *fp) fp->precision = 16; fp->flags = AUDIO_ENCODINGFLAG_EMULATED; break; - case 8: - strlcpy(fp->name, AudioEadpcm, sizeof fp->name); - fp->encoding = AUDIO_ENCODING_ADPCM; - fp->precision = 8; - fp->flags = 0; - break; default: err = EINVAL; } @@ -599,11 +593,6 @@ cs4231_set_params(void *vsc, int setmode, int usemode, else return (EINVAL); break; - case AUDIO_ENCODING_ADPCM: - if (p->precision != 8) - return (EINVAL); - bits = FMT_ADPCM >> 5; - break; default: return (EINVAL); } |