]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix recursive suspend/resume call
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Nov 2012 13:14:58 +0000 (14:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Nov 2012 13:14:58 +0000 (14:14 +0100)
commit862e5a81f9a04060748c8ec285152b7d31c10f66
tree2f18bbd11a8811729e039ab1cb72cdc21f74254f
parent3980748fcc3294964f0d5ea8e2163f429cd1caf1
ALSA: hda - Fix recursive suspend/resume call

When the bus reset is performed during the suspend/resume (including
the power-saving too), it calls snd_hda_suspend() and
snd_hda_resume() again, and deadlocks eventually.

For avoiding the recursive call, add a new flag indicating that the PM
is being performed, and don't go to the bus reset mode when it's on.

Reported-and-tested-by: Julian Wollrath <jwollrath@web.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h