media: amphion: adjust the encoder's value range of gop size
authorMing Qian <ming.qian@nxp.com>
Fri, 15 Jul 2022 07:38:00 +0000 (09:38 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 13:01:06 +0000 (15:01 +0200)
commit996f4e89fabe44ab9ac0aabb0697aeecbe717eca
tree2563544f3982a43c88e1b5c9c4aabf33655dd5a5
parentf7fd6c318c8a5d06bf3fe611f30763d62eaaf7f0
media: amphion: adjust the encoder's value range of gop size

adjust the value range of gop size from [0, 65535] to [1, 8000].
when the gop size is set to a too large value,
it may affect the encoded picture quality.
so constrain it to a reasonable range.

Fixes: 0401e659c1f92 ("media: amphion: add v4l2 m2m vpu encoder stateful driver")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/venc.c