Skip to content

Commit

Permalink
Merge branch 'for-2.6.29' into for-2.6.30
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Feb 2, 2009
2 parents 8f00806 + 21dff43 commit e50a7ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 e50a7ea

Please sign in to comment.