summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlain Volmat <alain.volmat@foss.st.com>2026-08-21 08:38:09 +0200
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-09-09 09:16:31 +0200
commit78bc155d2fd404977a2d3006fa2ea39907815e67 (patch)
treefcd05e462301e2ab4b30896eb2d5e04f62751639
parentb1c889e71596c00641337146a32fa02721e4e588 (diff)
downloadlinux-next-78bc155d2fd404977a2d3006fa2ea39907815e67.tar.gz
linux-next-78bc155d2fd404977a2d3006fa2ea39907815e67.zip
media: stm32: dcmipp: introduce a dcmipp global media_pipeline
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@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
-rw-r--r--drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c3
-rw-r--r--drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.h1
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 f6011b42203c..53341b798457 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;
@@ -410,7 +409,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 b491ce00c656..9ec6d589b503 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;