aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-04-13 16:24:21 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-04-13 16:24:21 +0000
commit0db97df7b8ecb0c243e34ead4b1f124bdc2b021b (patch)
tree76bffc02e07f390f15266127a0d7286eed71d626
parenta308210e1f9d32547d0321edcbad25837b172eca (diff)
downloadsrc-0db97df7b8ecb0c243e34ead4b1f124bdc2b021b.tar.gz
src-0db97df7b8ecb0c243e34ead4b1f124bdc2b021b.zip
MFC r359322:
Make mute controls available for USB audio mixers. Submitted by: Horse Ma <Shichun.Ma@dell.com> Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/stable/10/; revision=359875
-rw-r--r--sys/dev/sound/usb/uaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
index c81b18ce33cc..0657744218c2 100644
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -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;