CVSROOT: /cvs Module name: src Changes by: jake...@cvs.openbsd.org 2010/09/11 20:01:17
Modified files: sys/dev : audio.c audiovar.h Log message: DVACT_{QUIESCE,RESUME} for audio(4) DVACT_QUIESCE: 1) waits until ringbuffer current position wraps back to the start of the buffer 2) stops playback and/or recording by way of the hardware drivers' "halt" audio_hw_if method 3) blocks userland access to audio device 4) saves the current state of the master mute, then mutes it DVACT_RESUME: 1) reprogram hardware stream parameters for playback or recording if they were active at DVACT_QUIESCE by way of hardware drivers' "set_params" audio_hw_if method 2) start playback or recording if they were active at DVACT_QUIESCE by way of hardware drivers' "trigger" or "start" audio_hw_if method 3) restores master mute state as it was at DVACT_QUIESCE 4) wakes up blocked userland processes accessing the hardware