Commit b7d2526f authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix resume from StR of HP 2510p with docking-station

When HP laptop with AD1981 codec is suspended and the docking-station
is connected before the resume, the outputs get confused, and wrongly
routed still to the speaker.  This is because of a change in 2.6.34-rc1
ea52bf26
    ALSA: hda: Add powerdown for Analog Devices HDA codecs

The problem was the added resume callback that doesn't consider the
modified init hook.  The fix is simply remove the resume callback here
and make the resume normally.  This doesn't change any behavior intended
in the commit above (for shutting down the sound at suspend) but only
fixes the resume.
Reported-and-tested-by: default avatarFrans Pop <elendil@planet.nl>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8815cd03
...@@ -519,14 +519,6 @@ static int ad198x_suspend(struct hda_codec *codec, pm_message_t state) ...@@ -519,14 +519,6 @@ static int ad198x_suspend(struct hda_codec *codec, pm_message_t state)
ad198x_power_eapd(codec); ad198x_power_eapd(codec);
return 0; return 0;
} }
static int ad198x_resume(struct hda_codec *codec)
{
ad198x_init(codec);
snd_hda_codec_resume_amp(codec);
snd_hda_codec_resume_cache(codec);
return 0;
}
#endif #endif
static struct hda_codec_ops ad198x_patch_ops = { static struct hda_codec_ops ad198x_patch_ops = {
...@@ -539,7 +531,6 @@ static struct hda_codec_ops ad198x_patch_ops = { ...@@ -539,7 +531,6 @@ static struct hda_codec_ops ad198x_patch_ops = {
#endif #endif
#ifdef SND_HDA_NEEDS_RESUME #ifdef SND_HDA_NEEDS_RESUME
.suspend = ad198x_suspend, .suspend = ad198x_suspend,
.resume = ad198x_resume,
#endif #endif
.reboot_notify = ad198x_shutup, .reboot_notify = ad198x_shutup,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment