]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: staging: imx-csi: use media_pad_is_streaming helper
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 18 Dec 2025 09:23:51 +0000 (10:23 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 27 May 2026 08:58:27 +0000 (10:58 +0200)
The media_pad_is_streaming() helper is explicitly intended to check whether
a pad has been started with media_pipeline_start(). Use it instead of
relying on the implicit assumption that a pad with a pipeline is streaming.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/staging/media/imx/imx-media-utils.c

index bd9af147a80105b6f9e60a6ded12af0c288ce56c..1a2e5e40c99cf883ad8b5fb24307a48fc8e2a8f7 100644 (file)
@@ -774,7 +774,7 @@ int imx_media_pipeline_set_stream(struct imx_media_dev *imxmd,
                        __media_pipeline_stop(pad);
        } else {
                v4l2_subdev_call(sd, video, s_stream, 0);
-               if (media_pad_pipeline(pad))
+               if (media_pad_is_streaming(pad))
                        __media_pipeline_stop(pad);
        }