@@ -1370,10 +1370,11 @@ static bool intel_dp_source_supports_fec(struct intel_dp *intel_dp,
1370
1370
}
1371
1371
1372
1372
static bool intel_dp_supports_fec (struct intel_dp * intel_dp ,
1373
+ const struct intel_connector * connector ,
1373
1374
const struct intel_crtc_state * pipe_config )
1374
1375
{
1375
1376
return intel_dp_source_supports_fec (intel_dp , pipe_config ) &&
1376
- drm_dp_sink_supports_fec (intel_dp -> fec_capable );
1377
+ drm_dp_sink_supports_fec (connector -> dp . fec_capability );
1377
1378
}
1378
1379
1379
1380
static bool intel_dp_supports_dsc (struct intel_dp * intel_dp ,
@@ -2110,12 +2111,14 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
2110
2111
{
2111
2112
struct intel_digital_port * dig_port = dp_to_dig_port (intel_dp );
2112
2113
struct drm_i915_private * dev_priv = to_i915 (dig_port -> base .base .dev );
2114
+ const struct intel_connector * connector =
2115
+ to_intel_connector (conn_state -> connector );
2113
2116
const struct drm_display_mode * adjusted_mode =
2114
2117
& pipe_config -> hw .adjusted_mode ;
2115
2118
int ret ;
2116
2119
2117
2120
pipe_config -> fec_enable = !intel_dp_is_edp (intel_dp ) &&
2118
- intel_dp_supports_fec (intel_dp , pipe_config );
2121
+ intel_dp_supports_fec (intel_dp , connector , pipe_config );
2119
2122
2120
2123
if (!intel_dp_supports_dsc (intel_dp , pipe_config ))
2121
2124
return - EINVAL ;
0 commit comments