Re: [PATCH][RESEND] Add a USB audio quirk for the NuForce UDH-100 device.

From: Dave Helstroom
Date: Mon Mar 11 2013 - 14:03:46 EST


On 11 March 2013 01:32, Clemens Ladisch <clemens@xxxxxxxxxx> wrote:
> David Helstroom wrote:
>> Interface 1 does not exist
>
> Then it doesn't need a quirk, does it?

Perhaps that's the case. I just know that without
QUIRK_IGNORE_INTERFACE for ifnum 1, the kernel refuses to properly
configure the output device. From dmesg without this patch:
[ 3254.192225] usb 1-1: new high-speed USB device number 6 using ehci_hcd
[ 3254.343554] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 3254.343558] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 3254.343562] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 3254.343565] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 3254.343568] usb 1-1: config 1 has no interface number 1
[ 3254.345988] input: Nuforce Inc., Nuforce 192k USB DAC as
/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/input/input10
[ 3254.346202] generic-usb 0003:16D0:0631.0007: input,hidraw0: USB HID
v1.00 Device [Nuforce Inc., Nuforce 192k USB DAC] on
usb-0000:00:1a.7-1/input0
[ 3254.355970] Audio class v2 interfaces need an interface association
[ 3254.355988] snd-usb-audio: probe of 1-1:1.2 failed with error -5
[ 3254.356045] usbcore: registered new interface driver snd-usb-audio

>> and Interface 0 should be ignored.
>
> Why?
>
> If the driver doesn't like something in interface 0, that bug should be
> fixed.
>
> What is the output of "lsusb -v" for this device?

I've put up the relevant output on: http://pastebin.com/i4wpQ35B
Note that I'm testing on an older kernel here (3.2.5), so perhaps a
more fundamental fix has already made its way into the USB audio
stack. I'll arrange to test on a more recent kernel too.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/