]> Pileus Git - ~andy/linux/commitdiff
ALSA: HDA: Fix sound resume hang
authorDaniel J Blueman <daniel@quora.org>
Tue, 18 Dec 2012 15:59:33 +0000 (23:59 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Dec 2012 16:07:11 +0000 (17:07 +0100)
Resuming a switcheroo'd HDA controller hangs since the completion
is one-shot (thus works the first time). Fix by using completions
that explictly need rearming, so remain fired before.

Signed-off-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c

index 0f3d3db0df71a3110d48643ab0dd214ca0897cd3..cca87277baf088b273279c6b1621aa52a981a47e 100644 (file)
@@ -2876,7 +2876,7 @@ static int azx_free(struct azx *chip)
        azx_notifier_unregister(chip);
 
        chip->init_failed = 1; /* to be sure */
-       complete(&chip->probe_wait);
+       complete_all(&chip->probe_wait);
 
        if (use_vga_switcheroo(chip)) {
                if (chip->disabled && chip->bus)
@@ -3504,7 +3504,7 @@ static int azx_probe(struct pci_dev *pci,
                pm_runtime_put_noidle(&pci->dev);
 
        dev++;
-       complete(&chip->probe_wait);
+       complete_all(&chip->probe_wait);
        return 0;
 
 out_free: