aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoevt <joevt@shaw.ca>2021-09-26 01:33:27 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-09-27 13:26:34 +0200
commitbd3a2e9d0ca87ef6680482f85c9f50baed2b80e9 (patch)
treead8406db00bb17fc728bdd496cfdc71d1b279486
parent268453d4d9f06de4840729c4cc2bcd31f2ed4616 (diff)
edid-decode: remove extra vendor field
- Since we use the data_block_oui function to get the vendor for the Production Identification Data Block, we don't need to output the vendor OUI or ID separately. data_block_oui is better because it will get the OUI's name (if it is known) and it verifies that the ID is valid ASCII (don't want to print weird control characters). Signed-off-by: Joe van Tunen <joevt@shaw.ca> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--parse-displayid-block.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/parse-displayid-block.cpp b/parse-displayid-block.cpp
index a38c90e..ba2c15e 100644
--- a/parse-displayid-block.cpp
+++ b/parse-displayid-block.cpp
@@ -81,12 +81,6 @@ void edid_state::parse_displayid_product_id(const unsigned char *x)
check_displayid_datablock_revision(x[1]);
dispid.has_product_identification = true;
- if (dispid.version >= 0x20) {
- unsigned oui = (x[3] << 16) | (x[4] << 8) | x[5];
- printf(" Vendor OUI %s\n", ouitohex(oui).c_str());
- } else {
- printf(" Vendor ID: %c%c%c\n", x[3], x[4], x[5]);
- }
printf(" Product Code: %u\n", x[6] | (x[7] << 8));
unsigned sn = x[8] | (x[9] << 8) | (x[10] << 16) | (x[11] << 24);
if (sn) {

Privacy Policy