From: Jani Nikula <jani.nikula@intel.com>
To: Vinod Govindapillai <vinod.govindapillai@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v4 2/4] drm/i915/display: combine DP audio compute config steps
Date: Tue, 22 Aug 2023 16:41:24 +0300 [thread overview]
Message-ID: <87ttsr5h4r.fsf@intel.com> (raw)
In-Reply-To: <20230818111950.128992-3-vinod.govindapillai@intel.com>
On Fri, 18 Aug 2023, Vinod Govindapillai <vinod.govindapillai@intel.com> wrote:
> Combine all DP audio configs into a single function
>
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 11 +++++------
> 1 file changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 964bf0551bdc..67c06bbc1760 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2240,9 +2240,12 @@ intel_dp_audio_compute_config(struct intel_encoder *encoder,
> struct drm_i915_private *i915 = to_i915(encoder->base.dev);
> struct drm_connector *connector = conn_state->connector;
>
> - pipe_config->sdp_split_enable =
> + pipe_config->has_audio =
> intel_dp_has_audio(encoder, conn_state) &&
> - intel_dp_is_uhbr(pipe_config);
> + intel_audio_compute_config(encoder, pipe_config, conn_state);
> +
> + pipe_config->sdp_split_enable = pipe_config->has_audio &&
> + intel_dp_is_uhbr(pipe_config);
>
> drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] SDP split enable: %s\n",
> connector->base.id, connector->name,
> @@ -2264,10 +2267,6 @@ intel_dp_compute_config(struct intel_encoder *encoder,
> if (HAS_PCH_SPLIT(dev_priv) && !HAS_DDI(dev_priv) && encoder->port != PORT_A)
> pipe_config->has_pch_encoder = true;
>
> - pipe_config->has_audio =
> - 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);
> if (intel_dp_is_edp(intel_dp) && fixed_mode) {
> ret = intel_panel_compute_config(connector, adjusted_mode);
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-08-22 13:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 11:19 [Intel-gfx] [PATCH v4 0/4] SDP split for DP-MST Vinod Govindapillai
2023-08-18 11:19 ` [Intel-gfx] [PATCH v4 1/4] drm/i915/display: remove redundant parameter from sdp split update Vinod Govindapillai
2023-08-18 11:19 ` [Intel-gfx] [PATCH v4 2/4] drm/i915/display: combine DP audio compute config steps Vinod Govindapillai
2023-08-22 13:41 ` Jani Nikula [this message]
2023-08-22 14:53 ` Jani Nikula
2023-08-18 11:19 ` [Intel-gfx] [PATCH v4 3/4] drm/i915/display: update intel_dp_has_audio to support MST Vinod Govindapillai
2023-08-22 12:57 ` Jani Nikula
2023-08-22 20:50 ` Govindapillai, Vinod
2023-08-18 11:19 ` [Intel-gfx] [PATCH v4 4/4] drm/i915/display: configure SDP split for DP-MST Vinod Govindapillai
2023-08-18 12:41 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for SDP split for DP-MST (rev2) Patchwork
2023-08-18 12:41 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-08-18 13:02 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2023-08-21 9:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-08-21 11:50 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttsr5h4r.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=vinod.govindapillai@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox