Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/audio



On Wed, May 27, 2020 at 09:46:04PM +0900, Tetsuya Isaki wrote:
> Why are playback and recording asymmetric?
> 
> Thanks,

I think this is because audio_rmixer_start is used unguarded
in audio_open (it doesn't check for the sc_rbusy flag).
This isn't the case for pmixer. 

So, if the audio device is opened for recording for the 
first time after system resumption, a panic will occur
due to an assertion failure (the recording mixer would
already be busy).

If there's an advantage to not starting the playback
mixer on resume if no devices were previously opened we
can do that too?


Home | Main Index | Thread Index | Old Index