[i-g-t V2 4/5] lib/igt_kms: Force "edid_override" to NULL on exit
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Tue Sep 24 14:26:37 UTC 2024
Force "edid_override" to NULL on each connector on exit.
V2: - Ignore if connector config not found
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
lib/igt_kms.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index d7f6e475e..c1d80dbb8 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -3410,8 +3410,12 @@ void igt_display_fini(igt_display_t *display)
for (i = 0; i < display->n_pipes; i++)
igt_pipe_fini(&display->pipes[i]);
- for (i = 0; i < display->n_outputs; i++)
+ for (i = 0; i < display->n_outputs; i++) {
+ if ((&display->outputs[i])->config.connector)
+ kmstest_force_edid(display->drm_fd, (&display->outputs[i])->config.connector, NULL);
igt_output_fini(&display->outputs[i]);
+ }
+
free(display->outputs);
display->outputs = NULL;
free(display->pipes);
--
2.43.0
More information about the igt-dev
mailing list