summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-cs2000-cp.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2020-09-18 03:27:51 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-27 12:20:05 +0300
commit8c608272ec3e6926ae2e258e74e84777d932ddd6 (patch)
tree95c0977970fb435003b84806c1ce83ee0133fecf /drivers/clk/clk-cs2000-cp.c
parent2f8c737ed2c1fa13ed606f2c32f7ce95688fa1d9 (diff)
downloadlinux-8c608272ec3e6926ae2e258e74e84777d932ddd6.tar.xz
media: cedrus: Propagate OUTPUT resolution to CAPTURE
As per spec, the CAPTURE resolution should be automatically set based on the OUTPUT resolution. This patch properly propagate width/height to the capture when the OUTPUT format is set and override the user provided width/height with configured OUTPUT resolution when the CAPTURE fmt is updated. This also prevents userspace from selecting a CAPTURE resolution that is too small, avoiding kernel oops. Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com> Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Tested-by: Ondrej Jirman <megous@megous.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/clk/clk-cs2000-cp.c')
0 files changed, 0 insertions, 0 deletions