On 08/08/2023 08:56, Tomi Valkeinen wrote:
I assume that num_routes is always updated to the actual number of
routes, right?
If VIDIOC_SUBDEV_G_ROUTING succeeds, yes, num_routes is updated.
That's not actually explained clearly in the spec. It says that if the
app provided
num_routes is too small, then it is updated, but it says nothing about
what happens
if the app provided value is too large.
Ok. I need to update the doc.
Actually, I have already sent a patch for that, "[PATCH] media:
Documentation: Fix [GS]_ROUTING documentation" on 20th July.
Tomi