• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/core/seq/oss/

Lines Matching refs:timer

36 static void calc_alsa_tempo(struct seq_oss_timer *timer);
41 * create and register a new timer.
66 * delete timer.
67 * if no more timer exists, stop the queue.
82 * 0 : not a timer event -- enqueue this event
128 calc_alsa_tempo(struct seq_oss_timer *timer)
130 timer->tempo = (60 * 1000000) / timer->oss_tempo;
131 timer->ppq = timer->oss_timebase;
136 * dispatch a timer event
159 snd_seq_oss_timer_start(struct seq_oss_timer *timer)
161 struct seq_oss_devinfo *dp = timer->dp;
164 if (timer->running)
165 snd_seq_oss_timer_stop(timer);
169 tmprec.ppq = timer->ppq;
170 tmprec.tempo = timer->tempo;
174 timer->running = 1;
175 timer->cur_tick = 0;
184 snd_seq_oss_timer_stop(struct seq_oss_timer *timer)
186 if (! timer->running)
188 send_timer_event(timer->dp, SNDRV_SEQ_EVENT_STOP, 0);
189 timer->running = 0;
198 snd_seq_oss_timer_continue(struct seq_oss_timer *timer)
200 if (timer->running)
202 send_timer_event(timer->dp, SNDRV_SEQ_EVENT_CONTINUE, 0);
203 timer->running = 1;
212 snd_seq_oss_timer_tempo(struct seq_oss_timer *timer, int value)
218 timer->oss_tempo = value;
219 calc_alsa_tempo(timer);
220 if (timer->running)
221 send_timer_event(timer->dp, SNDRV_SEQ_EVENT_TEMPO, timer->tempo);
230 snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __user *arg)
241 value = ((timer->oss_tempo * timer->oss_timebase) + 30) / 60;
245 if (timer->dp->seq_mode == SNDRV_SEQ_OSS_MODE_SYNTH)
250 debug_printk(("timer start\n"));
251 return snd_seq_oss_timer_start(timer);
253 debug_printk(("timer stop\n"));
254 return snd_seq_oss_timer_stop(timer);
256 debug_printk(("timer continue\n"));
257 return snd_seq_oss_timer_continue(timer);
259 debug_printk(("timer tempo\n"));
262 return snd_seq_oss_timer_tempo(timer, value);
264 debug_printk(("timer timebase\n"));
271 timer->oss_timebase = value;
272 calc_alsa_tempo(timer);
278 debug_printk(("timer XXX\n"));