summaryrefslogtreecommitdiff
path: root/sound/usb/mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/mixer.c')
-rw-r--r--sound/usb/mixer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index 9ba072aeb76b..281a748d4200 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1049,7 +1049,14 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval,
cval->res = 384;
}
break;
-
+ case USB_ID(0x0495, 0x3042): /* ESS Technology Asus USB DAC */
+ if ((strstr(kctl->id.name, "Playback Volume") != NULL) ||
+ strstr(kctl->id.name, "Capture Volume") != NULL) {
+ cval->min >>= 8;
+ cval->max = 0;
+ cval->res = 1;
+ }
+ break;
case USB_ID(0x1130, 0x1620): /* Logitech Speakers S150 */
/* This audio device has 2 channels and it explicitly requires the
* host to send SET_CUR command on the volume control of both the
@@ -1059,7 +1066,6 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval,
snd_usb_mixer_set_ctl_value(cval, UAC_SET_CUR,
(cval->control << 8) | 2, 7936);
break;
-
}
}