]> git.ipfire.org Git - thirdparty/linux.git/commit
media: iris: implement iris v4l2 file ops
authorDikshita Agarwal <quic_dikshita@quicinc.com>
Fri, 7 Feb 2025 07:54:43 +0000 (13:24 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 7 Feb 2025 10:51:01 +0000 (11:51 +0100)
commitfa186c97e3d293c924c36780f721201f0ec73661
treea9afcfd4a2224558247e6b083824d6f404d36f97
parent38506cb7e8d25ae9604f8e6af96ea19bc3eadaf1
media: iris: implement iris v4l2 file ops

Implement open, close and poll ops.

Open:
Configure the vb2 queue and v4l2 file handler. Allocate a video instance
and add the instance to core instance list.

Close:
Free the instance and remove it from core instance list.

Poll:
Wait for an event on vb2 src and vb2 dst queues.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Tested-by: Stefan Schmidt <stefan.schmidt@linaro.org> # x1e80100 (Dell XPS 13 9345)
Reviewed-by: Stefan Schmidt <stefan.schmidt@linaro.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-HDK
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 files changed:
drivers/media/platform/qcom/iris/Kconfig
drivers/media/platform/qcom/iris/Makefile
drivers/media/platform/qcom/iris/iris_core.h
drivers/media/platform/qcom/iris/iris_hfi_gen1.h [new file with mode: 0644]
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c [new file with mode: 0644]
drivers/media/platform/qcom/iris/iris_hfi_gen2.h [new file with mode: 0644]
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c [new file with mode: 0644]
drivers/media/platform/qcom/iris/iris_instance.h [new file with mode: 0644]
drivers/media/platform/qcom/iris/iris_platform_common.h
drivers/media/platform/qcom/iris/iris_platform_sm8550.c
drivers/media/platform/qcom/iris/iris_probe.c
drivers/media/platform/qcom/iris/iris_vidc.c [new file with mode: 0644]
drivers/media/platform/qcom/iris/iris_vidc.h [new file with mode: 0644]