Skip to content

Commit

Permalink
[ALSA] Fix ASoC s3c24xx-pcm spinlock bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zoltan Devai authored and Jaroslav Kysela committed May 31, 2007
1 parent 36c3b4e commit c72816b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/s3c24xx/s3c24xx-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c72816b

Please sign in to comment.