ALSA: hda - Fix resume from StR of HP 2510p with docking-station
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Apr 2010 16:11:29 +0000 (18:11 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Apr 2010 16:11:29 +0000 (18:11 +0200)
commitb7d2526f5c20385894a5e57b1a4292f5a1741f1b
tree79d9414674850e05d851871e95e626986399267c
parent8815cd030fdd73932a791d1f06194c8db807cde7
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
ea52bf260ecbb175339af3178c15788df21b7516
    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: Frans Pop <elendil@planet.nl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_analog.c