[PATCH 1/2] v4l2-tracer: stop stringifying v4l2_input "tuner"

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

 



The "tuner" field in struct v4l2_input is actually the tuner index used by
capture drivers that have more than one tuner. The comment in the UAPI
indicated that this field was an enum v4l2_tuner_type and so the
v4l2-tracer was (unsuccessfully) attempting to convert this field to a
string. Stop trying to stringify the "tuner" field and just let it be an
integer.

Signed-off-by: Deborah Brouwer <deborah.brouwer@xxxxxxxxxxxxx>
---
 utils/v4l2-tracer/v4l2-tracer-gen.pl | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/utils/v4l2-tracer/v4l2-tracer-gen.pl b/utils/v4l2-tracer/v4l2-tracer-gen.pl
index f0cd5c61..d10be6a8 100755
--- a/utils/v4l2-tracer/v4l2-tracer-gen.pl
+++ b/utils/v4l2-tracer/v4l2-tracer-gen.pl
@@ -192,10 +192,6 @@ sub get_val_def_name {
 		}
 		return "nullptr"; # will print as hex string
 	}
-	# special treatment for struct v4l2_input which has members named both "tuner" and "type"
-	if (($member eq "tuner") && ($struct_name eq "v4l2_input")) {
-		return "v4l2_tuner_type_val_def";
-	}
 	if ($member =~ /pixelformat/) {
 		return "v4l2_pix_fmt_val_def";
 	}
-- 
2.40.1




[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