[alsa-devel] Kernel: snd-usb-audio: probe of 2-2:1.0 failed with error -5

Clemens Ladisch clemens at ladisch.de
Tue Nov 29 20:23:18 CET 2011


Linus Torvalds wrote:
> On Tue, Nov 29, 2011 at 11:09 AM, Clemens Ladisch <clemens at ladisch.de> wrote:
>> N.A., please try the patch below.
>
> I don't think that will compile. At a minimum, there's a missing comma
> there, afaik.

Oops, indeed.  Now compile-tested:

--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -157,7 +157,13 @@
 	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
 },
 {
-	USB_DEVICE(0x046d, 0x0990),
+	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
+		       USB_DEVICE_ID_MATCH_INT_CLASS |
+		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
+	.idVendor = 0x046d,
+	.idProduct = 0x0990,
+	.bInterfaceClass = USB_CLASS_AUDIO,
+	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
 	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
 		.vendor_name = "Logitech, Inc.",
 		.product_name = "QuickCam Pro 9000",


More information about the Alsa-devel mailing list