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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>

Print INTERNAL pad flag for each pad.

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

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++) {
-- 
Regards,

Laurent Pinchart





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux