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: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230220151731.6852-2-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
This commit is contained in:
Ville Syrjälä 2023-02-20 17:17:31 +02:00
Родитель 518b761a7b
Коммит 82ea22256b
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -2003,7 +2003,6 @@ intel_dp_drrs_compute_config(struct intel_connector *connector,
} }
static bool intel_dp_has_audio(struct intel_encoder *encoder, static bool intel_dp_has_audio(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state,
const struct drm_connector_state *conn_state) const struct drm_connector_state *conn_state)
{ {
struct drm_i915_private *i915 = to_i915(encoder->base.dev); 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; struct drm_connector *connector = conn_state->connector;
pipe_config->sdp_split_enable = 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); intel_dp_is_uhbr(pipe_config);
drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] SDP split enable: %s\n", 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_pch_encoder = true;
pipe_config->has_audio = 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); intel_audio_compute_config(encoder, pipe_config, conn_state);
fixed_mode = intel_panel_fixed_mode(connector, adjusted_mode); fixed_mode = intel_panel_fixed_mode(connector, adjusted_mode);