Message ID | 49CC9DEF.8020009@redhat.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
On Fri, 27 Mar 2009 10:35:43 +0100 Hans de Goede <hdegoede@redhat.com> wrote: > Hi all, Hi Hans, > 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.
diff -r c28651a2c2c3 linux/drivers/media/video/gspca/gspca.c --- a/linux/drivers/media/video/gspca/gspca.c Thu Mar 26 09:44:15 2009 +0100 +++ b/linux/drivers/media/video/gspca/gspca.c Fri Mar 27 10:32:24 2009 +0100 @@ -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,