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:
Christos Margiolis committed 2026-09-18 21:16:40 +03:00
1 parent 9548bfa342
commit 03b59d2e7d
1 file changed
-2
-2
View File
@@ -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 */