From f139e80aaa659ed1d34b708d4706ce9168ab53f1 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Fri, 28 Oct 2022 15:14:00 +0000 Subject: 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 --- sys/dev/audio.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sys/dev/audio.c') 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 * @@ -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) { /* -- cgit v1.2.3