]> Gentwo Git Trees - linux/.git/commit
media: rockchip: rkcif: add abstraction for dma blocks
authorMichael Riesch <michael.riesch@collabora.com>
Fri, 14 Nov 2025 15:20:18 +0000 (16:20 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Sat, 15 Nov 2025 11:40:33 +0000 (12:40 +0100)
commit501802e2ad517a1e2b9766e1b4e396b10f13f140
tree9acb7309ac2141a2729e107cc2d7b8b0a70f18e6
parent85411d17bee99b0a99e983f37188f9cdacfded54
media: rockchip: rkcif: add abstraction for dma blocks

Add an abstraction for the DMA parts and the ping-pong scheme (a
double-buffering mechanism) of the different CIF variants. Each
stream is represented as V4L2 device whose corresponding media
entity has one sink pad. This sink pad is connected to an instance
of the INTERFACE/CROP abstraction.

Tested-by: Gerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: Gerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Michael Riesch <michael.riesch@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
[hverkuil: dropped deprecated vb2_ops_wait_prepare/finish callbacks]
drivers/media/platform/rockchip/rkcif/Makefile
drivers/media/platform/rockchip/rkcif/rkcif-common.h
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
drivers/media/platform/rockchip/rkcif/rkcif-stream.c [new file with mode: 0644]
drivers/media/platform/rockchip/rkcif/rkcif-stream.h [new file with mode: 0644]