summaryrefslogtreecommitdiff
path: root/sys/dev/pci/eap.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/eap.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/eap.c')
-rw-r--r--sys/dev/pci/eap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/eap.c b/sys/dev/pci/eap.c
index 53c8acfae5f..7d3df1ccee4 100644
--- a/sys/dev/pci/eap.c
+++ b/sys/dev/pci/eap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eap.c,v 1.61 2022/03/21 19:22:41 miod Exp $ */
+/* $OpenBSD: eap.c,v 1.62 2022/10/18 08:22:19 kn Exp $ */
/* $NetBSD: eap.c,v 1.46 2001/09/03 15:07:37 reinoud Exp $ */
/*
@@ -1498,8 +1498,7 @@ eap_free(void *addr, void *ptr, int pool)
int
eap_get_props(void *addr)
{
- return (AUDIO_PROP_MMAP | AUDIO_PROP_INDEPENDENT |
- AUDIO_PROP_FULLDUPLEX);
+ return (AUDIO_PROP_FULLDUPLEX);
}
enum ac97_host_flags