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: NNicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: NEzequiel Garcia <ezequiel@collabora.com> Acked-by: NPaul Kocialkowski <paul.kocialkowski@bootlin.com> Tested-by: NOndrej Jirman <megous@megous.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Showing
想要评论请 注册 或 登录