linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] Add support for video device state for capture devices
@ 2025-07-04  1:02 Jai Luthra
  2025-07-04  1:02 ` [PATCH RFC 1/3] media: v4l2-core: Add support for video device state Jai Luthra
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jai Luthra @ 2025-07-04  1:02 UTC (permalink / raw)
  To: Jacopo Mondi, Laurent Pinchart, Sakari Ailus
  Cc: Heiko Stuebner, Mauro Carvalho Chehab, Dafna Hirschfeld,
	linux-media, Jai Luthra

Hi,

This RFC series adds "state" support for video devices, along similar
lines to the existing support for try and active states for subdevs [1].
The main motivation for this change is to achieve the long-term goal of
"atomic" state changes across the media graph (all subdevices and video
devices), which ties together with Jacopo's in-progress work for
multi-context support [2].

Along with PATCH 1/3, which adds video_device_state to the framework,
PATCH 2-3/3 converts two capture drivers (J721E and RKISP) as examples
of using this newly introduced state mechanism to simplify their format
handling.

In future, this may be extended to other video device types, such as
metadata or video output devices, or M2M devices, but it is omitted from
this iteration to ease review and get early feedback.

[1]: https://lore.kernel.org/linux-media/20210610145606.3468235-1-tomi.valkeinen@ideasonboard.com/
[2]: https://lore.kernel.org/linux-media/20240913214657.1502838-1-jacopo.mondi@ideasonboard.com/

Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
---
Jai Luthra (3):
      media: v4l2-core: Add support for video device state
      media: ti: j721e-csi2rx: Use video_device_state
      media: rkisp1: Use video_device_state

 .../platform/rockchip/rkisp1/rkisp1-capture.c      | 113 +++++++++------------
 .../media/platform/rockchip/rkisp1/rkisp1-common.h |   4 -
 .../media/platform/ti/j721e-csi2rx/j721e-csi2rx.c  |  57 ++++-------
 drivers/media/v4l2-core/v4l2-dev.c                 |  32 ++++++
 drivers/media/v4l2-core/v4l2-fh.c                  |   1 +
 drivers/media/v4l2-core/v4l2-ioctl.c               |  44 ++++++--
 include/media/v4l2-dev.h                           |  52 ++++++++++
 include/media/v4l2-fh.h                            |   5 +-
 8 files changed, 192 insertions(+), 116 deletions(-)
---
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
change-id: 20250703-vdev-state-0743baa0ad4b

Best regards,
-- 
Jai Luthra <jai.luthra@ideasonboard.com>


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

end of thread, other threads:[~2025-08-07 13:08 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-04  1:02 [PATCH RFC 0/3] Add support for video device state for capture devices Jai Luthra
2025-07-04  1:02 ` [PATCH RFC 1/3] media: v4l2-core: Add support for video device state Jai Luthra
2025-07-08  7:42   ` Sakari Ailus
2025-07-08 16:26   ` Jacopo Mondi
2025-07-11 23:54     ` Jai Luthra
2025-07-14 17:16       ` Laurent Pinchart
2025-07-29 13:43         ` Jacopo Mondi
2025-07-29 14:59           ` Laurent Pinchart
2025-08-07  6:56         ` Jai Luthra
2025-08-07 13:08           ` Nicolas Dufresne
2025-07-04  1:02 ` [PATCH RFC 2/3] media: ti: j721e-csi2rx: Use video_device_state Jai Luthra
2025-07-04  1:02 ` [PATCH RFC 3/3] media: rkisp1: " Jai Luthra
2025-07-08 16:42   ` Jacopo Mondi
2025-07-12  0:26     ` Jai Luthra
2025-07-14 17:37       ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).