]> git.baikalelectronics.ru Git - kernel.git/commit
media: allegro: fix type of gop_length in channel_create message
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 16 Mar 2020 15:26:23 +0000 (16:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:02 +0000 (10:50 +0200)
commit301256f07e58aa78c991060247f9c400da47b82c
tree5dae759a578bb33cd6db2b0a0ed16ecac593f181
parentfc7a8afc6ff9c20874784a9813ee6d5c7073a4d8
media: allegro: fix type of gop_length in channel_create message

[ Upstream commit 657e496c8ff8efbedaf56e49c56ec0355069b5cd ]

The gop_length field is actually only u16 and there are two more u8
fields in the message:

- the number of consecutive b-frames
- frequency of golden frames

Fix the message and thus fix the configuration of the GOP length.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c