Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 58) sorted by relevance

123

/sound/core/
A Dtimer.c375 timeri->timer = timer; in snd_timer_open()
457 timer->hw.close(timer); in snd_timer_close_locked()
498 timer = timeri->timer; in snd_timer_resolution()
546 timer = timeri->timer; in snd_timer_start1()
583 timer->hw.start(timer); in snd_timer_start1()
619 timer = timeri->timer; in snd_timer_stop1()
636 timer->hw.stop(timer); in snd_timer_stop1()
887 timer->hw.stop(timer); in snd_timer_interrupt()
894 timer->hw.start(timer); in snd_timer_interrupt()
897 timer->hw.stop(timer); in snd_timer_interrupt()
[all …]
A Dpcm_timer.c56 substream = timer->private_data; in snd_pcm_timer_resolution()
64 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
95 substream->timer = NULL; in snd_pcm_timer_free()
101 struct snd_timer *timer; in snd_pcm_timer_init() local
113 timer->hw = snd_pcm_timer; in snd_pcm_timer_init()
114 if (snd_device_register(timer->card, timer) < 0) { in snd_pcm_timer_init()
115 snd_device_free(timer->card, timer); in snd_pcm_timer_init()
118 timer->private_data = substream; in snd_pcm_timer_init()
120 substream->timer = timer; in snd_pcm_timer_init()
125 if (substream->timer) { in snd_pcm_timer_done()
[all …]
A Dhrtimer.c26 struct snd_timer *timer; member
34 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
70 stime->timer = t; in snd_hrtimer_open()
130 struct snd_timer *timer; in snd_hrtimer_init() local
137 &timer); in snd_hrtimer_init()
141 timer->module = THIS_MODULE; in snd_hrtimer_init()
142 strscpy(timer->name, "HR timer"); in snd_hrtimer_init()
143 timer->hw = hrtimer_hw; in snd_hrtimer_init()
144 timer->hw.resolution = resolution; in snd_hrtimer_init()
150 snd_timer_global_free(timer); in snd_hrtimer_init()
[all …]
A DMakefile33 snd-timer-y := timer.o
43 obj-$(CONFIG_SND_TIMER) += snd-timer.o
/sound/core/seq/oss/
A Dseq_oss_timer.c118 timer->tempo = (60 * 1000000) / timer->oss_tempo; in calc_alsa_tempo()
119 timer->ppq = timer->oss_timebase; in calc_alsa_tempo()
152 if (timer->running) in snd_seq_oss_timer_start()
162 timer->running = 1; in snd_seq_oss_timer_start()
163 timer->cur_tick = 0; in snd_seq_oss_timer_start()
177 timer->running = 0; in snd_seq_oss_timer_stop()
188 if (timer->running) in snd_seq_oss_timer_continue()
191 timer->running = 1; in snd_seq_oss_timer_continue()
208 if (timer->running) in snd_seq_oss_timer_tempo()
209 send_timer_event(timer->dp, SNDRV_SEQ_EVENT_TEMPO, timer->tempo); in snd_seq_oss_timer_tempo()
[all …]
A Dseq_oss_timer.h30 int snd_seq_oss_timer_start(struct seq_oss_timer *timer);
31 int snd_seq_oss_timer_stop(struct seq_oss_timer *timer);
32 int snd_seq_oss_timer_continue(struct seq_oss_timer *timer);
33 int snd_seq_oss_timer_tempo(struct seq_oss_timer *timer, int value);
36 int snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __user *arg);
42 snd_seq_oss_timer_cur_tick(struct seq_oss_timer *timer) in snd_seq_oss_timer_cur_tick() argument
44 return timer->cur_tick; in snd_seq_oss_timer_cur_tick()
A Dseq_oss_rw.c158 if (snd_seq_oss_process_timer_event(dp->timer, rec)) in insert_queue()
170 event.time.tick = snd_seq_oss_timer_cur_tick(dp->timer); in insert_queue()
171 if (dp->timer->realtime || !dp->timer->running) in insert_queue()
A Dseq_oss_init.c243 dp->timer = snd_seq_oss_timer_new(dp); in snd_seq_oss_open()
244 if (!dp->timer) { in snd_seq_oss_open()
386 snd_seq_oss_timer_delete(dp->timer); in free_devinfo()
445 snd_seq_oss_timer_stop(dp->timer); in snd_seq_oss_reset()
488 dp->timer->oss_tempo, dp->timer->oss_timebase); in snd_seq_oss_system_info_read()
/sound/isa/gus/
A Dgus_timer.c24 gus = snd_timer_chip(timer); in snd_gf1_timer1_start()
26 ticks = timer->sticks; in snd_gf1_timer1_start()
41 gus = snd_timer_chip(timer); in snd_gf1_timer1_stop()
62 ticks = timer->sticks; in snd_gf1_timer2_start()
93 if (timer == NULL) in snd_gf1_interrupt_timer1()
95 snd_timer_interrupt(timer, timer->sticks); in snd_gf1_interrupt_timer1()
102 if (timer == NULL) in snd_gf1_interrupt_timer2()
104 snd_timer_interrupt(timer, timer->sticks); in snd_gf1_interrupt_timer2()
143 struct snd_timer *timer; in snd_gf1_timers_init() local
164 gus->gf1.timer1 = timer; in snd_gf1_timers_init()
[all …]
/sound/pci/emu10k1/
A Dtimer.c14 static int snd_emu10k1_timer_start(struct snd_timer *timer) in snd_emu10k1_timer_start() argument
19 emu = snd_timer_chip(timer); in snd_emu10k1_timer_start()
20 delay = timer->sticks - 1; in snd_emu10k1_timer_start()
32 emu = snd_timer_chip(timer); in snd_emu10k1_timer_stop()
39 struct snd_emu10k1 *emu = snd_timer_chip(timer); in snd_emu10k1_timer_c_resolution()
51 struct snd_emu10k1 *emu = snd_timer_chip(timer); in snd_emu10k1_timer_precise_resolution()
72 struct snd_timer *timer = NULL; in snd_emu10k1_timer() local
83 strscpy(timer->name, "EMU10K1 timer"); in snd_emu10k1_timer()
84 timer->private_data = emu; in snd_emu10k1_timer()
85 timer->hw = snd_emu10k1_timer_hw; in snd_emu10k1_timer()
[all …]
A Dirq.c119 if (emu->timer) in snd_emu10k1_interrupt()
120 snd_timer_interrupt(emu->timer, emu->timer->sticks); in snd_emu10k1_interrupt()
/sound/drivers/opl3/
A Dopl3_lib.c150 opl3 = snd_timer_chip(timer); in snd_opl3_timer1_start()
152 ticks = timer->sticks; in snd_opl3_timer1_start()
189 ticks = timer->sticks; in snd_opl3_timer2_start()
249 timer->private_data = opl3; in snd_opl3_timer1_init()
252 opl3->timer1 = timer; in snd_opl3_timer1_init()
273 opl3->timer2 = timer; in snd_opl3_timer2_init()
285 struct snd_timer *timer; in snd_opl3_interrupt() local
296 timer = opl3->timer1; in snd_opl3_interrupt()
297 snd_timer_interrupt(timer, timer->sticks); in snd_opl3_interrupt()
300 timer = opl3->timer2; in snd_opl3_interrupt()
[all …]
/sound/core/seq/
A Dseq_queue.c104 q->timer = snd_seq_timer_new(); in queue_new()
108 snd_seq_timer_delete(&q->timer); in queue_new()
125 snd_seq_timer_stop(q->timer); in queue_delete()
133 snd_seq_timer_delete(&q->timer); in queue_delete()
306 &q->timer->cur_time); in snd_seq_enqueue_event()
423 tmr = queue->timer; in snd_seq_queue_timer_open()
485 snd_seq_timer_defaults(queue->timer); in queue_use()
623 if (! snd_seq_timer_start(q->timer)) in snd_seq_queue_process_event()
633 snd_seq_timer_stop(q->timer); in snd_seq_queue_process_event()
654 if (snd_seq_timer_set_skew(q->timer, in snd_seq_queue_process_event()
[all …]
A DKconfig43 bool "Use HR-timer as default sequencer timer"
47 Say Y here to use the HR-timer backend as the default sequencer
48 timer.
A Dseq_timer.c127 tmr = q->timer; in snd_seq_timer_interrupt()
250 tmr = q->timer; in snd_seq_timer_open()
303 tmr = q->timer; in snd_seq_timer_close()
339 t = tmr->timeri->timer; in initialize_timer()
453 tmr = q->timer; in snd_seq_info_timer_read()
459 snd_iprintf(buffer, "Timer for queue %i : %s\n", q->queue, ti->timer->name); in snd_seq_info_timer_read()
/sound/pci/ctxfi/
A Dcttimer.c35 struct timer_list timer; member
65 struct ct_timer_instance *ti = timer_container_of(ti, t, timer); in ct_systimer_callback()
87 mod_timer(&ti->timer, jiffies + interval); in ct_systimer_callback()
93 timer_setup(&ti->timer, ct_systimer_callback, 0); in ct_systimer_init()
103 mod_timer(&ti->timer, in ct_systimer_start()
115 timer_delete(&ti->timer); in ct_systimer_stop()
122 timer_delete_sync_try(&ti->timer); in ct_systimer_prepare()
398 struct ct_timer *timer = data; in ct_timer_interrupt() local
401 if ((status & IT_INT) && timer->ops->interrupt) in ct_timer_interrupt()
402 timer->ops->interrupt(timer); in ct_timer_interrupt()
A Dctpcm.c109 ct_timer_instance_free(apcm->timer); in ct_atc_pcm_free_substream()
148 apcm->timer = ct_timer_instance_new(atc->timer, apcm); in ct_pcm_playback_open()
149 if (!apcm->timer) { in ct_pcm_playback_open()
289 apcm->timer = ct_timer_instance_new(atc->timer, apcm); in ct_pcm_capture_open()
290 if (!apcm->timer) { in ct_pcm_capture_open()
/sound/isa/ad1816a/
A Dad1816a_lib.c312 snd_timer_interrupt(chip->timer, chip->timer->sticks); in snd_ad1816a_interrupt()
361 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_close()
368 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_open()
375 if (snd_BUG_ON(!timer)) in snd_ad1816a_timer_resolution()
385 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_start()
391 timer->sticks & 0xffff); in snd_ad1816a_timer_start()
646 struct snd_timer *timer; in snd_ad1816a_timer() local
658 strscpy(timer->name, snd_ad1816a_chip_id(chip)); in snd_ad1816a_timer()
659 timer->private_data = chip; in snd_ad1816a_timer()
660 chip->timer = timer; in snd_ad1816a_timer()
[all …]
/sound/pci/echoaudio/
A Dmidi.c203 struct echoaudio *chip = timer_container_of(chip, t, timer); in snd_echo_midi_output_write()
241 mod_timer(&chip->timer, jiffies + (time * HZ + 999) / 1000); in snd_echo_midi_output_write()
259 timer_setup(&chip->timer, snd_echo_midi_output_write, in snd_echo_midi_output_trigger()
267 timer_delete_sync(&chip->timer); in snd_echo_midi_output_trigger()
275 snd_echo_midi_output_write(&chip->timer); in snd_echo_midi_output_trigger()
/sound/drivers/
A Ddummy.c233 struct timer_list timer; member
246 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
283 timer_delete(&dpcm->timer); in dummy_systimer_stop()
340 timer_setup(&dpcm->timer, dummy_systimer_callback, 0); in dummy_systimer_create()
371 struct hrtimer timer; member
379 dpcm = container_of(timer, struct dummy_hrtimer_pcm, timer); in dummy_hrtimer_callback()
390 hrtimer_forward_now(timer, dpcm->period_time); in dummy_hrtimer_callback()
398 dpcm->base_time = hrtimer_cb_get_time(&dpcm->timer); in dummy_hrtimer_start()
409 if (!hrtimer_callback_running(&dpcm->timer)) in dummy_hrtimer_stop()
410 hrtimer_cancel(&dpcm->timer); in dummy_hrtimer_stop()
[all …]
/sound/isa/wss/
A Dwss_lib.c748 struct snd_wss *chip = snd_timer_chip(timer); in snd_wss_timer_resolution()
761 ticks = timer->sticks; in snd_wss_timer_start()
1087 if (chip->timer) in snd_wss_interrupt()
1088 snd_timer_interrupt(chip->timer, chip->timer->sticks); in snd_wss_interrupt()
1880 struct snd_wss *chip = timer->private_data; in snd_wss_timer_free()
1881 chip->timer = NULL; in snd_wss_timer_free()
1886 struct snd_timer *timer; in snd_wss_timer() local
1900 timer->private_data = chip; in snd_wss_timer()
1901 timer->private_free = snd_wss_timer_free; in snd_wss_timer()
1902 timer->hw = snd_wss_timer_table; in snd_wss_timer()
[all …]
/sound/isa/wavefront/
A Dwavefront_midi.c160 timer_delete(&midi->timer); in snd_wavefront_midi_output_write()
215 timer_delete(&midi->timer); in snd_wavefront_midi_output_write()
355 snd_wavefront_midi_t *midi = timer_container_of(midi, t, timer); in snd_wavefront_midi_output_timer()
360 mod_timer(&midi->timer, 1 + jiffies); in snd_wavefront_midi_output_timer()
387 timer_setup(&midi->timer, in snd_wavefront_midi_output_trigger()
390 mod_timer(&midi->timer, 1 + jiffies); in snd_wavefront_midi_output_trigger()
/sound/sparc/
A Dcs4231.c98 struct snd_timer *timer; member
665 struct snd_cs4231 *chip = snd_timer_chip(timer); in snd_cs4231_timer_resolution()
674 struct snd_cs4231 *chip = snd_timer_chip(timer); in snd_cs4231_timer_start()
677 ticks = timer->sticks; in snd_cs4231_timer_start()
1246 struct snd_timer *timer; in snd_cs4231_timer() local
1259 strscpy(timer->name, "CS4231"); in snd_cs4231_timer()
1260 timer->private_data = chip; in snd_cs4231_timer()
1261 timer->hw = snd_cs4231_timer_table; in snd_cs4231_timer()
1262 chip->timer = timer; in snd_cs4231_timer()
1642 if (chip->timer) in snd_cs4231_sbus_interrupt()
[all …]
/sound/sh/
A Daica.c281 mod_timer(&dreamcastcard->timer, jiffies + 1); in run_spu_dma()
288 t, timer); in aica_period_elapsed()
305 mod_timer(&(dreamcastcard->timer), jiffies + 1); in aica_period_elapsed()
321 mod_timer(&dreamcastcard->timer, jiffies + 4); in spu_begin_dma()
357 timer_delete_sync(&dreamcastcard->timer); in snd_aicapcm_pcm_sync_stop()
577 timer_setup(&dreamcastcard->timer, aica_period_elapsed, 0); in snd_aica_probe()
/sound/pci/
A Dazt3328.c270 struct snd_timer *timer; member
1912 if (chip->timer) in snd_azf3328_interrupt()
1913 snd_timer_interrupt(chip->timer, chip->timer->sticks); in snd_azf3328_interrupt()
2143 chip = snd_timer_chip(timer); in snd_azf3328_timer_start()
2167 chip = snd_timer_chip(timer); in snd_azf3328_timer_stop()
2203 struct snd_timer *timer = NULL; in snd_azf3328_timer() local
2221 timer->private_data = chip; in snd_azf3328_timer()
2222 timer->hw = snd_azf3328_timer_hw; in snd_azf3328_timer()
2224 chip->timer = timer; in snd_azf3328_timer()
2226 snd_azf3328_timer_stop(timer); in snd_azf3328_timer()
[all …]

Completed in 73 milliseconds

123