Message ID | 20250725-multicontext-v1-2-ea558291e101@ideasonboard.com |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
Hi Jacopo, On Fri, 2025-07-25 at 12:33 +0200, Jacopo Mondi wrote: > Temporary update the media.h header from Linux kernel using the flags > introduced by: > https://patchwork.linuxtv.org/project/linux-media/patch/20250724-multicontext-mainline-2025-v2-6-c9b316773486@ideasonboard.com/ > > Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> > --- > include/linux/videodev2.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h > index > 317d063a7e2bf5c54b01b8c2328a1857dc2f6fc3..3025db045572a867b1da12b26da > 703a31d1dd453 100644 > --- a/include/linux/videodev2.h > +++ b/include/linux/videodev2.h > @@ -1011,6 +1011,14 @@ struct v4l2_jpegcompression { > * always use APP0 */ > }; > > +/* > + * V I D E O D E V I C E C O N T E X T > + */ > + > +struct v4l2_context { > + __u32 context_fd; > +}; > + Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com> > /* > * M E M O R Y - M A P P I N G B U F F E R S > */ > @@ -2733,6 +2741,8 @@ struct v4l2_remove_buffers { > #define VIDIOC_QUERY_EXT_CTRL _IOWR('V', 103, struct > v4l2_query_ext_ctrl) > #define VIDIOC_REMOVE_BUFS _IOWR('V', 104, struct > v4l2_remove_buffers) > > +/* Context handling */ > +#define VIDIOC_BIND_CONTEXT _IOW('V', 105, struct v4l2_context) > > /* Reminder: when adding new ioctls please add support for them to > drivers/media/v4l2-core/v4l2-compat-ioctl32.c as well! */
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 317d063a7e2bf5c54b01b8c2328a1857dc2f6fc3..3025db045572a867b1da12b26da703a31d1dd453 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -1011,6 +1011,14 @@ struct v4l2_jpegcompression { * always use APP0 */ }; +/* + * V I D E O D E V I C E C O N T E X T + */ + +struct v4l2_context { + __u32 context_fd; +}; + /* * M E M O R Y - M A P P I N G B U F F E R S */ @@ -2733,6 +2741,8 @@ struct v4l2_remove_buffers { #define VIDIOC_QUERY_EXT_CTRL _IOWR('V', 103, struct v4l2_query_ext_ctrl) #define VIDIOC_REMOVE_BUFS _IOWR('V', 104, struct v4l2_remove_buffers) +/* Context handling */ +#define VIDIOC_BIND_CONTEXT _IOW('V', 105, struct v4l2_context) /* Reminder: when adding new ioctls please add support for them to drivers/media/v4l2-core/v4l2-compat-ioctl32.c as well! */
Temporary update the media.h header from Linux kernel using the flags introduced by: https://patchwork.linuxtv.org/project/linux-media/patch/20250724-multicontext-mainline-2025-v2-6-c9b316773486@ideasonboard.com/ Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> --- include/linux/videodev2.h | 10 ++++++++++ 1 file changed, 10 insertions(+)