On Sun, Oct 30, 2022 at 11:02:39AM +0000, Klemens Nanni wrote:
> Only five legacy half-duplex hardware drivers require this function to
> change between playing and recording:
>       i386: ess(4), gus(4), pas(4), sb(4)
>       luna88k: nec86(4)
> 
> If defined, it is always called early in audio_open(), so just move the
> call from audio(4) to each hardware driver's open() handler.
> 
> SPKR_ON/OFF remain defined to leave driver-specific code unchanged.
> 
> Further cleanup (unchecked speaker_ctl() return values,
> FWRITE -> AUMODE_PLAY -> SPKR_ON dances, etc.) can happen later.
> 
> i386/GENERIC.MP builds fine.
> Feedback? Objection? OK?

ok ratchov

Reply via email to