search for: search_pci_class_for_acpi_ddc

Displaying 2 results from an estimated 2 matches for "search_pci_class_for_acpi_ddc".

2020 Jul 27
0
[PATCH 1/4] drm: retrieve EDID via ACPI _DDC method
...mp;adr); + if (ACPI_FAILURE(status)) + continue; + + for (i = 0; i < num_dod_entries; i++) { + if (adr == dod_entries[i]) { + ret = do_acpi_ddc(child->handle); + + if (ret != NULL) + goto done; + } + } + } +done: + kfree(dod_entries); + return ret; +} + +static struct edid *search_pci_class_for_acpi_ddc(unsigned int class) +{ + struct pci_dev *dev = NULL; + + while ((dev = pci_get_class(class << 8, dev))) { + struct edid *edid = first_edid_from_acpi_ddc(dev); + + if (edid) + return edid; + } + + return NULL; +} +#endif + +/** + * drm_get_edid_acpi() - retrieve an EDID via the ACPI _DDC m...
2020 Jul 27
6
[PATCH 0/4] drm: add support for retrieving EDID via ACPI _DDC
Some notebook systems provide the EDID for the internal panel via the _DDC method in ACPI, instead of or in addition to providing the EDID via DDC on LVDS/eDP. Add a DRM helper to search for an ACP _DDC method under the ACPI namespace for each VGA/3D controller, and return the first EDID successfully retrieved via _DDC. Update the i915, nouveau, and radeon DRM-KMS drivers to fall back to