Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH] media: intel/ipu6: Set the VC of the stream as the SOF event id
@ 2024-10-24  3:22 Hongju Wang
  2024-10-24 10:30 ` Sakari Ailus
  0 siblings, 1 reply; 7+ messages in thread
From: Hongju Wang @ 2024-10-24  3:22 UTC (permalink / raw)
  To: linux-media, sakari.ailus; +Cc: bingbu.cao, Hongju Wang

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);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-05  9:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox