]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r358629:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Mar 2020 08:26:52 +0000 (08:26 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Mar 2020 08:26:52 +0000 (08:26 +0000)
commit8fadef40328b9ee9dd54ae735ec57bd96f489c67
tree08e99621beb68e2c83fb50fff5edca0cb1e89681
parentf4cf8bc6aa337d4e2419d2ae5dfd6365ae9750ef
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/9@358880 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