Re: [PATCH] media: usb: s2255: add serial number V4L2_CID

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

 



On 2023-12-13 04:03, Hans Verkuil wrote:
Hi Dean,

A few more comments below.

...
I never noticed this before, but there is a call to
v4l2_ctrl_handler_setup() missing
in this driver! That call ensures that s2255_s_ctrl() is called with
the initial control
values.

It's probably something that should be added.

If this is added, it needs done very carefully. Adding it to probe will 100% break the firmware load. s2255_s_ctrl sends a USB command to the board and the asynchronous firmware load shares the endpoint for commands.

The initial brightness, contrast, hue, and saturation default values match what the firmware sets when first loaded. It's redundant to set them again immediately after the firmware load succeeds. I think at a minimum this belongs in a separate patch.

Regards,

Dean


Regards,

	Hans




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux