]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/pcsp/pcsp.c
Merge branch 'linus' into timers/hrtimers
[linux-2.6-omap-h63xx.git] / sound / drivers / pcsp / pcsp.c
index 8e52b2a8a13a593abc1145224ca4aca73eccfc1c..a4049eb94d35a28bafa41072e6e44af726d6f251 100644 (file)
@@ -187,10 +187,8 @@ static int __devexit pcsp_remove(struct platform_device *dev)
 
 static void pcsp_stop_beep(struct snd_pcsp *chip)
 {
-       spin_lock_irq(&chip->substream_lock);
-       if (!chip->playback_substream)
-               pcspkr_stop_sound();
-       spin_unlock_irq(&chip->substream_lock);
+       pcsp_sync_stop(chip);
+       pcspkr_stop_sound();
 }
 
 #ifdef CONFIG_PM