Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132817
b: refs/heads/master
c: e50a7ea
h: refs/heads/master
i:
  132815: 5ae5b46
v: v3
  • Loading branch information
Mark Brown committed Feb 2, 2009
1 parent 27e89bc commit 006fdcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f008062943c8565e855dda8a6681f641d7e71f9
refs/heads/master: e50a7ea0eba4f336b78b737e5ce48fba691c4919
5 changes: 3 additions & 2 deletions trunk/sound/soc/omap/omap-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ static int omap_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
{
struct snd_pcm_runtime *runtime = substream->runtime;
struct omap_runtime_data *prtd = runtime->private_data;
unsigned long flags;
int ret = 0;

spin_lock_irq(&prtd->lock);
spin_lock_irqsave(&prtd->lock, flags);
switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
case SNDRV_PCM_TRIGGER_RESUME:
Expand All @@ -195,7 +196,7 @@ static int omap_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
default:
ret = -EINVAL;
}
spin_unlock_irq(&prtd->lock);
spin_unlock_irqrestore(&prtd->lock, flags);

return ret;
}
Expand Down

0 comments on commit 006fdcd

Please sign in to comment.