drm/amd/display: handle active dongle port type is DP++ or DP case
authorDale Zhao <dale.zhao@amd.com>
Wed, 10 Jul 2019 09:36:53 +0000 (17:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:27:27 +0000 (14:27 -0500)
commit7a83645ac0cc2258de101a6a491d31499eb27cc5
tree777b8fe2e7ffde88b91725345ff71650967a4d4b
parent21ffcc94d5b3dc024fedac700f1e7f9dacf4ab4f
drm/amd/display: handle active dongle port type is DP++ or DP case

[Why]:
Some active dongles have DP++ port and DP port at the same time. Current
code doesn't cover DP++ case and processes as default DVI case, in which
audio is disabled. Because of dual mode, DP case is also treat as DVI case
for the other port.

[How]:
According DP 1.4 spec, add DP++ procedure similar with HDMI case. Also
add None dongle type for DP case.

Signed-off-by: Dale Zhao <dale.zhao@amd.com>
Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/include/dpcd_defs.h