diff mbox series

[v4l-utils] v4l2-compliance: Add gadget. as bus_info prefix

Message ID 20230320130632.3091933-1-m.tretter@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series [v4l-utils] v4l2-compliance: Add gadget. as bus_info prefix | expand

Commit Message

Michael Tretter March 20, 2023, 1:06 p.m. UTC
The UVC gadget uses "gadget." as businfo prefix for its V4L2 OUTPUT
device. Allow it as a valid bus_info prefix.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 utils/v4l2-compliance/v4l2-compliance.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 8aebae2ea932..830c2578134c 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -653,7 +653,8 @@  static int testCap(struct node *node)
 	    memcmp(vcap.bus_info, "parport", 7) &&
 	    memcmp(vcap.bus_info, "platform:", 9) &&
 	    memcmp(vcap.bus_info, "rmi4:", 5) &&
-	    memcmp(vcap.bus_info, "libcamera:", 10))
+	    memcmp(vcap.bus_info, "libcamera:", 10) &&
+	    memcmp(vcap.bus_info, "gadget.", 7))
 		return fail("missing bus_info prefix ('%s')\n", vcap.bus_info);
 	if (!node->media_bus_info.empty() &&
 	    node->media_bus_info != std::string(reinterpret_cast<const char *>(vcap.bus_info)))