OSDN Git Service

drm/amd/display: update hdcp display using correct CP type.
authorDingchen (David) Zhang <dingchen.zhang@amd.com>
Fri, 8 Jan 2021 22:32:47 +0000 (17:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:37:28 +0000 (21:37 -0400)
commit26739690354b699fbbe5f88dba825fc286179123
treec1649c863a48a059b1ceef5a6a103108d8594cd9
parent7cd69b95a84bc9226d10042f3216fa3e78d060f8
drm/amd/display: update hdcp display using correct CP type.

[why]
currently we enforce to update hdcp display using TYPE0, but there
is case that connector CP type prop be TYPE1 instead of type0.

[how]
using the drm prop of CP type of the connector as input argument.

Signed-off-by: Dingchen (David) Zhang <dingchen.zhang@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c