media: camss: Make use of V4L2_CAP_IO_MC
authorAndrey Konovalov <andrey.konovalov@linaro.org>
Thu, 26 Nov 2020 15:01:57 +0000 (16:01 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 07:53:20 +0000 (08:53 +0100)
commitdfb5d32897167cc4e6c833d3d360b48cd9343d5e
tree91356b7f3adbd529b798e02dbd08b52efa5c3b64
parenta3d412d4b9f3e1d016cd7c49dfa31a4711c7db90
media: camss: Make use of V4L2_CAP_IO_MC

Implement mbus_code filtering for format enumeration.

Without this patch libcamera errors out with:
"ERROR V4L2 v4l2_videodevice.cpp:982 /dev/video0[cap]: Media bus code
filtering not supported by the device"

This is the second version of this change which handles the case of
several pixel formats corresponding to one media bus format correctly.

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/camss/camss-video.c