summaryrefslogtreecommitdiff
path: root/sys/dev/pci/cs4281.c
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-10-18 08:22:20 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-10-18 08:22:20 +0000
commit66930f4d1adf5ea8af5d0d189d6a0f7fdfe49b38 (patch)
treeb457c10a038e868d1cc1f91029b4495b731d0d26 /sys/dev/pci/cs4281.c
parent60397c03b21b720ceb291de2d8f579531e0fc033 (diff)
Remove unused AUDIO_PROP_{MMAP,INDEPENDENT}
AUDIO_PROP_FULLDUPLEX is the only audio(9) in use, the other two died with commit 1cf2860827c8ca659d8097d8da94a5ae5b888c53 Author: ratchov <ratchov@openbsd.org> Date: Thu Jun 25 06:43:45 2015 +0000 Reimplement the audio driver in a simpler way, removing unused/unusable functionality. Same API and ABI except for the removed bits and no behaviour change for programs using libsndio. With help from armani@ and mpi@, thanks. but remained defined and set in drivers. and the following merely moved them when they were dead code already: commit 9215aa3dfad387bca877a805534df6dcfe8722eb Author: ratchov <ratchov@openbsd.org> Date: Wed Aug 31 07:22:43 2016 +0000 Delete unused ioctls and associated macros. Move macros that are still used internally by low-level drivers from sys/audioio.h to dev/audio_if.h instead of deleting them. None of this is used in base or ports; codesearch.debian.net only shows AUDIO_PROP_{CAPTURE,PLAYBACK} in firefox-esr, mozjs and cubeb. ratchov points out that audio_if.h and audioio.h are private interfaces and the codesearch shows SunOS and NetBSD bits (#ifdef'd out on OpenBSD). OK ratchov
Diffstat (limited to 'sys/dev/pci/cs4281.c')
-rw-r--r--sys/dev/pci/cs4281.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c
index f8bc2564982..9ab76cad5c3 100644
--- a/sys/dev/pci/cs4281.c
+++ b/sys/dev/pci/cs4281.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cs4281.c,v 1.42 2022/03/21 19:22:41 miod Exp $ */
+/* $OpenBSD: cs4281.c,v 1.43 2022/10/18 08:22:19 kn Exp $ */
/* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */
/*
@@ -1195,13 +1195,7 @@ cs4281_round_buffersize(void *addr, int direction, size_t size)
int
cs4281_get_props(void *addr)
{
- int retval;
-
- retval = AUDIO_PROP_INDEPENDENT | AUDIO_PROP_FULLDUPLEX;
-#ifdef MMAP_READY
- retval |= AUDIO_PROP_MMAP;
-#endif
- return (retval);
+ return (AUDIO_PROP_FULLDUPLEX);
}
/* AC97 */