diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 8891f29a8c7f..48da4a969a0a 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1886,6 +1886,9 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, | |||
1886 | int pipe_bpp; | 1886 | int pipe_bpp; |
1887 | int ret; | 1887 | int ret; |
1888 | 1888 | ||
1889 | pipe_config->fec_enable = !intel_dp_is_edp(intel_dp) && | ||
1890 | intel_dp_supports_fec(intel_dp, pipe_config); | ||
1891 | |||
1889 | if (!intel_dp_supports_dsc(intel_dp, pipe_config)) | 1892 | if (!intel_dp_supports_dsc(intel_dp, pipe_config)) |
1890 | return -EINVAL; | 1893 | return -EINVAL; |
1891 | 1894 | ||
@@ -2116,9 +2119,6 @@ intel_dp_compute_config(struct intel_encoder *encoder, | |||
2116 | if (adjusted_mode->flags & DRM_MODE_FLAG_DBLCLK) | 2119 | if (adjusted_mode->flags & DRM_MODE_FLAG_DBLCLK) |
2117 | return -EINVAL; | 2120 | return -EINVAL; |
2118 | 2121 | ||
2119 | pipe_config->fec_enable = !intel_dp_is_edp(intel_dp) && | ||
2120 | intel_dp_supports_fec(intel_dp, pipe_config); | ||
2121 | |||
2122 | ret = intel_dp_compute_link_config(encoder, pipe_config, conn_state); | 2122 | ret = intel_dp_compute_link_config(encoder, pipe_config, conn_state); |
2123 | if (ret < 0) | 2123 | if (ret < 0) |
2124 | return ret; | 2124 | return ret; |