/[linux-patches]/genpatches-2.6/tags/2.6.21-4/2705_usb-audio-quickcam.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.21-4/2705_usb-audio-quickcam.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 974 - (show annotations) (download)
Thu May 24 23:17:59 2007 UTC (10 years, 7 months ago) by dsd
File size: 2058 byte(s)
2.6.21-4 release
1
2 From: Daniel Drake <dsd@gentoo.org>
3 Date: Mon, 7 May 2007 07:27:05 +0000 (+0200)
4 Subject: [ALSA] usb-audio: explicitly match Logitech QuickCam
5 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=a91214589e6527b18f52bc0b31253f9dfb4665e6
6
7 [ALSA] usb-audio: explicitly match Logitech QuickCam
8
9 Commit 93c8bf45e083b89dffe3a708363c15c1b220c723 modified the USB device
10 matching behaviour to ignore interface class matches if the device class
11 is vendor-specific.
12 This patch adds explicit ID matches for Logitech QuickCam devices, which
13 have a vendor specific device class (but standards-compliant audio
14 interfaces).
15 This fixes a 2.6.20 regression where the audio component of these
16 devices was no longer usable.
17 http://bugs.gentoo.org/show_bug.cgi?id=175715
18 https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/93822
19 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3040
20 Based on a patch from sergiom
21
22 Signed-off-by: Daniel Drake <dsd@gentoo.org>
23 Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
24 Signed-off-by: Jaroslav Kysela <perex@suse.cz>
25 ---
26
27 diff --git a/sound/usb/usbquirks.h b/sound/usb/usbquirks.h
28 index 8582620..8fcbe93 100644
29 --- a/sound/usb/usbquirks.h
30 +++ b/sound/usb/usbquirks.h
31 @@ -40,6 +40,29 @@
32 .bInterfaceClass = USB_CLASS_VENDOR_SPEC
33
34 /*
35 + * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
36 + * class matches do not take effect without an explicit ID match.
37 + */
38 +{
39 + .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
40 + USB_DEVICE_ID_MATCH_INT_CLASS |
41 + USB_DEVICE_ID_MATCH_INT_SUBCLASS,
42 + .idVendor = 0x046d,
43 + .idProduct = 0x08f0,
44 + .bInterfaceClass = USB_CLASS_AUDIO,
45 + .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
46 +},
47 +{
48 + .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
49 + USB_DEVICE_ID_MATCH_INT_CLASS |
50 + USB_DEVICE_ID_MATCH_INT_SUBCLASS,
51 + .idVendor = 0x046d,
52 + .idProduct = 0x08f6,
53 + .bInterfaceClass = USB_CLASS_AUDIO,
54 + .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
55 +},
56 +
57 +/*
58 * Yamaha devices
59 */
60

  ViewVC Help
Powered by ViewVC 1.1.20