diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2020-12-03 12:00:56 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-27 16:06:39 +0100 |
commit | 21de56fa0789cf1c7e9a6d946f45c79ead04ffd4 (patch) | |
tree | 528ba04b5d39787d8c38f2790871e6f47f4ae836 /drivers/media | |
parent | e7cd90988b9d03c3a886a23f015c41c71371bc4f (diff) | |
download | linux-21de56fa0789cf1c7e9a6d946f45c79ead04ffd4.tar.bz2 |
media: allegro: use handler_setup to configure channel
v4l2_ctrl_handler_setup() calls s_ctrl for all controls of the handler.
This ensures that the channel is initialized using the default values of
the v4l2-ctrls.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/allegro-dvt/allegro-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/allegro-dvt/allegro-core.c b/drivers/media/platform/allegro-dvt/allegro-core.c index d7b1cc2b9e6e..a9a9e9bb0401 100644 --- a/drivers/media/platform/allegro-dvt/allegro-core.c +++ b/drivers/media/platform/allegro-dvt/allegro-core.c @@ -2520,6 +2520,8 @@ static int allegro_open(struct file *file) v4l2_ctrl_cluster(3, &channel->mpeg_video_bitrate_mode); + v4l2_ctrl_handler_setup(handler); + channel->mcu_channel_id = -1; channel->user_id = -1; |