media: cedrus: Remove checking for required controls
authorJernej Skrabec <jernej.skrabec@siol.net>
Wed, 23 Dec 2020 11:06:58 +0000 (12:06 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 11:34:02 +0000 (12:34 +0100)
commit7072db89572135f28cad65f15877bf7e67cf2ff8
treebeec6c6589446426dc81310198a257b76ce564f9
parented35980a4d8a194d959826cc82ef4c9f78796a3f
media: cedrus: Remove checking for required controls

According to v4l2 request api specifications, it's allowed to skip
control if its content isn't changed for performance reasons. Cedrus
driver predates that, so it has implemented mechanism to check if all
required controls are included in one request.

Conform to specifications with removing that mechanism.

Note that this mechanism with static required flag isn't very good
anyway because need for control is usually signaled in other controls.

Fixes: 50e761516f2b ("media: platform: Add Cedrus VPU decoder driver")
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus.c
drivers/staging/media/sunxi/cedrus/cedrus.h