diff options
author | 2017-01-04 07:33:14 +0000 | |
---|---|---|
committer | 2017-01-04 07:33:14 +0000 | |
commit | 494794ccf6536bcc7a87d0bbd78eb299262008e8 (patch) | |
tree | f29ef813d6ee7f74d692b542d4cc3a7021065a58 | |
parent | unbreak Unix domain socket forwarding for root; ok markus@ (diff) | |
download | wireguard-openbsd-494794ccf6536bcc7a87d0bbd78eb299262008e8.tar.xz wireguard-openbsd-494794ccf6536bcc7a87d0bbd78eb299262008e8.zip |
In the set_params() routine, remove the AUDIO_ENCODING_ULINEAR case
as upper layers calls it with AUDIO_ENCODING_ULINEAR_{LE,BE} only.
-rw-r--r-- | sys/dev/sbus/cs4231.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/sbus/cs4231.c b/sys/dev/sbus/cs4231.c index 62a4b435b34..959b9bee704 100644 --- a/sys/dev/sbus/cs4231.c +++ b/sys/dev/sbus/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.37 2016/09/19 06:46:44 ratchov Exp $ */ +/* $OpenBSD: cs4231.c,v 1.38 2017/01/04 07:33:14 ratchov Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -494,11 +494,6 @@ cs4231_set_params(void *vsc, int setmode, int usemode, else return (EINVAL); break; - case AUDIO_ENCODING_ULINEAR: - if (p->precision != 8) - return (EINVAL); - bits = FMT_PCM8 >> 5; - break; case AUDIO_ENCODING_SLINEAR_BE: if (p->precision == 16) bits = FMT_TWOS_COMP_BE >> 5; @@ -506,11 +501,6 @@ cs4231_set_params(void *vsc, int setmode, int usemode, return (EINVAL); break; case AUDIO_ENCODING_ULINEAR_LE: - if (p->precision == 8) - bits = FMT_PCM8 >> 5; - else - return (EINVAL); - break; case AUDIO_ENCODING_ULINEAR_BE: if (p->precision == 8) bits = FMT_PCM8 >> 5; |