mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2025-03-14 09:29:24 +01:00
Clean up
This commit is contained in:
parent
2b9f9b9bf6
commit
d5105424f5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user