[ALSA] Fix ASoC s3c24xx-pcm spinlock bug
authorZoltan Devai <zdevai@gmail.com>
Tue, 22 May 2007 14:17:05 +0000 (16:17 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 31 May 2007 07:06:03 +0000 (09:06 +0200)
This should fix a spinlock lockup bug on the s3c24xx arch.
From: Zoltan Devai <zdevai@gmail.com>

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

sound/soc/s3c24xx/s3c24xx-pcm.c

index 21dc697..bfbdc3c 100644 (file)
@@ -337,6 +337,8 @@ static int s3c24xx_pcm_open(struct snd_pcm_substream *substream)
        if (prtd == NULL)
                return -ENOMEM;
 
+       spin_lock_init(&prtd->lock);
+
        runtime->private_data = prtd;
        return 0;
 }