Skip to content

Commit 987c945

Browse files
committed
drm/i915/dp: Use connector DSC DPCD in intel_dp_supports_fec()
Use the connector's DSC DPCD capabilities in intel_dp_supports_fec(). Reviewed-by: Stanislav Lisovskiy <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f52bbfe commit 987c945

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,10 +1370,11 @@ static bool intel_dp_source_supports_fec(struct intel_dp *intel_dp,
13701370
}
13711371

13721372
static bool intel_dp_supports_fec(struct intel_dp *intel_dp,
1373+
const struct intel_connector *connector,
13731374
const struct intel_crtc_state *pipe_config)
13741375
{
13751376
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);
13771378
}
13781379

13791380
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,
21102111
{
21112112
struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
21122113
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);
21132116
const struct drm_display_mode *adjusted_mode =
21142117
&pipe_config->hw.adjusted_mode;
21152118
int ret;
21162119

21172120
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);
21192122

21202123
if (!intel_dp_supports_dsc(intel_dp, pipe_config))
21212124
return -EINVAL;

0 commit comments

Comments
 (0)