patch-2.1.90 linux/drivers/sound/sound_timer.c
Next file: linux/drivers/sound/soundcard.c
Previous file: linux/drivers/sound/sound_calls.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Thu Mar 12 10:52:09 1998
- Orig file:
v2.1.89/linux/drivers/sound/sound_timer.c
- Orig date:
Mon Feb 23 18:12:09 1998
diff -u --recursive --new-file v2.1.89/linux/drivers/sound/sound_timer.c linux/drivers/sound/sound_timer.c
@@ -47,6 +47,14 @@
{
unsigned long usecs_per_tick;
+ /*
+ * The user is changing the timer rate before setting a timer
+ * slap, bad bad not allowed.
+ */
+
+ if(!tmr)
+ return;
+
usecs_per_tick = (60 * 1000000) / (curr_tempo * curr_timebase);
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov