summaryrefslogtreecommitdiff
path: root/sys/dev/sbus/cs4231.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-01-04 07:33:15 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-01-04 07:33:15 +0000
commit197972aac25019d12b8f491c0dec397c4cb7bcc1 (patch)
tree342fa7b2d1b677119a35c9348bbc4313be168ff3 /sys/dev/sbus/cs4231.c
parentac1f25ffef1e2e29a69a62a241f0f0ba5cf81191 (diff)
In the set_params() routine, remove the AUDIO_ENCODING_ULINEAR case
as upper layers calls it with AUDIO_ENCODING_ULINEAR_{LE,BE} only.
Diffstat (limited to 'sys/dev/sbus/cs4231.c')
-rw-r--r--sys/dev/sbus/cs4231.c12
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;