Logitech C300 webcam on Linux

The Logitech C300 webcam worked fine with Fedora 15 as it shipped but a kernel update caused the audio to come out really squeaky/high-pitched/”chipmunk”ed.

I’m not the only one having issues with similar webcams:

  • https://bugs.launchpad.net/ubuntu/+source/linux/+bug/858412
  • https://bugzilla.redhat.com/show_bug.cgi?id=729269
  • https://bbs.archlinux.org/viewtopic.php?id=121607&p=3

Based on the patch in the third link in that list (for a few different webcams), I’ve found that the following trivial patch fixed the problem:

diff -uNrp kernel-2.6.40.fc15.orig/drivers/usb/core/quirks.c kernel-2.6.40.fc15.new/drivers/usb/core/quirks.c
--- kernel-2.6.40.fc15.orig/drivers/usb/core/quirks.c 2011-09-27 21:23:58.801051233 +0100
+++ kernel-2.6.40.fc15.new/drivers/usb/core/quirks.c 2011-09-27 21:30:35.184686232 +0100
@@ -44,6 +44,9 @@ static const struct usb_device_id usb_qu
/* Logitech Webcam C250 */
{ USB_DEVICE(0x046d, 0x0804), .driver_info = USB_QUIRK_RESET_RESUME },

+ /* Logitech Webcam C300 */
+ { USB_DEVICE(0x046d, 0x0805), .driver_info = USB_QUIRK_RESET_RESUME },
+
/* Logitech Webcam C310 */
{ USB_DEVICE(0x046d, 0x081b), .driver_info = USB_QUIRK_RESET_RESUME },

If you want to try that before Fedora make a fix available, it’s easy enough to build your own kernel