OSDN Git Service

media: rkisp1: isp: Add the enum_frame_size ioctl
authorSebastian Fricke <sebastian.fricke.linux@gmail.com>
Sat, 12 Dec 2020 18:53:06 +0000 (19:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 17:16:41 +0000 (18:16 +0100)
commit4fc81486d02e9f9f17ec12a4e33e919c05712016
tree633841417c45778e8b514f3445523a988801eb5e
parentc532fe0b7579d9f86b7ddf4d62df19ce4765a00e
media: rkisp1: isp: Add the enum_frame_size ioctl

Implement the VIDIOC_SUBDEV_ENUM_FRAME_SIZE ioctl for the isp entity,
check if the mbus code is valid for the given pad.
This call is not available for the parameter or metadata pads of the
RkISP1.

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
Acked-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c