Commit 82ea2225 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Drop useless intel_dp_has_audio() argument



intel_dp_has_audio() has no need for the crtc_state, so don't
pass it in.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230220151731.6852-2-ville.syrjala@linux.intel.com


Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
parent 518b761a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2003,7 +2003,6 @@ intel_dp_drrs_compute_config(struct intel_connector *connector,
}

static bool intel_dp_has_audio(struct intel_encoder *encoder,
			       const struct intel_crtc_state *crtc_state,
			       const struct drm_connector_state *conn_state)
{
	struct drm_i915_private *i915 = to_i915(encoder->base.dev);
@@ -2069,7 +2068,7 @@ intel_dp_audio_compute_config(struct intel_encoder *encoder,
	struct drm_connector *connector = conn_state->connector;

	pipe_config->sdp_split_enable =
		intel_dp_has_audio(encoder, pipe_config, conn_state) &&
		intel_dp_has_audio(encoder, conn_state) &&
		intel_dp_is_uhbr(pipe_config);

	drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] SDP split enable: %s\n",
@@ -2093,7 +2092,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,
		pipe_config->has_pch_encoder = true;

	pipe_config->has_audio =
		intel_dp_has_audio(encoder, pipe_config, conn_state) &&
		intel_dp_has_audio(encoder, conn_state) &&
		intel_audio_compute_config(encoder, pipe_config, conn_state);

	fixed_mode = intel_panel_fixed_mode(connector, adjusted_mode);