Kai Vehmanen 858e0ad930 ALSA: hda/hdmi: always check pin power status in i915 pin fixup
When system is suspended with active audio playback to HDMI/DP, two
alternative sequences can happen at resume:
  a) monitor is detected first and ALSA prepare follows normal
     stream setup sequence, or
  b) ALSA prepare is called first, but monitor is not yet detected,
     so PCM is restarted without a pin,

In case of (b), on i915 systems, haswell_verify_D0() is not called at
resume and the pin power state may be incorrect. Result is lack of audio
after resume with no error reported back to user-space.

Fix the problem by always verifying converter and pin state in the
i915_pin_cvt_fixup().

BugLink: https://github.com/thesofproject/linux/issues/2388
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200826170306.701566-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-08-26 20:51:29 +02:00
..
2020-01-05 16:14:47 +01:00
2020-01-05 16:14:30 +01:00
2020-07-09 13:01:29 +02:00
2020-07-09 13:01:29 +02:00
2020-01-05 16:14:55 +01:00
2020-01-05 16:15:10 +01:00
2020-01-05 16:15:11 +01:00
2020-07-07 12:12:21 +02:00
2019-10-07 03:53:03 +02:00
2020-01-28 16:26:57 -08:00
2020-01-28 16:26:57 -08:00
2020-01-28 16:26:57 -08:00