diff options
author | David Henningsson <david.henningsson@canonical.com> | 2015-07-16 10:39:24 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-07-20 09:33:24 +0200 |
commit | 033ea349a7cd1aa15357cd6575de35188fc85b9a (patch) | |
tree | 2db531a3fccf7e7ea38c0638af176964c4e9a5d3 /sound/hda | |
parent | 0420694dddeb9e269a1ab2129a0119a5cea294a4 (diff) | |
download | linux-stable-033ea349a7cd1aa15357cd6575de35188fc85b9a.tar.gz linux-stable-033ea349a7cd1aa15357cd6575de35188fc85b9a.tar.bz2 linux-stable-033ea349a7cd1aa15357cd6575de35188fc85b9a.zip |
ALSA: hda - Fix Skylake codec timeout
When the controller is powered up but the HDMI codec is powered down
on Skylake, the power well is turned off. When the codec is then
powered up again, we need to poke the codec a little extra to make
sure it wakes up. Otherwise we'll get sad "no response from codec"
messages and broken audio.
This also changes azx_runtime_resume to actually call
snd_hdac_set_codec_wakeup for Skylake (before STATETS read).
(Otherwise it would only have been called for Haswell and Broadwell,
which both do not need it, so this probably was not the author's
intention.)
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Reviewed-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
-rw-r--r-- | sound/hda/hdac_i915.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/hda/hdac_i915.c b/sound/hda/hdac_i915.c index 442500e06b7c..5676b849379d 100644 --- a/sound/hda/hdac_i915.c +++ b/sound/hda/hdac_i915.c @@ -56,8 +56,11 @@ int snd_hdac_display_power(struct hdac_bus *bus, bool enable) enable ? "enable" : "disable"); if (enable) { - if (!bus->i915_power_refcount++) + if (!bus->i915_power_refcount++) { acomp->ops->get_power(acomp->dev); + snd_hdac_set_codec_wakeup(bus, true); + snd_hdac_set_codec_wakeup(bus, false); + } } else { WARN_ON(!bus->i915_power_refcount); if (!--bus->i915_power_refcount) |