[imx219] Fix: set exposure and gain before start#32
Conversation
|
Dear, Cristiklein |
|
Hi @jamess-huang , Thank you for looking into my commit. I am not sure to fully understand your concern. The default value for analog gain, digital gain and exposure are already set to 512, 256 and 1575, respectively, from here: https://github.com/TinkerBoard/debian_kernel/blob/develop/drivers/media/i2c/imx219.c#L956. I double-checked on a freshly booted Tinker Board with the present commit, and here is the relevant output: The commit simply ensures that, if the user did set exposure and gain manually, those values are preserved when the camera starts streaming. Also note that, due to the way V4L2 subsystem works, the current experience for users who want manual exposure is really bad. They have to do something like: With this commit, they only have to do: Hence, the experience should be the same for users that do not set exposure manually (or that set exposure using Could you clarify what are your concerns with respect to this commit? |
|
understood and thanks. |
This patch makes the IMX219 sensor more usable with manual gain and exposure time. It ensures that both parameters are set according to the user's last selection before starting the video stream. Previously, the exposure time was reset to a default value before starting the video stream and the user had to set exposure after the first frame arrived.