@@ -2631,9 +2631,12 @@ intel_dp_audio_compute_config(struct intel_encoder *encoder,
2631
2631
struct drm_i915_private * i915 = to_i915 (encoder -> base .dev );
2632
2632
struct drm_connector * connector = conn_state -> connector ;
2633
2633
2634
- pipe_config -> sdp_split_enable =
2634
+ pipe_config -> has_audio =
2635
2635
intel_dp_has_audio (encoder , conn_state ) &&
2636
- intel_dp_is_uhbr (pipe_config );
2636
+ intel_audio_compute_config (encoder , pipe_config , conn_state );
2637
+
2638
+ pipe_config -> sdp_split_enable = pipe_config -> has_audio &&
2639
+ intel_dp_is_uhbr (pipe_config );
2637
2640
2638
2641
drm_dbg_kms (& i915 -> drm , "[CONNECTOR:%d:%s] SDP split enable: %s\n" ,
2639
2642
connector -> base .id , connector -> name ,
@@ -2655,10 +2658,6 @@ intel_dp_compute_config(struct intel_encoder *encoder,
2655
2658
if (HAS_PCH_SPLIT (dev_priv ) && !HAS_DDI (dev_priv ) && encoder -> port != PORT_A )
2656
2659
pipe_config -> has_pch_encoder = true;
2657
2660
2658
- pipe_config -> has_audio =
2659
- intel_dp_has_audio (encoder , conn_state ) &&
2660
- intel_audio_compute_config (encoder , pipe_config , conn_state );
2661
-
2662
2661
fixed_mode = intel_panel_fixed_mode (connector , adjusted_mode );
2663
2662
if (intel_dp_is_edp (intel_dp ) && fixed_mode ) {
2664
2663
ret = intel_panel_compute_config (connector , adjusted_mode );
0 commit comments