summaryrefslogtreecommitdiff
path: root/sys/dev/audio.c
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-10-28 15:14:00 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-10-28 15:14:00 +0000
commitf139e80aaa659ed1d34b708d4706ce9168ab53f1 (patch)
tree02d66947aee231a7b715befea7fa00caac4bbd38 /sys/dev/audio.c
parent7748f5584bd34aad23da0c47e9b9c9222f757220 (diff)
Remove unused audio(9) get_props()/AUDIO_PROP_FULLDUPLEX
All audio drivers have been cleaned up and, if needed, now check for duplex mode in their open() handler. OK ratchov miod
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r--sys/dev/audio.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index 700a148c042..d57a743460a 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.202 2022/10/26 20:19:07 kn Exp $ */
+/* $OpenBSD: audio.c,v 1.203 2022/10/28 15:13:59 kn Exp $ */
/*
* Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org>
*
@@ -1491,15 +1491,6 @@ audio_open(struct audio_softc *sc, int flags)
sc->mode |= AUMODE_PLAY;
if (flags & FREAD)
sc->mode |= AUMODE_RECORD;
- if (sc->ops->get_props) {
- int props = sc->ops->get_props(sc->arg);
- if (sc->mode == (AUMODE_PLAY | AUMODE_RECORD)) {
- if (!(props & AUDIO_PROP_FULLDUPLEX)) {
- error = ENOTTY;
- goto bad;
- }
- }
- }
if (sc->ops->speaker_ctl) {
/*