Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82069552 authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

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.

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 677bd810
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1275,6 +1275,9 @@ int acpi_video_get_edid(struct acpi_device *device, int type, int device_id,
		if (!video_device)
			continue;

		if (!video_device->cap._DDC)
			continue;

		if (type) {
			switch (type) {
			case ACPI_VIDEO_DISPLAY_CRT: