Commit 53e1719f3da0f095b8db1461bd12dd79f3246b84

Authored by Ondrej Zary
Committed by Takashi Iwai
1 parent 535b6c51fe

ALSA: snd-als100: fix suspend/resume

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -233,7 +233,7 @@
233 233 irq[dev], dma8[dev], dma16[dev]);
234 234 }
235 235  
236   - if ((error = snd_sb16dsp_pcm(chip, 0, NULL)) < 0) {
  236 + if ((error = snd_sb16dsp_pcm(chip, 0, &chip->pcm)) < 0) {
237 237 snd_card_free(card);
238 238 return error;
239 239 }