Skip to contentSkip to conversation

ACPI video: check cap._DDC flag before getting EDID

PATCH Applied Zhang Rui 2 participants 2 messages Dec 6, 2010 ACPI

lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 5/7 ACPI video: check cap._DDC flag before getting EDID

cap._DDC is defined but never used.
Check this flag now and don't try to get EDID for video output devices with this flag cleared.

---
 drivers/acpi/video.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/acpi/video.c +3 -0
Index: linux-2.6/drivers/acpi/video.c
===================================================================
@@ -1275,6 +1275,9 @@ int acpi_video_get_edid(struct acpi_devi
 		if (!video_device)
 			continue;
 
+		if (!video_device->cap._DDC)
+			continue;
+
 		if (type) {
 			switch (type) {
 			case ACPI_VIDEO_DISPLAY_CRT: