From 5a4a2529af14d6c0385a17f5ef49212340efb42d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 30 Aug 2025 14:13:53 +0000 Subject: [PATCH] [idd] driver: remove static EDID We do not need this as we are configuring the avialable modes directly --- idd/LGIdd/CIndirectDeviceContext.cpp | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/idd/LGIdd/CIndirectDeviceContext.cpp b/idd/LGIdd/CIndirectDeviceContext.cpp index 2f60c4e7..2158fec6 100644 --- a/idd/LGIdd/CIndirectDeviceContext.cpp +++ b/idd/LGIdd/CIndirectDeviceContext.cpp @@ -56,18 +56,6 @@ const DWORD DefaultDisplayModes[][3] = {800 , 600 , 120}, {640 , 480 , 120} }; -static const BYTE EDID[] = -{ - 0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x30,0xE8,0x34,0x12,0xC9,0x07,0xCC,0x00, - 0x01,0x21,0x01,0x04,0xA5,0x3C,0x22,0x78,0xFB,0x6C,0xE5,0xA5,0x55,0x50,0xA0,0x23, - 0x0B,0x50,0x54,0x00,0x02,0x00,0xD1,0xC0,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01, - 0x01,0x01,0x01,0x01,0x01,0x01,0x58,0xE3,0x00,0xA0,0xA0,0xA0,0x29,0x50,0x30,0x20, - 0x35,0x00,0x55,0x50,0x21,0x00,0x00,0x1A,0x00,0x00,0x00,0xFF,0x00,0x4C,0x6F,0x6F, - 0x6B,0x69,0x6E,0x67,0x47,0x6C,0x61,0x73,0x73,0x0A,0x00,0x00,0x00,0xFC,0x00,0x4C, - 0x6F,0x6F,0x6B,0x69,0x6E,0x67,0x20,0x47,0x6C,0x61,0x73,0x73,0x00,0x00,0x00,0xFD, - 0x00,0x28,0x9B,0xFA,0xFA,0x40,0x01,0x0A,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x4A -}; - const DWORD DefaultPreferredDisplayMode = 19; void CIndirectDeviceContext::PopulateDefaultModes(bool setDefaultMode) @@ -175,18 +163,10 @@ void CIndirectDeviceContext::FinishInit(UINT connectorIndex) info.MonitorType = DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI; info.ConnectorIndex = connectorIndex; - info.MonitorDescription.Size = sizeof(info.MonitorDescription); - info.MonitorDescription.Type = IDDCX_MONITOR_DESCRIPTION_TYPE_EDID; - if (connectorIndex >= 1) - { - info.MonitorDescription.DataSize = 0; - info.MonitorDescription.pData = nullptr; - } - else - { - info.MonitorDescription.DataSize = sizeof(EDID); - info.MonitorDescription.pData = const_cast(EDID); - } + info.MonitorDescription.Size = sizeof(info.MonitorDescription); + info.MonitorDescription.Type = IDDCX_MONITOR_DESCRIPTION_TYPE_EDID; + info.MonitorDescription.DataSize = 0; + info.MonitorDescription.pData = nullptr; CoCreateGuid(&info.MonitorContainerId);