media: ar0521: Setup controls at s_stream time

Setup all the registered controls at s_stream(1) time instead of
manually configure gains.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Jacopo Mondi 2022-11-04 14:24:51 +00:00 committed by Mauro Carvalho Chehab
parent 64114626f1
commit c79f0f15db

View File

@ -399,7 +399,7 @@ static int ar0521_set_stream(struct ar0521_dev *sensor, bool on)
if (ret) if (ret)
goto err; goto err;
ret = ar0521_set_gains(sensor); ret = __v4l2_ctrl_handler_setup(&sensor->ctrls.handler);
if (ret) if (ret)
goto err; goto err;