Re: [PATCH] From 2.6.39-rc1 onward, the Logitech Quickcam Fusion webcam (046d:08c1) stops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 8 Jul 2012, Laurent Pinchart wrote:

> > this quirks also affect snd_usb_audio module. If for some reasons
> > uvcvideo is not loaded, snd_usb_audio will fail - i mean haw mysterious
> > sound problems.
> 
> Good point. If we load the uvcvideo driver while the audio function is in use, 
> I doubt resetting the device will lead to a good user experience. One could 
> argue whether this should happen in the first place though, as modules should 
> be auto-loaded. Could there be a race between audio and video probe, leading 
> to audio probe failure because we reset the device in the middle of the probe 
> sequence ?

Even if there's no race and uvcvideo never gets loaded, there still
could be a problem.  The device could get suspended while waiting for
the snd-usb-audio module to load.  Then when the audio driver is
probed, it could be looking at a webcam that has already crashed
because the RESET_RESUME quirk was never set.

An alternative would be to modify the usb_detect_quirks() routine 
directly -- have it set RESET_RESUME whenever it sees a Logitech 
webcam.  The difficulty there is how to recognize which devices are 
webcams.  Look for a video interface?

Any suggestions?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux