Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92128
b: refs/heads/master
c: 1bc1f30
h: refs/heads/master
v: v3
  • Loading branch information
Stas Sergeev authored and Takashi Iwai committed Apr 24, 2008
1 parent 1a9eb5f commit e627f8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: bb9f76cd5909b9da6b4d31b55a4086cc35614fe0
refs/heads/master: 1bc1f30565b561bafc51725fce336aec59029437
5 changes: 2 additions & 3 deletions trunk/sound/drivers/pcsp/pcsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,10 @@ static int __devexit pcsp_remove(struct platform_device *dev)

static void pcsp_stop_beep(struct snd_pcsp *chip)
{
unsigned long flags;
spin_lock_irqsave(&chip->substream_lock, flags);
spin_lock_irq(&chip->substream_lock);
if (!chip->playback_substream)
pcspkr_stop_sound();
spin_unlock_irqrestore(&chip->substream_lock, flags);
spin_unlock_irq(&chip->substream_lock);
}

static int pcsp_suspend(struct platform_device *dev, pm_message_t state)
Expand Down
2 changes: 2 additions & 0 deletions trunk/sound/drivers/pcsp/pcsp_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ static int snd_pcsp_playback_open(struct snd_pcm_substream *substream)
return -EBUSY;
}
runtime->hw = snd_pcsp_playback;
spin_lock_irq(&chip->substream_lock);
chip->playback_substream = substream;
spin_unlock_irq(&chip->substream_lock);
return 0;
}

Expand Down

0 comments on commit e627f8b

Please sign in to comment.