diff options
Diffstat (limited to 'sound/drivers/pcsp/pcsp.c')
-rw-r--r-- | sound/drivers/pcsp/pcsp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c index 547005cb0942..ac57e87d01bc 100644 --- a/sound/drivers/pcsp/pcsp.c +++ b/sound/drivers/pcsp/pcsp.c | |||
@@ -191,11 +191,10 @@ static int __devexit pcsp_remove(struct platform_device *dev) | |||
191 | 191 | ||
192 | static void pcsp_stop_beep(struct snd_pcsp *chip) | 192 | static void pcsp_stop_beep(struct snd_pcsp *chip) |
193 | { | 193 | { |
194 | unsigned long flags; | 194 | spin_lock_irq(&chip->substream_lock); |
195 | spin_lock_irqsave(&chip->substream_lock, flags); | ||
196 | if (!chip->playback_substream) | 195 | if (!chip->playback_substream) |
197 | pcspkr_stop_sound(); | 196 | pcspkr_stop_sound(); |
198 | spin_unlock_irqrestore(&chip->substream_lock, flags); | 197 | spin_unlock_irq(&chip->substream_lock); |
199 | } | 198 | } |
200 | 199 | ||
201 | static int pcsp_suspend(struct platform_device *dev, pm_message_t state) | 200 | static int pcsp_suspend(struct platform_device *dev, pm_message_t state) |