Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/privacy-screen: Use connector name in lookup
ATM the drm privacy-screen code is not using connector names to lookup drm privacy-screen providers, drm_privacy_screen_get() does support this, but before this change the con_id is set to NULL everywhere which is treated as a wildcard. There are some worries that we may see devices with 2 displays with a privacy-screen, be it 2 internal displays or 1 internal + 1 external. All laptop-models which currently are supported by the drm_privacy_screen code use an eDP display connected to eDP-1. This commits enables the use of the con_id parameter, hardcoding this to "eDP-1" in the lookup tables in drivers/gpu/drm/drm_privacy_screen_x86.c and adjusting the i915 driver to match. Using the con_id parameter paves the way for potentially having another display (attached to a different connector) which also has a builtin privacy-screen. This was tested by Hans de Goede on a ThinkPad and by Rajat Jain on an Intel Chromebook (both with builtin privacy-screens). Cc: Sean Paul <seanpaul@chromium.org> Cc: Rajat Jain <rajatja@google.com> Tested-by: Rajat Jain <rajatja@google.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
- Loading branch information