diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2024-04-24 18:39:06 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-06-04 08:31:24 +0200 |
| commit | e003fd9c1e3883a96451d24174dc5bad2c248341 (patch) | |
| tree | 86542f193b018039c37f7a6ec910da2d3f7c187e /include | |
| parent | 68e36241b74683e36533b0089966881d0b7d866b (diff) | |
| download | linux-e003fd9c1e3883a96451d24174dc5bad2c248341.tar.gz linux-e003fd9c1e3883a96451d24174dc5bad2c248341.tar.bz2 linux-e003fd9c1e3883a96451d24174dc5bad2c248341.zip | |
media: subdev: Add checks for subdev features
Add some checks to verify that the subdev driver implements required
features.
A subdevice that supports streams (V4L2_SUBDEV_FL_STREAMS) must do one
of the following:
- Implement neither .enable/disable_streams() nor .s_stream(), if the
subdev is part of a video driver that uses an internal method to
enable the subdev.
- Implement only .enable/disable_streams(), if support for legacy
sink-side subdevices is not needed.
- Implement .enable/disable_streams() and .s_stream(), if support for
legacy sink-side subdevices is needed.
At the moment the framework doesn't check this requirement. Add the
check.
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
