Bug 742010

Summary: Logitech WebCam C300 microphone produces squeaky "chipmunk" audio
Product: [Fedora] Fedora Reporter: Jon Levell <fedora>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: gansalmon, hasuf, itamar, jonathan, kernel-maint, madhu.chinakonda, qcheng
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.41.1-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-05 23:58:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Trivial patch to fix sound from C300 webcam none

Description Jon Levell 2011-09-28 19:07:46 UTC
Created attachment 525387 [details]
Trivial patch to fix sound from C300 webcam

At F15 release the Logitech WebCam C300 webcam worked fine (audio & video), an updated kernel made the audio from the microphone sound incredibly fast/high-pitched/squeaky/"chipmunk"ed.

I found this other bug for closely related webcams:
https://bugzilla.redhat.com/show_bug.cgi?id=729269

From that page, I found:
https://bbs.archlinux.org/viewtopic.php?id=121607&p=3

I then modified the patch mentioned to fix the microphone.

Supplied (trivial) patch is against kernel 2.6.40.4-5.fc15

lsusb shows for my device:
Bus 001 Device 002: ID 046d:0805 Logitech, Inc. Webcam C300

(For people finding this page via Google before a fix is available, the patch is just a couple of lines and you can easily compile your own kernel based on the instructions:
http://fedoraproject.org/wiki/Building_a_custom_kernel  )

Comment 1 Josh Boyer 2011-09-28 19:28:18 UTC
Can you send this patch upstream?  We have a version of Oliver Neukum's patch that adds this quirk for a number of devices, but it isn't the latest version.  The latest seems to be:

http://article.gmane.org/gmane.linux.usb.general/52027

Which still isn't upstream afaik, and it also doesn't include the ID you have here.

Can you send your addition to Oliver with the linux-usb list on CC?

Comment 2 Jon Levell 2011-09-28 20:31:54 UTC
I've done as you suggest (though I can't seem to get vger to let me subscribe to the linux-usb list), could the fix be included in F15/F16 builds in the meantime?

Comment 3 Josh Boyer 2011-09-29 15:35:56 UTC
I've updated the quirk patch to the latest one I pointed to in comment #1, and included your addition.  It will be in the next f15-rawhide kernel builds.

Please continue working with upstream to get this added there.

Comment 4 Jon Levell 2011-09-29 22:21:45 UTC
Thanks Josh,

You're a scholar and a gentleman! (GregKH has now applied the patch to usb-next).
#fedora on BlueNet is worse for your absense.

Jon.

Comment 5 qi cheng 2011-10-01 01:39:54 UTC
Josh, 

Bus 001 Device 002: ID 046d:0808 Logitech, Inc. Webcam C600

has similar problem. Please add the device in your fix.

Thanks a lot,

Qi

Comment 6 Fedora Update System 2011-10-04 14:14:01 UTC
kernel-2.6.40.6-0.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.40.6-0.fc15

Comment 7 Fedora Update System 2011-10-05 03:58:38 UTC
Package kernel-2.6.40.6-0.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-2.6.40.6-0.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/kernel-2.6.40.6-0.fc15
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-10-05 23:58:22 UTC
kernel-2.6.40.6-0.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 qi cheng 2011-10-13 19:22:58 UTC
The problem for Logitech Webcam C600 remains after installing
the new kernel (2.6.40.6-0). 
It works fine upon a reboot. Then the microphone will be off
and on randomly, and when it is on, it produces chipmunk sound.

BTW, the microphone works fine when I had Fedora 13. 
Is there a way for me to get back to 13's kernel (2.6.33?)?

Thanks,

Qi

Comment 10 Josh Boyer 2011-10-13 19:39:40 UTC
(In reply to comment #9)
> The problem for Logitech Webcam C600 remains after installing
> the new kernel (2.6.40.6-0). 

I didn't get that ID included in the patch before the kernel was built.  I'll update the patch again to add it.

Comment 11 Josh Boyer 2011-10-14 15:54:02 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > The problem for Logitech Webcam C600 remains after installing
> > the new kernel (2.6.40.6-0). 
> 
> I didn't get that ID included in the patch before the kernel was built.  I'll
> update the patch again to add it.

This kernel contains the C600 ID:

http://koji.fedoraproject.org/koji/buildinfo?buildID=268541

Future F15-rawhide kernel updates will contain it as well.

Comment 12 qi cheng 2011-10-14 21:57:47 UTC
The new kernel 2.6.40.6-2 fixes the problem for C600. Thanks a lot, --Qi

Comment 13 Fedora Update System 2011-10-17 21:53:55 UTC
kernel-2.6.40.7-0.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.40.7-0.fc15

Comment 14 Fedora Update System 2011-10-24 15:12:59 UTC
kernel-2.6.40.7-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.40.7-3.fc15

Comment 15 Fedora Update System 2011-10-27 14:13:13 UTC
kernel-2.6.40.8-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.40.8-2.fc15

Comment 16 Fedora Update System 2011-11-01 19:59:17 UTC
kernel-2.6.40.8-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.40.8-4.fc15

Comment 17 hasuf 2011-11-06 19:29:29 UTC
Hi, are you able to add an entry for 

Bus 002 Device 006: ID 046d:080a Logitech, Inc. Portable Webcam C905?

Comment 18 hasuf 2011-11-06 21:08:50 UTC
btw, confirmed that this 

+       /* Logitech Webcam C905 */
+       { USB_DEVICE(0x046d, 0x080a), .driver_info = USB_QUIRK_RESET_RESUME },

did the trick for me.

Comment 19 Josh Boyer 2011-11-07 15:41:40 UTC
(In reply to comment #17)
> Hi, are you able to add an entry for 
> 
> Bus 002 Device 006: ID 046d:080a Logitech, Inc. Portable Webcam C905?

At this point it's better to send it directly to upstream.  Can you do that?

Comment 20 Fedora Update System 2011-11-12 00:08:21 UTC
kernel-2.6.41.1-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.41.1-1.fc15

Comment 21 Fedora Update System 2011-11-17 23:29:01 UTC
kernel-2.6.41.1-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.