From: Ondrej Zary Date: Mon, 20 Aug 2012 19:50:13 +0000 (+0200) Subject: ALSA: snd-als100: fix suspend/resume X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=53e1719f3da0f095b8db1461bd12dd79f3246b84;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/isa/als100.c b/sound/isa/als100.c index 2d67c78c9f4b..f7cdaf51512d 100644 --- a/sound/isa/als100.c +++ b/sound/isa/als100.c @@ -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; }