This commit is contained in:
Martin Rys 2024-10-02 16:53:27 +02:00
parent 2b9f9b9bf6
commit d5105424f5

View File

@ -151,7 +151,7 @@ static void CalculateVideoInfoFrameColorFormat(
}
/*
* GetHDMISupportCap() - find the HDMI capabilities of
* GetHDMISupportCap() - find the HDMI capabilities of
* the gpu and the display device.
*/
@ -1030,22 +1030,10 @@ static NvBool FillELDBuffer(const NVDpyEvoRec *pDpyEvo,
if (status == NVT_STATUS_SUCCESS) {
/*
* NvTiming_GetProductName() returns a nul-terminated string, but the
* string in the EDID is terminated with 0x0A and padded with 0x20.
* Put back these special characters.
* string in the EDID is originally terminated with 0x0A and padded
* with 0x20.
* We removed the special characters to not break the resulting eld.
*/
// NvBool pastTerminator = FALSE;
// NvU32 i;
// for (i = 0; i < NVT_EDID_LDD_PAYLOAD_SIZE; i++) {
// if (pastTerminator) {
// name[i] = 0x20;
// }
// if (name[i] == '\0') {
// name[i] = 0x0A;
// pastTerminator = TRUE;
// }
// }
monitorNameLen = NVT_EDID_LDD_PAYLOAD_SIZE;
pEld->buffer[4] |= NVT_EDID_LDD_PAYLOAD_SIZE;
nvkms_memcpy(&pEld->buffer[20], name,