[PATCH v2 26/29] edid-decode: remove extra vendor field

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

 



- 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@xxxxxxx>
---
 parse-displayid-block.cpp | 6 ------
 1 file changed, 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) {
-- 
2.24.3 (Apple Git-128)




[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