|
@@ -624,13 +624,14 @@ void intel_audio_codec_enable(struct intel_encoder *intel_encoder,
|
|
|
dev_priv->av_enc_map[pipe] = intel_encoder;
|
|
|
mutex_unlock(&dev_priv->av_mutex);
|
|
|
|
|
|
- /* audio drivers expect pipe = -1 to indicate Non-MST cases */
|
|
|
- if (intel_encoder->type != INTEL_OUTPUT_DP_MST)
|
|
|
- pipe = -1;
|
|
|
-
|
|
|
- if (acomp && acomp->audio_ops && acomp->audio_ops->pin_eld_notify)
|
|
|
+ if (acomp && acomp->audio_ops && acomp->audio_ops->pin_eld_notify) {
|
|
|
+ /* audio drivers expect pipe = -1 to indicate Non-MST cases */
|
|
|
+ if (intel_encoder->type != INTEL_OUTPUT_DP_MST)
|
|
|
+ pipe = -1;
|
|
|
acomp->audio_ops->pin_eld_notify(acomp->audio_ops->audio_ptr,
|
|
|
(int) port, (int) pipe);
|
|
|
+ }
|
|
|
+
|
|
|
switch (intel_encoder->type) {
|
|
|
case INTEL_OUTPUT_HDMI:
|
|
|
intel_lpe_audio_notify(dev_priv, connector->eld, port,
|
|
@@ -671,13 +672,13 @@ void intel_audio_codec_disable(struct intel_encoder *intel_encoder)
|
|
|
dev_priv->av_enc_map[pipe] = NULL;
|
|
|
mutex_unlock(&dev_priv->av_mutex);
|
|
|
|
|
|
- /* audio drivers expect pipe = -1 to indicate Non-MST cases */
|
|
|
- if (intel_encoder->type != INTEL_OUTPUT_DP_MST)
|
|
|
- pipe = -1;
|
|
|
-
|
|
|
- if (acomp && acomp->audio_ops && acomp->audio_ops->pin_eld_notify)
|
|
|
+ if (acomp && acomp->audio_ops && acomp->audio_ops->pin_eld_notify) {
|
|
|
+ /* audio drivers expect pipe = -1 to indicate Non-MST cases */
|
|
|
+ if (intel_encoder->type != INTEL_OUTPUT_DP_MST)
|
|
|
+ pipe = -1;
|
|
|
acomp->audio_ops->pin_eld_notify(acomp->audio_ops->audio_ptr,
|
|
|
(int) port, (int) pipe);
|
|
|
+ }
|
|
|
|
|
|
intel_lpe_audio_notify(dev_priv, NULL, port, 0, false, 0);
|
|
|
}
|