ALSA: usb - Quirk to disable master volume control in PCM2702

Disable the master volume control in the PCM2702 chipset.

The datasheet documents two independent channel volume controls, one
master mute control and one master volume control. All controls are
fully functional except for the master volume control, which returns
USB stalls on all GET requests.

Signed-off-by: Javier Kohen <jkohen@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Javier Kohen and committed by
Takashi Iwai
0c3cee57 828d4453

+9
+9
sound/usb/usbmixer.c
··· 1071 1071 channels = (ftr[0] - 7) / csize - 1; 1072 1072 1073 1073 master_bits = snd_usb_combine_bytes(ftr + 6, csize); 1074 + /* master configuration quirks */ 1075 + switch (state->chip->usb_id) { 1076 + case USB_ID(0x08bb, 0x2702): 1077 + snd_printk(KERN_INFO 1078 + "usbmixer: master volume quirk for PCM2702 chip\n"); 1079 + /* disable non-functional volume control */ 1080 + master_bits &= ~(1 << (USB_FEATURE_VOLUME - 1)); 1081 + break; 1082 + } 1074 1083 if (channels > 0) 1075 1084 first_ch_bits = snd_usb_combine_bytes(ftr + 6 + csize, csize); 1076 1085 else