Lines 753-760
static void intel_setup_cadls(struct drm_i915_private *dev_priv)
Link Here
|
753 |
* not always correct as display outputs may exist, but not active. This |
753 |
* not always correct as display outputs may exist, but not active. This |
754 |
* initialization is necessary for some Clevo laptops that check this |
754 |
* initialization is necessary for some Clevo laptops that check this |
755 |
* field before processing the brightness and display switching hotkeys. |
755 |
* field before processing the brightness and display switching hotkeys. |
|
|
756 |
* Put internal panels in front of the list to ensure they're not left |
757 |
* out. |
756 |
*/ |
758 |
*/ |
757 |
for_each_intel_connector(&dev_priv->drm, connector) { |
759 |
for_each_intel_connector(&dev_priv->drm, connector) { |
|
|
760 |
if ((connector->acpi_device_id & ACPI_DISPLAY_TYPE_MASK) != |
761 |
ACPI_DISPLAY_TYPE_INTERNAL_DIGITAL) |
762 |
continue; |
763 |
|
764 |
if (i >= ARRAY_SIZE(opregion->acpi->cadl)) |
765 |
break; |
766 |
opregion->acpi->cadl[i++] = connector->acpi_device_id; |
767 |
} |
768 |
|
769 |
for_each_intel_connector(&dev_priv->drm, connector) { |
770 |
if ((connector->acpi_device_id & ACPI_DISPLAY_TYPE_MASK) == |
771 |
ACPI_DISPLAY_TYPE_INTERNAL_DIGITAL) |
772 |
continue; |
773 |
|
758 |
if (i >= ARRAY_SIZE(opregion->acpi->cadl)) |
774 |
if (i >= ARRAY_SIZE(opregion->acpi->cadl)) |
759 |
break; |
775 |
break; |
760 |
opregion->acpi->cadl[i++] = connector->acpi_device_id; |
776 |
opregion->acpi->cadl[i++] = connector->acpi_device_id; |
761 |
- |
|
|