media: rkvdec: Do not require all controls to be present in every request
authorDaniel Almeida <daniel.almeida@collabora.com>
Tue, 23 Mar 2021 18:57:09 +0000 (19:57 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 17:33:02 +0000 (19:33 +0200)
commit54676d5f5630b79f7b00c7c43882a58c1815aaf9
tree9c8f7779a7e9575cd936e6750e536b0a43b04962
parent4cd15d84ca3e9be4db121b067c9739268c5e9b91
media: rkvdec: Do not require all controls to be present in every request

According to the v4l2 api, it is allowed to skip
setting a control if its contents haven't changed for performance
reasons: userspace should only update the controls that changed from
last frame rather then updating them all. Still some ancient code
that checks for mandatory controls has been left in this driver.

Remove it.

Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkvdec/rkvdec.c
drivers/staging/media/rkvdec/rkvdec.h