OSDN Git Service

drm/dp_mst: Add DSC enablement helpers to DRM
authorMikita Lipski <mikita.lipski@amd.com>
Mon, 28 Oct 2019 21:33:32 +0000 (17:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jan 2020 23:07:47 +0000 (18:07 -0500)
commit8afb7e6afadb36b160143794c1d2fdfbde189750
tree8d9d34fc2e8e7f30502be6473634cd77b913fcdd
parent1c6c1cb5afc77cc8afbe563937c3bd1a41172459
drm/dp_mst: Add DSC enablement helpers to DRM

Adding a helper function to be called by
drivers outside of DRM to enable DSC on
the MST ports.

Function is called to recalculate VCPI allocation
if DSC is enabled and raise the DSC flag to enable.
In case of disabling DSC the flag is set to false
and recalculation of VCPI slots is expected to be done
in encoder's atomic_check.

v2: squash separate functions into one and call it per
port
v3: Fix comment typos

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_dp_mst_topology.c
include/drm/drm_dp_mst_helper.h