From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Hongju Wang <hongju.wang@intel.com>
Cc: linux-media@vger.kernel.org, bingbu.cao@linux.intel.com
Subject: Re: [PATCH] media: intel/ipu6: Set the VC of the stream as the SOF event id
Date: Thu, 24 Oct 2024 10:30:55 +0000 [thread overview]
Message-ID: <Zxoh36bkJaDQIvME@kekkonen.localdomain> (raw)
In-Reply-To: <20241024032201.3867638-1-hongju.wang@intel.com>
Hi Hongju,
On Thu, Oct 24, 2024 at 11:22:01AM +0800, Hongju Wang wrote:
> In the virtual channel case, they should use v4l2_event.id to distinguish
> SOF events of different streams. Therefore, we set the virtual channel
> number of the stream as the SOF event ID. This number is unique.
>
> Signed-off-by: Hongju Wang <hongju.wang@intel.com>
> ---
> drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c b/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
> index 051898ce53f4..5ad426afa0f0 100644
> --- a/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
> +++ b/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
> @@ -578,6 +578,7 @@ void ipu6_isys_csi2_sof_event_by_stream(struct ipu6_isys_stream *stream)
> .type = V4L2_EVENT_FRAME_SYNC,
> };
>
> + ev.id = stream->vc;
> ev.u.frame_sync.frame_sequence = atomic_fetch_inc(&stream->sequence);
> v4l2_event_queue(vdev, &ev);
>
The id field in struct v4l2_event isn't used for the FRAME_SYNC event and
also the virtual channel isn't communicated to the user space currently.
Doesn't the video device itself (and the routing configuration) associate
this to a given sensor already?
--
Kind regards,
Sakari Ailus
next prev parent reply other threads:[~2024-10-24 10:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-24 3:22 [PATCH] media: intel/ipu6: Set the VC of the stream as the SOF event id Hongju Wang
2024-10-24 10:30 ` Sakari Ailus [this message]
2024-11-04 3:07 ` Wang, Hongju
2024-11-04 7:56 ` Sakari Ailus
2024-11-04 8:25 ` Laurent Pinchart
2024-11-05 3:23 ` Wang, Hongju
2024-11-05 9:50 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zxoh36bkJaDQIvME@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=bingbu.cao@linux.intel.com \
--cc=hongju.wang@intel.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox