File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
drivers/gpu/drm/msm/disp/dpu1 Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -94,17 +94,21 @@ static void drm_mode_to_intf_timing_params(
94
94
timing -> vsync_polarity = 0 ;
95
95
}
96
96
97
- /* for DP/EDP, Shift timings to align it to bottom right */
98
- if (phys_enc -> hw_intf -> cap -> type == INTF_DP ) {
97
+ timing -> wide_bus_en = dpu_encoder_is_widebus_enabled (phys_enc -> parent );
98
+ timing -> compression_en = dpu_encoder_is_dsc_enabled (phys_enc -> parent );
99
+
100
+ /*
101
+ * For DP/EDP, Shift timings to align it to bottom right.
102
+ * wide_bus_en is set for everything excluding SDM845 &
103
+ * porch changes cause DisplayPort failure and HDMI tearing.
104
+ */
105
+ if (phys_enc -> hw_intf -> cap -> type == INTF_DP && timing -> wide_bus_en ) {
99
106
timing -> h_back_porch += timing -> h_front_porch ;
100
107
timing -> h_front_porch = 0 ;
101
108
timing -> v_back_porch += timing -> v_front_porch ;
102
109
timing -> v_front_porch = 0 ;
103
110
}
104
111
105
- timing -> wide_bus_en = dpu_encoder_is_widebus_enabled (phys_enc -> parent );
106
- timing -> compression_en = dpu_encoder_is_dsc_enabled (phys_enc -> parent );
107
-
108
112
/*
109
113
* for DP, divide the horizonal parameters by 2 when
110
114
* widebus is enabled
You can’t perform that action at this time.
0 commit comments