patch-2.4.20 linux-2.4.20/drivers/sound/emu10k1/hwaccess.c

Next file: linux-2.4.20/drivers/sound/emu10k1/hwaccess.h
Previous file: linux-2.4.20/drivers/sound/emu10k1/cardwo.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/sound/emu10k1/hwaccess.c linux-2.4.20/drivers/sound/emu10k1/hwaccess.c
@@ -187,6 +187,15 @@
 	}
 }
 
+void emu10k1_timer_set(struct emu10k1_card * card, u16 data)
+{
+	unsigned long flags;
+
+	spin_lock_irqsave(&card->lock, flags);
+	outw(data & TIMER_RATE_MASK, card->iobase + TIMER);
+	spin_unlock_irqrestore(&card->lock, flags);
+}
+
 /************************************************************************
 * write/read Emu10k1 pointer-offset register set, accessed through      *
 *  the PTR and DATA registers                                           *

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)