diff mbox series

[0/0] media: uvcdriver: add support for Chicony HP Full-HD Camera (04f2:b62f)

Message ID CAD4B5T8kxWOcEVZVop=u2k1G0wHFv0LSLwbe+MDQ3q-Be5hcOQ@mail.gmail.com (mailing list archive)
State New, archived
Headers show
Series [0/0] media: uvcdriver: add support for Chicony HP Full-HD Camera (04f2:b62f) | expand

Commit Message

Salvador Fernández April 1, 2019, 3:47 p.m. UTC
Hi developers,

A very simple patch to add support for newer HP Full-HD Camera.
Pgp key for signature is
http://keys.gnupg.net/pks/lookup?op=get&search=0x93360317E5CECDDA

Thanks a lot for your work,

Comments

Laurent Pinchart April 2, 2019, 11:41 a.m. UTC | #1
Hi Salvador,

Thank you for the patch.

On Mon, Apr 01, 2019 at 05:47:26PM +0200, Salvador Fernández wrote:
> Hi developers,
> 
> A very simple patch to add support for newer HP Full-HD Camera.
> Pgp key for signature is
> http://keys.gnupg.net/pks/lookup?op=get&search=0x93360317E5CECDDA

Please see Documentation/process/submitting-patches.rst in the kernel
sources for an explanation on how to submit patches. Your patch needs to
include a Signed-off-by line. I advice using git-send-email to send it
out if you can, as that solves lots of issues with e-mail clients.

Please see below for a few comments.

> Thanks a lot for your work,

You're welcome.

> diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
> index 10cfe8e51626..ee9c72543c11 100644
> --- a/drivers/media/usb/uvc/uvc_driver.c
> +++ b/drivers/media/usb/uvc/uvc_driver.c
> @@ -2510,6 +2510,15 @@ static const struct usb_device_id uvc_ids[] = {
>  	  .bInterfaceSubClass	= 1,
>  	  .bInterfaceProtocol	= 0,
>  	  .driver_info		= UVC_INFO_QUIRK(UVC_QUIRK_RESTRICT_FRAME_RATE) },
> +        /* Chicony HP Full-HD Camera (04f2:b62f) */
> +        { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
> +                                | USB_DEVICE_ID_MATCH_INT_INFO,
> +          .idVendor             = 0x04f2,
> +          .idProduct            = 0xb62f,
> +          .bInterfaceClass      = USB_CLASS_VIDEO,
> +          .bInterfaceSubClass   = 1,
> +          .bInterfaceProtocol   = 0,
> +          .driver_info          = UVC_INFO_QUIRK(UVC_QUIRK_RESTRICT_FRAME_RATE) },

Is this quirk needed ? What happens if you don't specify it ? What
happens if the whole device entry isn't added, does the uvcvideo driver
print error messages to the kernel log ?

>  	/* Alcor Micro AU3820 (Future Boy PC USB Webcam) */
>  	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
>  				| USB_DEVICE_ID_MATCH_INT_INFO,
Salvador Fernández April 3, 2019, 1:40 p.m. UTC | #2
Hi Laurent,

Sorry for the delay.

El mar., 2 abr. 2019 a las 13:41, Laurent Pinchart
(<laurent.pinchart@ideasonboard.com>) escribió:
>
> Hi Salvador,
>
> Thank you for the patch.
>
> On Mon, Apr 01, 2019 at 05:47:26PM +0200, Salvador Fernández wrote:
> > Hi developers,
> >
> > A very simple patch to add support for newer HP Full-HD Camera.
> > Pgp key for signature is
> > http://keys.gnupg.net/pks/lookup?op=get&search=0x93360317E5CECDDA
>
> Please see Documentation/process/submitting-patches.rst in the kernel
> sources for an explanation on how to submit patches. Your patch needs to
> include a Signed-off-by line. I advice using git-send-email to send it
> out if you can, as that solves lots of issues with e-mail clients.

Next patch will follow your instructions.

Regarding your requests, I will recompile the kernel three times. One
without the patch, another with it and the last one with the options
that you indicate to me. I will send you the results / logs in each
case.
The only problem I see is that the kernel is 4.9.0-3, the debian stable one.

Time to recompile!

>
> Please see below for a few comments.
>
> > Thanks a lot for your work,
>
> You're welcome.
>
> > diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
> > index 10cfe8e51626..ee9c72543c11 100644
> > --- a/drivers/media/usb/uvc/uvc_driver.c
> > +++ b/drivers/media/usb/uvc/uvc_driver.c
> > @@ -2510,6 +2510,15 @@ static const struct usb_device_id uvc_ids[] = {
> >         .bInterfaceSubClass   = 1,
> >         .bInterfaceProtocol   = 0,
> >         .driver_info          = UVC_INFO_QUIRK(UVC_QUIRK_RESTRICT_FRAME_RATE) },
> > +        /* Chicony HP Full-HD Camera (04f2:b62f) */
> > +        { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
> > +                                | USB_DEVICE_ID_MATCH_INT_INFO,
> > +          .idVendor             = 0x04f2,
> > +          .idProduct            = 0xb62f,
> > +          .bInterfaceClass      = USB_CLASS_VIDEO,
> > +          .bInterfaceSubClass   = 1,
> > +          .bInterfaceProtocol   = 0,
> > +          .driver_info          = UVC_INFO_QUIRK(UVC_QUIRK_RESTRICT_FRAME_RATE) },
>
> Is this quirk needed ? What happens if you don't specify it ? What
> happens if the whole device entry isn't added, does the uvcvideo driver
> print error messages to the kernel log ?
>
> >       /* Alcor Micro AU3820 (Future Boy PC USB Webcam) */
> >       { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
> >                               | USB_DEVICE_ID_MATCH_INT_INFO,
>
>
> --
> Regards,
>
> Laurent Pinchart
diff mbox series

Patch

diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index 10cfe8e51626..ee9c72543c11 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2510,6 +2510,15 @@  static const struct usb_device_id uvc_ids[] = {
 	  .bInterfaceSubClass	= 1,
 	  .bInterfaceProtocol	= 0,
 	  .driver_info		= UVC_INFO_QUIRK(UVC_QUIRK_RESTRICT_FRAME_RATE) },
+        /* Chicony HP Full-HD Camera (04f2:b62f) */
+        { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
+                                | USB_DEVICE_ID_MATCH_INT_INFO,
+          .idVendor             = 0x04f2,
+          .idProduct            = 0xb62f,
+          .bInterfaceClass      = USB_CLASS_VIDEO,
+          .bInterfaceSubClass   = 1,
+          .bInterfaceProtocol   = 0,
+          .driver_info          = UVC_INFO_QUIRK(UVC_QUIRK_RESTRICT_FRAME_RATE) },
 	/* Alcor Micro AU3820 (Future Boy PC USB Webcam) */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
 				| USB_DEVICE_ID_MATCH_INT_INFO,