]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Revert "drm/amd/display: To modify the condition in indicating branch device"
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 01:19:55 +0000 (21:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:36:06 +0000 (23:36 -0400)
This breaks HDMI audio.

This reverts commit 9413b23fadad3861f5afd626ac44ef83ad8068ab.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1536
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Martin Tsai <martin.tsai@amd.com>
Cc: Bindu Ramamurthy <bindu.r@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 3ff3d9e9098370a198dbe983c8a6c597441b87d0..9024a855b706884628239d2fe72bce29827a1ece 100644 (file)
@@ -3276,7 +3276,13 @@ static void get_active_converter_info(
        }
 
        /* DPCD 0x5 bit 0 = 1, it indicate it's branch device */
-       link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+       if (ds_port.fields.PORT_TYPE == DOWNSTREAM_DP) {
+               link->dpcd_caps.is_branch_dev = false;
+       }
+
+       else {
+               link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+       }
 
        switch (ds_port.fields.PORT_TYPE) {
        case DOWNSTREAM_VGA: