]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r358629:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Mar 2020 08:26:11 +0000 (08:26 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Mar 2020 08:26:11 +0000 (08:26 +0000)
commite84b3f4ba881e204ce25b687e584b269965de054
tree578198c07e4364f09dc8fd83844f3ef6271c6eba
parent32f11a7fc68f754089edf1b1874edce63b9ef323
MFC r358629:
Implement a detaching flag for the sound(4) subsystem to take
appropriate actions when we are trying to detach an audio device,
but cannot because someone is using it.

This avoids applications having to wait for the DSP read data
timeout before they receive any error indication.
Tested with virtual_oss(8).

Remove some unused definitions while at it.

PR: 194727
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@358879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sound/pcm/dsp.c
sys/dev/sound/pcm/mixer.c
sys/dev/sound/pcm/sound.c
sys/dev/sound/pcm/sound.h