projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6411462
)
media: ar0521: Setup controls at s_stream time
author
Jacopo Mondi
<jacopo@jmondi.org>
Fri, 4 Nov 2022 14:24:51 +0000
(14:24 +0000)
committer
Mauro Carvalho Chehab
<mchehab@kernel.org>
Fri, 25 Nov 2022 08:45:37 +0000
(08:45 +0000)
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>
drivers/media/i2c/ar0521.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/ar0521.c
b/drivers/media/i2c/ar0521.c
index
0ef4aca
..
323f583
100644
(file)
--- a/
drivers/media/i2c/ar0521.c
+++ b/
drivers/media/i2c/ar0521.c
@@
-399,7
+399,7
@@
static int ar0521_set_stream(struct ar0521_dev *sensor, bool on)
if (ret)
goto err;
- ret =
ar0521_set_gains(senso
r);
+ ret =
__v4l2_ctrl_handler_setup(&sensor->ctrls.handle
r);
if (ret)
goto err;