Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: uvcvideo: Document how to format GUIDs

Manual formatting the GUIDs can lead to errors, document a
programmatically way to format the GUIDs from lsusb into something that
the driver can use.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Ricardo Ribalda and committed by
Hans Verkuil
ee5b462b 27ccc44a

+8
+8
include/linux/usb/uvc.h
··· 10 10 11 11 /* ------------------------------------------------------------------------ 12 12 * GUIDs 13 + * 14 + * The GUID returned by lsusb can be converted to this format with the 15 + * following python snippet: 16 + * 17 + * import uuid 18 + * id = "{01234567-89ab-cdef-0123-456789abcdef}" 19 + * le = uuid.UUID(id).bytes_le 20 + * print("{" + ", ".join([f"0x{b:02x}" for b in le]) + "}") 13 21 */ 14 22 #define UVC_GUID_UVC_CAMERA \ 15 23 {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \