[PATCH] usbutils: Fix the UVC bmInterlaceFlags field decoding

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

 



The meaning of bit 1 was inverted, fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
---
 lsusb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lsusb.c b/lsusb.c
index 5a61fb1..239dd73 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -2362,7 +2362,7 @@ static void dump_videostreaming_interface(unsigned char *buf)
 		printf("          Interlaced stream or variable: %s\n",
 		       (flags & (1 << 0)) ? "Yes" : "No");
 		printf("          Fields per frame: %u fields\n",
-		       (flags & (1 << 1)) ? 2 : 1);
+		       (flags & (1 << 1)) ? 1 : 2);
 		printf("          Field 1 first: %s\n",
 		       (flags & (1 << 2)) ? "Yes" : "No");
 		printf("          Field pattern: ");
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux