[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<ZQ0PR01MB1302A36A1966E3ABEBA110E0F2B82@ZQ0PR01MB1302.CHNPR01.prod.partner.outlook.cn>
Date: Mon, 21 Apr 2025 07:02:47 +0000
From: Changhuang Liang <changhuang.liang@...rfivetech.com>
To: Rishikesh Donadkar <r-donadkar@...com>, "jai.luthra@...ux.dev"
<jai.luthra@...ux.dev>, "mripard@...nel.org" <mripard@...nel.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-media@...r.kernel.org" <linux-media@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>, "devarsht@...com"
<devarsht@...com>, "y-abhilashchandra@...com" <y-abhilashchandra@...com>,
"mchehab@...nel.org" <mchehab@...nel.org>, "robh@...nel.org"
<robh@...nel.org>, "krzk+dt@...nel.org" <krzk+dt@...nel.org>,
"conor+dt@...nel.org" <conor+dt@...nel.org>, "vaishnav.a@...com"
<vaishnav.a@...com>, "s-jain1@...com" <s-jain1@...com>, "vigneshr@...com"
<vigneshr@...com>, "sakari.ailus@...ux.intel.com"
<sakari.ailus@...ux.intel.com>, "hverkuil-cisco@...all.nl"
<hverkuil-cisco@...all.nl>, "tomi.valkeinen@...asonboard.com"
<tomi.valkeinen@...asonboard.com>, "jai.luthra@...asonboard.com"
<jai.luthra@...asonboard.com>, Jack Zhu <jack.zhu@...rfivetech.com>,
"laurent.pinchart@...asonboard.com" <laurent.pinchart@...asonboard.com>
Subject:
回复: [PATCH v3 10/13] media: cadence: csi2rx: Enable multi-stream support
> From: Jai Luthra <j-luthra@...com>
>
> Cadence CSI-2 bridge IP supports capturing multiple virtual "streams"
> of data over the same physical interface using MIPI Virtual Channels.
>
> The V4L2 subdev APIs should reflect this capability and allow per-stream
> routing and controls.
>
> While the hardware IP supports usecases where streams coming in the sink
> pad can be broadcasted to multiple source pads, the driver will need
> significant re-architecture to make that possible. The two users of this IP in
> mainline linux are TI Shim and StarFive JH7110 CAMSS, and both have only
> integrated the first source pad i.e stream0 of this IP. So for now keep it simple
> and only allow 1-to-1 mapping of streams from sink to source, without any
> broadcasting.
>
> With stream routing now supported in the driver, implement the
> enable_stream and disable_stream hooks in place of the stream-unaware
> s_stream hook.
>
> This allows consumer devices like a DMA bridge or ISP, to enable particular
> streams on a source pad, which in turn can be used to enable only particular
> streams on the CSI-TX device connected on the sink pad.
>
> Implement a fallback s_stream hook that internally calls enable_stream on
> each source pad, for consumer drivers that don't use multi-stream APIs to still
> work.
>
> Signed-off-by: Jai Luthra <j-luthra@...com>
> Co-developed-by: Rishikesh Donadkar <r-donadkar@...com>
> Signed-off-by: Rishikesh Donadkar <r-donadkar@...com>
Reviewed-by: Changhuang Liang <changhuang.liang@...rfivetech.com>
Best Regards,
Changhuang
Powered by blists - more mailing lists