summaryrefslogtreecommitdiffstats
path: root/sound/soc/s3c24xx/s3c24xx-pcm.c
diff options
context:
space:
mode:
authorZoltan Devai <zdevai@gmail.com>2007-05-22 16:17:05 +0200
committerJaroslav Kysela <perex@suse.cz>2007-05-31 09:06:03 +0200
commitc72816b79e9735284b3c0f6b3a4aa4e1c0537c0d (patch)
treef4117d27c980eeb7ac21f8bb7d541d9c3d7793ae /sound/soc/s3c24xx/s3c24xx-pcm.c
parent36c3b4e60a83187e82bc9bcde854e765bde3d670 (diff)
downloadlinux-c72816b79e9735284b3c0f6b3a4aa4e1c0537c0d.tar.gz
linux-c72816b79e9735284b3c0f6b3a4aa4e1c0537c0d.tar.bz2
linux-c72816b79e9735284b3c0f6b3a4aa4e1c0537c0d.zip
[ALSA] Fix ASoC s3c24xx-pcm spinlock bug
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>
Diffstat (limited to 'sound/soc/s3c24xx/s3c24xx-pcm.c')
-rw-r--r--sound/soc/s3c24xx/s3c24xx-pcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/s3c24xx/s3c24xx-pcm.c b/sound/soc/s3c24xx/s3c24xx-pcm.c
index 21dc6974d6a3..bfbdc3cbd43b 100644
--- a/sound/soc/s3c24xx/s3c24xx-pcm.c
+++ b/sound/soc/s3c24xx/s3c24xx-pcm.c
@@ -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;
}