patch-2.4.20 linux-2.4.20/drivers/sound/emu10k1/timer.c
Next file: linux-2.4.20/drivers/sound/emu10k1/timer.h
Previous file: linux-2.4.20/drivers/sound/emu10k1/recmgr.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Nov 28 15:53:14 2002
- Orig file:
linux-2.4.19/drivers/sound/emu10k1/timer.c
- Orig date:
Mon Aug 14 08:32:48 2000
diff -urN linux-2.4.19/drivers/sound/emu10k1/timer.c linux-2.4.20/drivers/sound/emu10k1/timer.c
@@ -59,7 +59,7 @@
return;
}
-void emu10k1_timer_install(struct emu10k1_card *card, struct emu_timer *timer, u32 delay)
+void emu10k1_timer_install(struct emu10k1_card *card, struct emu_timer *timer, u16 delay)
{
struct emu_timer *t;
struct list_head *entry;
@@ -85,7 +85,7 @@
card->timer_delay = delay;
delay = (delay < 1024 ? delay : 1024);
- emu10k1_writefn0(card, TIMER_RATE, delay);
+ emu10k1_timer_set(card, delay);
list_for_each(entry, &card->timers) {
t = list_entry(entry, struct emu_timer, list);
@@ -108,7 +108,7 @@
{
struct emu_timer *t;
struct list_head *entry;
- u32 delay = TIMER_STOPPED;
+ u16 delay = TIMER_STOPPED;
unsigned long flags;
if (timer->state == TIMER_STATE_UNINSTALLED)
@@ -133,7 +133,7 @@
else {
delay = (delay < 1024 ? delay : 1024);
- emu10k1_writefn0(card, TIMER_RATE, delay);
+ emu10k1_timer_set(card, delay);
list_for_each(entry, &card->timers) {
t = list_entry(entry, struct emu_timer, list);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)