mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
sound: Do not set a recording source in mixer_uninit()
We currently set the recording source to SOUND_MIXER_MIC during mixer deletion. Apart from the fact that this control might not be present on all devices, it is unnecessary to do that, plus we already set all the volumes to 0 in the mixer_set() call above. Sponsored by: The FreeBSD Foundation MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D59076
This commit is contained in:
1 parent
9548bfa342
commit
03b59d2e7d
1 file changed
-2
@@ -629,8 +629,6 @@ mixer_uninit(device_t dev)
|
||||
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
|
||||
mixer_set(m, i, 0, 0);
|
||||
|
||||
mixer_setrecsrc(m, SOUND_MASK_MIC);
|
||||
|
||||
mtx_unlock(m->lock);
|
||||
|
||||
/* mixer uninit can sleep --hps */
|
||||
|
||||
Reference in new issue
Block a user