Skip to contentSkip to conversation

media: uapi: Fix [GS]_ROUTING ACTIVE flag value

PATCH In review Sakari Ailus 2 participants 2 messages Apr 25, 2023 – Apr 26, 2023 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: uapi: Fix [GS]_ROUTING ACTIVE flag value

The value of the V4L2_SUBDEV_ROUTE_FL_ACTIVE is 1, not 0. Use hexadecimal numbers as is done elsewhere in the documentation.

Fixes ea73eda50813 ("media: Documentation: Add GS_ROUTING documentation")
---
 .../userspace-api/media/v4l/vidioc-subdev-g-routing.rst         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst +1 -1
index 68ca343c3b44a..2d6e3bbdd0404 100644
@@ -122,7 +122,7 @@ for all the route entries and call ``VIDIOC_SUBDEV_G_ROUTING`` again.
     :widths:       3 1 4
 
     * - V4L2_SUBDEV_ROUTE_FL_ACTIVE
-      - 0
+      - 0x0001
       - The route is enabled. Set by applications.
 
 Return Value
Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw

Indeed!

Quoted 5 lines · Sakari Ailus

The value of the V4L2_SUBDEV_ROUTE_FL_ACTIVE is 1, not 0. Use hexadecimal numbers as is done elsewhere in the documentation.

Fixes ea73eda50813 ("media: Documentation: Add GS_ROUTING documentation")

Thanks
j

Quoted 20 lines
---
 .../userspace-api/media/v4l/vidioc-subdev-g-routing.rst         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst +1 -2
index 68ca343c3b44a..2d6e3bbdd0404 100644
@@ -122,7 +122,7 @@ for all the route entries and call ``VIDIOC_SUBDEV_G_ROUTING`` again.
     :widths:       3 1 4
 
     * - V4L2_SUBDEV_ROUTE_FL_ACTIVE
-      - 0
+      - 0x0001
       - The route is enabled. Set by applications.
 
 Return Value
--

2.30.2