Make mute controls available for USB audio mixers.

Submitted by:	Horse Ma <Shichun.Ma@dell.com>
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-03-26 07:46:16 +00:00
parent edabe1ee6d
commit 91feacd19e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359322

View File

@ -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;