[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240718032834.53876-5-changhuang.liang@starfivetech.com>
Date: Wed, 17 Jul 2024 20:28:33 -0700
From: Changhuang Liang <changhuang.liang@...rfivetech.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Maxime Ripard <mripard@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>
Cc: Jacopo Mondi <jacopo.mondi@...asonboard.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Tomi Valkeinen <tomi.valkeinen+renesas@...asonboard.com>,
Jack Zhu <jack.zhu@...rfivetech.com>,
Keith Zhao <keith.zhao@...rfivetech.com>,
Changhuang Liang <changhuang.liang@...rfivetech.com>,
Jayshri Pawar <jpawar@...ence.com>,
Jai Luthra <j-luthra@...com>,
linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-staging@...ts.linux.dev
Subject: [PATCH v2 4/5] staging: media: starfive: Introduce streaming for ISP subdev
Use "streaming" to indicate whether the ISP is in the streaming state.
Signed-off-by: Changhuang Liang <changhuang.liang@...rfivetech.com>
---
drivers/staging/media/starfive/camss/stf-isp.c | 6 +++++-
drivers/staging/media/starfive/camss/stf-isp.h | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/media/starfive/camss/stf-isp.c b/drivers/staging/media/starfive/camss/stf-isp.c
index 8c6388edf049..d71b95ebd3d3 100644
--- a/drivers/staging/media/starfive/camss/stf-isp.c
+++ b/drivers/staging/media/starfive/camss/stf-isp.c
@@ -77,8 +77,12 @@ static int isp_set_stream(struct v4l2_subdev *sd, int enable)
sd_state = v4l2_subdev_lock_and_get_active_state(sd);
- if (enable)
+ if (enable) {
+ isp_dev->streaming = true;
stf_isp_stream_on(isp_dev, sd_state);
+ } else {
+ isp_dev->streaming = false;
+ }
v4l2_subdev_call(isp_dev->source_subdev, video, s_stream, enable);
diff --git a/drivers/staging/media/starfive/camss/stf-isp.h b/drivers/staging/media/starfive/camss/stf-isp.h
index 1a3e8cf7859c..85ca1c210639 100644
--- a/drivers/staging/media/starfive/camss/stf-isp.h
+++ b/drivers/staging/media/starfive/camss/stf-isp.h
@@ -414,6 +414,7 @@ struct stf_isp_dev {
unsigned int nformats;
struct v4l2_subdev *source_subdev;
const struct stf_isp_format *current_fmt;
+ bool streaming;
};
int stf_isp_reset(struct stf_isp_dev *isp_dev);
--
2.25.1
Powered by blists - more mailing lists