diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2020-03-16 16:26:25 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-03-20 09:11:50 +0100 |
commit | 2fc29ef598b98915ddc698c998cc33c4530b84c8 (patch) | |
tree | 73f2a583445dd64b9de33a53a6bc3cf19a571828 /drivers/staging/media | |
parent | 081172a11890f89438544447c7da90c35ea82c01 (diff) | |
download | linux-2fc29ef598b98915ddc698c998cc33c4530b84c8.tar.bz2 |
media: allegro: start a GOP with an IDR frame
When creating a channel, freq_idr defines the number of frames between
IDR frames in the coded stream. In V4L2, the period between IDR frames
shall be taken from the GOP_SIZE control.
Set the IDR frame frequency equal to the GOP size and let every GOP
start with an IDR frame.
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/staging/media')
-rw-r--r-- | drivers/staging/media/allegro-dvt/allegro-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/allegro-dvt/allegro-core.c b/drivers/staging/media/allegro-dvt/allegro-core.c index 62ba9ba64bba..3b2e970c13ac 100644 --- a/drivers/staging/media/allegro-dvt/allegro-core.c +++ b/drivers/staging/media/allegro-dvt/allegro-core.c @@ -390,7 +390,7 @@ struct mcu_msg_create_channel { /* gop param */ u32 gop_ctrl_mode; - u32 freq_ird; + u32 freq_idr; u32 freq_lt; u32 gdr_mode; u16 gop_length; @@ -1115,7 +1115,7 @@ static int allegro_mcu_send_create_channel(struct allegro_dev *dev, msg.rate_control_option = 0x00000000; msg.gop_ctrl_mode = 0x00000000; - msg.freq_ird = 0x7fffffff; + msg.freq_idr = channel->gop_size; msg.freq_lt = 0; msg.gdr_mode = 0x00000000; msg.gop_length = channel->gop_size; |