]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[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 21dc6974d6a3922c3d6a94baf5f232e4bf5e8c44..bfbdc3cbd43b5e936c0614c9429d1414e4a4bb56 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;
 }