path: root/utils
diff options
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-06 12:57:09 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-06 12:57:09 +0200
commitf0c7e3d71eaf4182bae7eb3ee0e43b4eeb047ea9 (patch)
treee470573f42e8894dc9f6d9f2da75797cd1d5c341 /utils
parent2735ec27e99879d3fdc57c79cb8b27c4a85730f9 (diff)
v4l2-ctl: add '--set-edid type=list' support
'type=list' lists all supported EDID types. This makes life a little bit easier when trying out different EDIDs. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils')
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-edid.cpp b/utils/v4l2-ctl/v4l2-ctl-edid.cpp
index 80ea151f..fba9734c 100644
--- a/utils/v4l2-ctl/v4l2-ctl-edid.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-edid.cpp
@@ -121,6 +121,7 @@ void edid_usage()
" --set-edid pad=<pad>[,type=<type>|file=<file>][,format=<fmt>][modifiers]\n"
" <pad> is the input index for which to set the EDID.\n"
" <type> can be one of:\n"
+ " list: list all EDID types\n"
" vga: Base Block supporting VGA interface (1920x1200p60)\n"
" dvid: Base Block supporting DVI-D interface (1920x1200p60)\n"
" hdmi: CTA-861 with HDMI support up to 1080p60\n"
@@ -1191,6 +1192,20 @@ void edid_cmd(int ch, char *optarg)
} else if (!strcmp(value, "displayport")) {
sedid.edid = displayport_edid;
sedid.blocks = sizeof(displayport_edid) / 128;
+ } else if (!strcmp(value, "list")) {
+ printf("EDID types:\n");
+ printf("vga: Base Block supporting VGA interface (1920x1200p60)\n");
+ printf("dvid: Base Block supporting DVI-D interface (1920x1200p60)\n");
+ printf("hdmi: CTA-861 with HDMI support up to 1080p60\n");
+ printf("hdmi-4k-170mhz: CTA-861 with HDMI support up to 1080p60 or 4kp30 4:2:0\n");
+ printf("hdmi-4k-300mhz: CTA-861 with HDMI support up to 4kp30\n");
+ printf("hdmi-4k-600mhz: CTA-861 with HDMI support up to 4kp60\n");
+ printf("hdmi-4k-600mhz-with-displayid: Block Map Extension Block, CTA-861 with\n");
+ printf("\tHDMI support up to 4kp60, DisplayID Extension Block\n");
+ printf("displayport: DisplayID supporting a DisplayPort interface (1920x1200)\n");
+ printf("displayport-with-cta861: DisplayID supporting a DisplayPort interface,\n");
+ printf("\tCTA-861 Extension Block (1080p60)\n");
+ std::exit(EXIT_FAILURE);
} else {

Privacy Policy