On Sun, Aug 23, 2020 at 09:17:57AM +0200, Marcus Glocker wrote:
Hello Marcus,
> Sorry for the delay - I'm back to business mode and need to take care
> about naive project managers with crazy requirements the most of the day
Rather you than me :)
> See inline some (nitpicking) feedback and adapted diff. Ok for you?
This is fine except:
> @@ -1684,7 +1705,7 @@ setup(struct video *vid)
> * after the video stream has been started since some cams only
> * process this control while the video stream is on.
> */
> - dev_set_ctrl_auto_white_balance(vid, 0, 1);
> + dev_set_ctrl_auto(vid, V4L2_CID_AUTO_WHITE_BALANCE, 0, 1);
>
> if (vid->mode & M_OUT_XV)
> net_wm_supported(vid);
This segfaults because we're passing the wrong constant in. This chunk
should be:
@@ -1684,7 +1707,7 @@ setup(struct video *vid)
* after the video stream has been started since some cams only
* process this control while the video stream is on.
*/
- dev_set_ctrl_auto_white_balance(vid, 0, 1);
+ dev_set_ctrl_auto(vid, CTRL_WHITE_BALANCE_TEMPERATURE, 0, 1);
if (vid->mode & M_OUT_XV)
net_wm_supported(vid);
Laurie