drm/i915: Fix audio power up sequence for gen10+ display
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Thu, 3 Oct 2019 08:55:30 +0000 (11:55 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 4 Oct 2019 12:41:31 +0000 (15:41 +0300)
commit1580d3cdddbba4a5ef78a04a5289e32844e6af24
tree3b162033bc85b170f5717c5ec505f42e0aec73a6
parent81cdeca45a061f0ec9ecbbf7de864e2a57df5ee4
drm/i915: Fix audio power up sequence for gen10+ display

On platfroms with gen10+ display, driver must set the enable bit of
AUDIO_PIN_BUF_CTL register before transactions with the HDA controller
can proceed. Add setting this bit to the audio power up sequence.

Failing to do this resulted in errors during display audio codec probe,
and failures during resume from suspend.

Note: We may also need to disable the bit afterwards, but there are
still unresolved issues with that.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111214
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191003085531.30990-1-kai.vehmanen@linux.intel.com
drivers/gpu/drm/i915/display/intel_audio.c
drivers/gpu/drm/i915/i915_reg.h