Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: Documentation: v4l: Fix ACTIVE route flag

The documentation in one occasion mentions the
VIDIOC_SUBDEV_STREAM_FL_ACTIVE flag. This was meant to be
V4L2_SUBDEV_STREAM_FL_ACTIVE as it's a flag, not an IOCTL. Fix it.

Fixes: cd2c75454d74 ("media: Documentation: Document S_ROUTING behaviour")
Reported-by: Samuel Wein PhD <sam@samwein.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Sakari Ailus and committed by
Hans Verkuil
fd7ccfb1 825fc494

+1 -1
+1 -1
Documentation/userspace-api/media/v4l/dev-subdev.rst
··· 582 582 Devices generating the streams may allow enabling and disabling some of the 583 583 routes or have a fixed routing configuration. If the routes can be disabled, not 584 584 declaring the routes (or declaring them without 585 - ``VIDIOC_SUBDEV_STREAM_FL_ACTIVE`` flag set) in ``VIDIOC_SUBDEV_S_ROUTING`` will 585 + ``V4L2_SUBDEV_STREAM_FL_ACTIVE`` flag set) in ``VIDIOC_SUBDEV_S_ROUTING`` will 586 586 disable the routes. ``VIDIOC_SUBDEV_S_ROUTING`` will still return such routes 587 587 back to the user in the routes array, with the ``V4L2_SUBDEV_STREAM_FL_ACTIVE`` 588 588 flag unset.