瀏覽代碼

[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>
Zoltan Devai 18 年之前
父節點
當前提交
c72816b79e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      sound/soc/s3c24xx/s3c24xx-pcm.c

+ 2 - 0
sound/soc/s3c24xx/s3c24xx-pcm.c

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