svn commit: r359322 - head/sys/dev/sound/usb
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Mar 26 07:46:26 UTC 2020
Author: hselasky
Date: Thu Mar 26 07:46:16 2020
New Revision: 359322
URL: https://svnweb.freebsd.org/changeset/base/359322
Log:
Make mute controls available for USB audio mixers.
Submitted by: Horse Ma <Shichun.Ma at dell.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/dev/sound/usb/uaudio.c
Modified: head/sys/dev/sound/usb/uaudio.c
==============================================================================
--- head/sys/dev/sound/usb/uaudio.c Thu Mar 26 07:42:36 2020 (r359321)
+++ head/sys/dev/sound/usb/uaudio.c Thu Mar 26 07:46:16 2020 (r359322)
@@ -3579,7 +3579,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;
@@ -3694,7 +3694,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-head
mailing list