: gspca: use usb interface as parent
PATCH 1/1 : gspca: use usb interface as parent
Hi all,
As discussed in the:
"v4l parent for usb device interface or device?" thread, here is a patch for gspca to make it use the usb interface as its parent device, instead of the usb device.
Regards,
Hans
p.s.
I'll also push a patch to my libv4l repo, with matching libv4l changes so that libv4l's upside down cam detections stays working with this change.
Note: this libv4l patch also fixes libv4l upside down detection for the new device numbering style.
linux/drivers/media/video/gspca/gspca.c +1 -1
@@ -1958,7 +1958,7 @@/* init video stuff */ memcpy (&gspca_dev->vdev, &gspca_template,sizeof gspca_template); - gspca_dev->vdev.parent = &dev->dev; + gspca_dev->vdev.parent = &intf->dev; gspca_dev->module = module; gspca_dev->present =1 ; ret = video_register_device(&gspca_dev->vdev,
Jean-Francois Moine
AppliedQuoted 1 line · On Fri, 27 Mar 2009 10:35:43 +0100 Hans de Goede <[email protected]> wrote:
Hi all,
Hi Hans,
Quoted 5 lines
As discussed in the:
"v4l parent for usb device interface or device?" thread, here is a patch for gspca to make it use the usb interface as its parent device, instead of the usb device.
[snip]
Applied, thanks.
This patch may solve the microphone problem that some people have...
Cheers.
Signature · 2 lines
Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/