Skip to content

Commit 9fcb170

Browse files
committed
drm/i915/dp: there is no audio on port A
The eDP port A register on PCH split platforms has a slightly different register layout from the other ports, with bit 6 being either alternate scrambler reset or reserved, depending on the generation. Our misinterpretation of the bit as audio has lead to warning. Fix this by not enabling audio on port A, since none of our platforms support audio on port A anyway. v2: DDI doesn't have audio on port A either (Sivakumar Thulasimani) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89958 Reported-and-tested-by: Chris Bainbridge <chris.bainbridge@gmail.com> Cc: stable@vger.kernel.org Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 3916e3f commit 9fcb170

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/i915/intel_dp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,
13481348

13491349
pipe_config->has_dp_encoder = true;
13501350
pipe_config->has_drrs = false;
1351-
pipe_config->has_audio = intel_dp->has_audio;
1351+
pipe_config->has_audio = intel_dp->has_audio && port != PORT_A;
13521352

13531353
if (is_edp(intel_dp) && intel_connector->panel.fixed_mode) {
13541354
intel_fixed_panel_mode(intel_connector->panel.fixed_mode,
@@ -2211,8 +2211,8 @@ static void intel_dp_get_config(struct intel_encoder *encoder,
22112211
int dotclock;
22122212

22132213
tmp = I915_READ(intel_dp->output_reg);
2214-
if (tmp & DP_AUDIO_OUTPUT_ENABLE)
2215-
pipe_config->has_audio = true;
2214+
2215+
pipe_config->has_audio = tmp & DP_AUDIO_OUTPUT_ENABLE && port != PORT_A;
22162216

22172217
if ((port == PORT_A) || !HAS_PCH_CPT(dev)) {
22182218
if (tmp & DP_SYNC_HS_HIGH)

0 commit comments

Comments
 (0)