[PATCH 07/13] media: stm32: dcmipp: introduce a dcmipp global media_pipeline
Alain Volmat
alain.volmat at foss.st.com
Mon Feb 2 05:57:32 PST 2026
With the introduction of stm32mp25 containing several capture
devices, it becomes necessary to share the media_pipeline
structure among all capture devices since subdev pads can be
shared between several capture devices.
Signed-off-by: Alain Volmat <alain.volmat at foss.st.com>
---
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c | 3 +--
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.h | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
index 0b1d1fbda5d6..2fb34cac89c6 100644
--- a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
+++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c
@@ -125,7 +125,6 @@ struct dcmipp_bytecap_device {
/* mutex used as vdev and queue lock */
struct mutex lock;
u32 sequence;
- struct media_pipeline pipe;
struct v4l2_subdev *s_subdev;
u32 s_subdev_pad_nb;
@@ -408,7 +407,7 @@ static int dcmipp_bytecap_start_streaming(struct vb2_queue *vq,
goto err_buffer_done;
}
- ret = media_pipeline_start(entity->pads, &vcap->pipe);
+ ret = media_pipeline_start(entity->pads, &vcap->ved.dcmipp->pipe);
if (ret) {
dev_dbg(vcap->dev, "%s: Failed to start streaming, media pipeline start error (%d)\n",
__func__, ret);
diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.h b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.h
index 2d26425b0b0f..ee9f36268e64 100644
--- a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.h
+++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.h
@@ -73,6 +73,7 @@ struct dcmipp_device {
/* The Associated media_device parent */
struct media_device mdev;
+ struct media_pipeline pipe;
/* Internal v4l2 parent device*/
struct v4l2_device v4l2_dev;
--
2.34.1
More information about the linux-arm-kernel
mailing list