diff options
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 8ee78dbd4c60..6858e88c7326 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -2480,6 +2480,11 @@ static int patch_generic_hdmi(struct hda_codec *codec) | |||
2480 | if (codec_has_acomp(codec)) { | 2480 | if (codec_has_acomp(codec)) { |
2481 | codec->depop_delay = 0; | 2481 | codec->depop_delay = 0; |
2482 | spec->i915_audio_ops.audio_ptr = codec; | 2482 | spec->i915_audio_ops.audio_ptr = codec; |
2483 | /* intel_audio_codec_enable() or intel_audio_codec_disable() | ||
2484 | * will call pin_eld_notify with using audio_ptr pointer | ||
2485 | * We need make sure audio_ptr is really setup | ||
2486 | */ | ||
2487 | wmb(); | ||
2483 | spec->i915_audio_ops.pin_eld_notify = intel_pin_eld_notify; | 2488 | spec->i915_audio_ops.pin_eld_notify = intel_pin_eld_notify; |
2484 | snd_hdac_i915_register_notifier(&spec->i915_audio_ops); | 2489 | snd_hdac_i915_register_notifier(&spec->i915_audio_ops); |
2485 | } | 2490 | } |