aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorLad Prabhakar <[email protected]>2024-10-07 13:38:09 +0100
committerMauro Carvalho Chehab <[email protected]>2024-10-16 09:32:41 +0200
commitafdb1f1fefb43a1bc16f203d1bac92e81fc60d89 (patch)
treef93d1e95db1ca0e69f58df01ce85fe02b5d872e2 /tools/perf/scripts/python/libxed.py
parent24ad2d1f773a11f69eecec3ec37ea3d76f2e9e7d (diff)
v4l2-subdev: Return -EOPNOTSUPP for unsupported pad type in call_get_frame_desc()
The `get_frame_desc()` operation should always be called on a source pad, which is indicated by the `MEDIA_PAD_FL_SOURCE` flag. This patch adds a check in `call_get_frame_desc()` to ensure that the `MEDIA_PAD_FL_SOURCE` flag is set for the pad before invoking `get_frame_desc()`. If the pad is not a source pad, the function will return an `-EOPNOTSUPP` error, signaling that the operation is not supported on non-source pads. Suggested-by: Sakari Ailus <[email protected]> Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions