On Tue, Oct 18, 2022 at 09:32:27AM +0200, Alexandre Ratchov wrote: > On Mon, Oct 17, 2022 at 07:45:33PM +0000, Klemens Nanni wrote: > > I was looking at one particular driver and needed to know what those > > flags are, turns out AUDIO_PROP_FULLDUPLEX is the only audio(9) property > > that is in use. > > Even AUDIO_PROP_FULLDUPLEX (and the associated get_props() and setfd() > routines) should go. FWIW, an audio device has only these modes:
I was wondering about the usefulness of AUDIO_PROP_FULLDUPLEX... > > AUDIO_MODE_PLAY -> play only > AUDIO_MODE_RECORD -> record only > AUDIO_MODE_PLAY | AUDIO_MODE_RECORD -> play and record (in sync) > > But this requires touching the isa(4) drivers, bba(4/alpha), arcofi(4) > and alike. > > > > > Feedback? Objection? OK? > > > > ok ratchov, thanks! > > As we,re at it, last point: audio_if.h and audioio.h are private > interfaces and the risk of breaking a port close to zero. > > distfiles contain the "sys/audioio.h" string because it's still used > on SunOS and NetBSD but these are #ifdef'd out on OpenBSD. Thanks for clarifying that.