svn commit: r359874 - stable/11/sys/dev/sound/usb
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Apr 13 16:23:46 UTC 2020
Author: hselasky
Date: Mon Apr 13 16:23:46 2020
New Revision: 359874
URL: https://svnweb.freebsd.org/changeset/base/359874
Log:
MFC r359322:
Make mute controls available for USB audio mixers.
Submitted by: Horse Ma <Shichun.Ma at dell.com>
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/sound/usb/uaudio.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/sound/usb/uaudio.c
==============================================================================
--- stable/11/sys/dev/sound/usb/uaudio.c Mon Apr 13 16:23:10 2020 (r359873)
+++ stable/11/sys/dev/sound/usb/uaudio.c Mon Apr 13 16:23:46 2020 (r359874)
@@ -3573,7 +3573,7 @@ uaudio_mixer_add_feature(struct uaudio_softc *sc,
switch (ctl) {
case MUTE_CONTROL:
MIX(sc).type = MIX_ON_OFF;
- MIX(sc).ctl = SOUND_MIXER_NRDEVICES;
+ MIX(sc).ctl = SOUND_MIXER_MUTE;
MIX(sc).name = "mute";
break;
@@ -3688,7 +3688,7 @@ uaudio20_mixer_add_feature(struct uaudio_softc *sc,
switch (ctl) {
case (3 << 0):
MIX(sc).type = MIX_ON_OFF;
- MIX(sc).ctl = SOUND_MIXER_NRDEVICES;
+ MIX(sc).ctl = SOUND_MIXER_MUTE;
MIX(sc).name = "mute";
what = MUTE_CONTROL;
break;
More information about the svn-src-stable-11
mailing list