diff mbox series

[v4l-utils,5/8] utils: media-ctl: Also print INTERNAL pad flag

Message ID 20240402000033.4007-6-laurent.pinchart@ideasonboard.com (mailing list archive)
State New
Headers show
Series Support for the generic line-based metadata support | expand

Commit Message

Laurent Pinchart April 2, 2024, midnight UTC
From: Sakari Ailus <sakari.ailus@linux.intel.com>

Print INTERNAL pad flag for each pad.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 utils/media-ctl/media-ctl.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/utils/media-ctl/media-ctl.c b/utils/media-ctl/media-ctl.c
index 1b40552253f1..2a7d994a7b74 100644
--- a/utils/media-ctl/media-ctl.c
+++ b/utils/media-ctl/media-ctl.c
@@ -566,7 +566,7 @@  static void media_print_topology_text_entity(struct media_device *media,
 	for (j = 0; j < info->pads; j++) {
 		const struct media_pad *pad = media_entity_get_pad(entity, j);
 
-		printf("\tpad%u: %s%s%s%s%s\n", j,
+		printf("\tpad%u: %s%s%s%s%s%s%s\n", j,
 		       pad->flags & MEDIA_PAD_FL_SINK ? "Sink" : "",
 		       comma(MEDIA_PAD_FL_SOURCE, MEDIA_PAD_FL_SINK,
 			     pad->flags),
@@ -574,7 +574,11 @@  static void media_print_topology_text_entity(struct media_device *media,
 		       comma(MEDIA_PAD_FL_MUST_CONNECT,
 			     MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE,
 			     pad->flags),
-		       pad->flags & MEDIA_PAD_FL_MUST_CONNECT ? "Must connect" : "");
+		       pad->flags & MEDIA_PAD_FL_MUST_CONNECT ? "Must connect" : "",
+		       comma(MEDIA_PAD_FL_INTERNAL,
+			     MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE |
+			     MEDIA_PAD_FL_MUST_CONNECT, pad->flags),
+		       pad->flags & MEDIA_PAD_FL_INTERNAL ? "Internal" : "");
 		media_print_pad_text(entity, pad, routes, num_routes);
 
 		for (k = 0; k < num_links; k++) {