ALSA: usb-audio: fix Yamaha KX quirk
authorClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jul 2008 09:01:06 +0000 (11:01 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jul 2008 09:01:06 +0000 (11:01 +0200)
We have to restrict the quirk to interface 0 because the second
interface is not MIDI but HID. Additionally, this product ID is used
by all four KX models, so it is better to read the product name from
the device.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbquirks.h

index d675050210dce70f1de3a692068d20caf528641e..3eb12feeae5c18a6468382bb77ef7b86a44cb19c 100644 (file)
@@ -210,7 +210,7 @@ YAMAHA_DEVICE(0x1042, NULL),
 YAMAHA_DEVICE(0x1043, NULL),
 YAMAHA_DEVICE(0x1044, NULL),
 YAMAHA_DEVICE(0x1045, NULL),
-YAMAHA_DEVICE(0x104e, "KX49"),
+YAMAHA_INTERFACE(0x104e, 0, NULL),
 YAMAHA_DEVICE(0x2000, "DGP-7"),
 YAMAHA_DEVICE(0x2001, "DGP-5"),
 YAMAHA_DEVICE(0x2002, NULL),