mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
media: Improve enable_streams and disable_streams documentation
Document that enable_streams may start additional streams and disable_streams may not disable requested streams if other related streams are still enabled. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Mirela Rabulea <mirela.rabulea@nxp.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
c4b1944b56
commit
96298497e1
|
|
@ -814,6 +814,11 @@ struct v4l2_subdev_state {
|
|||
* V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask
|
||||
* argument.
|
||||
*
|
||||
* Due to device constraints, starting the requested streams may result in
|
||||
* additional streams also being started by the driver. Streams that are
|
||||
* started and stopped together due to the nature of the hardware are
|
||||
* called a stream group.
|
||||
*
|
||||
* @disable_streams: Disable the streams defined in streams_mask on the given
|
||||
* source pad. Subdevs that implement this operation must use the active
|
||||
* state management provided by the subdev core (enabled through a call to
|
||||
|
|
@ -823,6 +828,9 @@ struct v4l2_subdev_state {
|
|||
* Drivers that support only a single stream without setting the
|
||||
* V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask
|
||||
* argument.
|
||||
*
|
||||
* When the requested stream are part of a stream group, they will be
|
||||
* stopped once all streams in the group are stopped.
|
||||
*/
|
||||
struct v4l2_subdev_pad_ops {
|
||||
int (*enum_mbus_code)(struct v4l2_subdev *sd,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user