]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ALSA: snd-als100: fix suspend/resume
authorOndrej Zary <linux@rainbow-software.org>
Mon, 20 Aug 2012 19:50:13 +0000 (21:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Aug 2012 05:29:40 +0000 (07:29 +0200)
snd_card_als100_probe() does not set pcm field in struct snd_sb.
As a result, PCM is not suspended and applications don't know that they need
to resume the playback.

Tested with Labway A381-F20 card (ALS120).

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/als100.c

index 2d67c78c9f4bc16e01bf7d869d2163f8122f5616..f7cdaf51512d05d26ca93baf8ce2627375a8af43 100644 (file)
@@ -233,7 +233,7 @@ static int __devinit snd_card_als100_probe(int dev,
                        irq[dev], dma8[dev], dma16[dev]);
        }
 
-       if ((error = snd_sb16dsp_pcm(chip, 0, NULL)) < 0) {
+       if ((error = snd_sb16dsp_pcm(chip, 0, &chip->pcm)) < 0) {
                snd_card_free(card);
                return error;
        }