Home
last modified time | relevance | path

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

123

/sound/core/
Dtimer.c82 static int snd_timer_free(struct snd_timer *timer);
87 static void snd_timer_reschedule(struct snd_timer * timer, unsigned long ticks_left);
94 struct snd_timer *timer) in snd_timer_instance_new() argument
111 timeri->timer = timer; in snd_timer_instance_new()
112 if (timer && !try_module_get(timer->module)) { in snd_timer_instance_new()
126 struct snd_timer *timer = NULL; in snd_timer_find() local
128 list_for_each_entry(timer, &snd_timer_list, device_list) { in snd_timer_find()
129 if (timer->tmr_class != tid->dev_class) in snd_timer_find()
131 if ((timer->tmr_class == SNDRV_TIMER_CLASS_CARD || in snd_timer_find()
132 timer->tmr_class == SNDRV_TIMER_CLASS_PCM) && in snd_timer_find()
[all …]
Dpcm_timer.c52 static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) in snd_pcm_timer_resolution() argument
56 substream = timer->private_data; in snd_pcm_timer_resolution()
60 static int snd_pcm_timer_start(struct snd_timer * timer) in snd_pcm_timer_start() argument
64 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
69 static int snd_pcm_timer_stop(struct snd_timer * timer) in snd_pcm_timer_stop() argument
73 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
92 static void snd_pcm_timer_free(struct snd_timer *timer) in snd_pcm_timer_free() argument
94 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free()
95 substream->timer = NULL; in snd_pcm_timer_free()
101 struct snd_timer *timer; in snd_pcm_timer_init() local
[all …]
Dhrtimer.c25 struct snd_timer *timer; member
33 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
50 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
72 stime->timer = t; in snd_hrtimer_open()
132 struct snd_timer *timer; in snd_hrtimer_init() local
139 &timer); in snd_hrtimer_init()
143 timer->module = THIS_MODULE; in snd_hrtimer_init()
144 strcpy(timer->name, "HR timer"); in snd_hrtimer_init()
145 timer->hw = hrtimer_hw; in snd_hrtimer_init()
146 timer->hw.resolution = resolution; in snd_hrtimer_init()
[all …]
DMakefile33 snd-timer-objs := timer.o
42 obj-$(CONFIG_SND_TIMER) += snd-timer.o
DKconfig82 bool "PCM timer interface" if EXPERT
85 If you disable this option, pcm timer will be unavailable, so
86 those stubs that use pcm timer (e.g. dmix, dsnoop & co) may work
93 tristate "HR-timer backend support"
97 Say Y here to enable HR-timer backend for ALSA timer. ALSA uses
/sound/core/seq/oss/
Dseq_oss_timer.c24 static void calc_alsa_tempo(struct seq_oss_timer *timer);
116 calc_alsa_tempo(struct seq_oss_timer *timer) in calc_alsa_tempo() argument
118 timer->tempo = (60 * 1000000) / timer->oss_tempo; in calc_alsa_tempo()
119 timer->ppq = timer->oss_timebase; in calc_alsa_tempo()
147 snd_seq_oss_timer_start(struct seq_oss_timer *timer) in snd_seq_oss_timer_start() argument
149 struct seq_oss_devinfo *dp = timer->dp; in snd_seq_oss_timer_start()
152 if (timer->running) in snd_seq_oss_timer_start()
153 snd_seq_oss_timer_stop(timer); in snd_seq_oss_timer_start()
157 tmprec.ppq = timer->ppq; in snd_seq_oss_timer_start()
158 tmprec.tempo = timer->tempo; in snd_seq_oss_timer_start()
[all …]
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()
52 snd_seq_oss_timer_is_realtime(struct seq_oss_timer *timer) in snd_seq_oss_timer_is_realtime() argument
54 return timer->realtime; in snd_seq_oss_timer_is_realtime()
Dseq_oss_rw.c157 if (snd_seq_oss_process_timer_event(dp->timer, rec)) in insert_queue()
169 event.time.tick = snd_seq_oss_timer_cur_tick(dp->timer); in insert_queue()
170 if (dp->timer->realtime || !dp->timer->running) in insert_queue()
Dseq_oss_init.c249 dp->timer = snd_seq_oss_timer_new(dp); in snd_seq_oss_open()
250 if (!dp->timer) { in snd_seq_oss_open()
391 snd_seq_oss_timer_delete(dp->timer); in free_devinfo()
450 snd_seq_oss_timer_stop(dp->timer); in snd_seq_oss_reset()
498 dp->timer->oss_tempo, dp->timer->oss_timebase); in snd_seq_oss_system_info_read()
/sound/isa/gus/
Dgus_timer.c17 static int snd_gf1_timer1_start(struct snd_timer * timer) in snd_gf1_timer1_start() argument
24 gus = snd_timer_chip(timer); in snd_gf1_timer1_start()
26 ticks = timer->sticks; in snd_gf1_timer1_start()
35 static int snd_gf1_timer1_stop(struct snd_timer * timer) in snd_gf1_timer1_stop() argument
41 gus = snd_timer_chip(timer); in snd_gf1_timer1_stop()
53 static int snd_gf1_timer2_start(struct snd_timer * timer) in snd_gf1_timer2_start() argument
60 gus = snd_timer_chip(timer); in snd_gf1_timer2_start()
62 ticks = timer->sticks; in snd_gf1_timer2_start()
71 static int snd_gf1_timer2_stop(struct snd_timer * timer) in snd_gf1_timer2_stop() argument
77 gus = snd_timer_chip(timer); in snd_gf1_timer2_stop()
[all …]
/sound/pci/emu10k1/
Dtimer.c18 static int snd_emu10k1_timer_start(struct snd_timer *timer) in snd_emu10k1_timer_start() argument
24 emu = snd_timer_chip(timer); in snd_emu10k1_timer_start()
25 delay = timer->sticks - 1; in snd_emu10k1_timer_start()
35 static int snd_emu10k1_timer_stop(struct snd_timer *timer) in snd_emu10k1_timer_stop() argument
40 emu = snd_timer_chip(timer); in snd_emu10k1_timer_stop()
47 static int snd_emu10k1_timer_precise_resolution(struct snd_timer *timer, in snd_emu10k1_timer_precise_resolution() argument
66 struct snd_timer *timer = NULL; in snd_emu10k1_timer() local
75 if ((err = snd_timer_new(emu->card, "EMU10K1", &tid, &timer)) >= 0) { in snd_emu10k1_timer()
76 strcpy(timer->name, "EMU10K1 timer"); in snd_emu10k1_timer()
77 timer->private_data = emu; in snd_emu10k1_timer()
[all …]
/sound/drivers/opl3/
Dopl3_lib.c143 static int snd_opl3_timer1_start(struct snd_timer * timer) in snd_opl3_timer1_start() argument
150 opl3 = snd_timer_chip(timer); in snd_opl3_timer1_start()
152 ticks = timer->sticks; in snd_opl3_timer1_start()
161 static int snd_opl3_timer1_stop(struct snd_timer * timer) in snd_opl3_timer1_stop() argument
167 opl3 = snd_timer_chip(timer); in snd_opl3_timer1_stop()
180 static int snd_opl3_timer2_start(struct snd_timer * timer) in snd_opl3_timer2_start() argument
187 opl3 = snd_timer_chip(timer); in snd_opl3_timer2_start()
189 ticks = timer->sticks; in snd_opl3_timer2_start()
198 static int snd_opl3_timer2_stop(struct snd_timer * timer) in snd_opl3_timer2_stop() argument
204 opl3 = snd_timer_chip(timer); in snd_opl3_timer2_stop()
[all …]
/sound/core/seq/
Dseq_queue.c112 q->timer = snd_seq_timer_new(); in queue_new()
113 if (q->tickq == NULL || q->timeq == NULL || q->timer == NULL) { in queue_new()
116 snd_seq_timer_delete(&q->timer); in queue_new()
133 snd_seq_timer_stop(q->timer); in queue_delete()
141 snd_seq_timer_delete(&q->timer); in queue_delete()
262 cur_tick = snd_seq_timer_get_cur_tick(q->timer); in snd_seq_check_queue()
273 cur_time = snd_seq_timer_get_cur_time(q->timer, false); in snd_seq_check_queue()
314 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
319 &q->timer->cur_time); in snd_seq_enqueue_event()
444 tmr = queue->timer; in snd_seq_queue_timer_open()
[all …]
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.
Dseq_timer.c130 tmr = q->timer; in snd_seq_timer_interrupt()
265 tmr = q->timer; in snd_seq_timer_open()
306 tmr = q->timer; in snd_seq_timer_close()
345 t = tmr->timeri->timer; in initialize_timer()
476 tmr = q->timer; in snd_seq_info_timer_read()
482 snd_iprintf(buffer, "Timer for queue %i : %s\n", q->queue, ti->timer->name); in snd_seq_info_timer_read()
Dseq_clientmgr.c581 event->time.time = snd_seq_timer_get_cur_time(q->timer, true); in update_timestamp_of_queue()
584 event->time.tick = snd_seq_timer_get_cur_tick(q->timer); in update_timestamp_of_queue()
1657 tmr = queue->timer; in snd_seq_ioctl_get_queue_status()
1686 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo()
1722 struct snd_seq_queue_timer *timer = arg; in snd_seq_ioctl_get_queue_timer() local
1726 queue = queueptr(timer->queue); in snd_seq_ioctl_get_queue_timer()
1731 tmr = queue->timer; in snd_seq_ioctl_get_queue_timer()
1732 memset(timer, 0, sizeof(*timer)); in snd_seq_ioctl_get_queue_timer()
1733 timer->queue = queue->queue; in snd_seq_ioctl_get_queue_timer()
1735 timer->type = tmr->type; in snd_seq_ioctl_get_queue_timer()
[all …]
/sound/pci/ctxfi/
Dcttimer.c35 struct timer_list timer; member
65 struct ct_timer_instance *ti = from_timer(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 del_timer(&ti->timer); in ct_systimer_stop()
122 try_to_del_timer_sync(&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()
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()
295 apcm->timer = ct_timer_instance_new(atc->timer, apcm); in ct_pcm_capture_open()
296 if (!apcm->timer) { in ct_pcm_capture_open()
/sound/isa/ad1816a/
Dad1816a_lib.c321 if ((status & AD1816A_TIMER_IRQ_PENDING) && chip->timer) in snd_ad1816a_interrupt()
322 snd_timer_interrupt(chip->timer, chip->timer->sticks); in snd_ad1816a_interrupt()
369 static int snd_ad1816a_timer_close(struct snd_timer *timer) in snd_ad1816a_timer_close() argument
371 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_close()
376 static int snd_ad1816a_timer_open(struct snd_timer *timer) in snd_ad1816a_timer_open() argument
378 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_open()
383 static unsigned long snd_ad1816a_timer_resolution(struct snd_timer *timer) in snd_ad1816a_timer_resolution() argument
385 if (snd_BUG_ON(!timer)) in snd_ad1816a_timer_resolution()
391 static int snd_ad1816a_timer_start(struct snd_timer *timer) in snd_ad1816a_timer_start() argument
395 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_start()
[all …]
/sound/drivers/
Ddummy.c225 struct timer_list timer; member
238 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
275 del_timer(&dpcm->timer); in dummy_systimer_stop()
297 struct dummy_systimer_pcm *dpcm = from_timer(dpcm, t, timer); in dummy_systimer_callback()
332 timer_setup(&dpcm->timer, dummy_systimer_callback, 0); in dummy_systimer_create()
363 struct hrtimer timer; member
367 static enum hrtimer_restart dummy_hrtimer_callback(struct hrtimer *timer) in dummy_hrtimer_callback() argument
371 dpcm = container_of(timer, struct dummy_hrtimer_pcm, timer); in dummy_hrtimer_callback()
382 hrtimer_forward_now(timer, dpcm->period_time); in dummy_hrtimer_callback()
390 dpcm->base_time = hrtimer_cb_get_time(&dpcm->timer); in dummy_hrtimer_start()
[all …]
/sound/pci/echoaudio/
Dmidi.c204 struct echoaudio *chip = from_timer(chip, t, timer); in snd_echo_midi_output_write()
242 mod_timer(&chip->timer, jiffies + (time * HZ + 999) / 1000); in snd_echo_midi_output_write()
260 timer_setup(&chip->timer, snd_echo_midi_output_write, in snd_echo_midi_output_trigger()
268 del_timer_sync(&chip->timer); in snd_echo_midi_output_trigger()
276 snd_echo_midi_output_write(&chip->timer); in snd_echo_midi_output_trigger()
/sound/isa/wss/
Dwss_lib.c743 static unsigned long snd_wss_timer_resolution(struct snd_timer *timer) in snd_wss_timer_resolution() argument
745 struct snd_wss *chip = snd_timer_chip(timer); in snd_wss_timer_resolution()
752 static int snd_wss_timer_start(struct snd_timer *timer) in snd_wss_timer_start() argument
756 struct snd_wss *chip = snd_timer_chip(timer); in snd_wss_timer_start()
758 ticks = timer->sticks; in snd_wss_timer_start()
776 static int snd_wss_timer_stop(struct snd_timer *timer) in snd_wss_timer_stop() argument
779 struct snd_wss *chip = snd_timer_chip(timer); in snd_wss_timer_stop()
950 static int snd_wss_timer_open(struct snd_timer *timer) in snd_wss_timer_open() argument
952 struct snd_wss *chip = snd_timer_chip(timer); in snd_wss_timer_open()
957 static int snd_wss_timer_close(struct snd_timer *timer) in snd_wss_timer_close() argument
[all …]
/sound/isa/wavefront/
Dwavefront_midi.c160 del_timer(&midi->timer); in snd_wavefront_midi_output_write()
215 del_timer(&midi->timer); in snd_wavefront_midi_output_write()
351 snd_wavefront_midi_t *midi = from_timer(midi, t, timer); in snd_wavefront_midi_output_timer()
356 mod_timer(&midi->timer, 1 + jiffies); in snd_wavefront_midi_output_timer()
383 timer_setup(&midi->timer, in snd_wavefront_midi_output_trigger()
386 mod_timer(&midi->timer, 1 + jiffies); in snd_wavefront_midi_output_trigger()
/sound/sparc/
Dcs4231.c99 struct snd_timer *timer; member
660 static unsigned long snd_cs4231_timer_resolution(struct snd_timer *timer) in snd_cs4231_timer_resolution() argument
662 struct snd_cs4231 *chip = snd_timer_chip(timer); in snd_cs4231_timer_resolution()
667 static int snd_cs4231_timer_start(struct snd_timer *timer) in snd_cs4231_timer_start() argument
671 struct snd_cs4231 *chip = snd_timer_chip(timer); in snd_cs4231_timer_start()
674 ticks = timer->sticks; in snd_cs4231_timer_start()
693 static int snd_cs4231_timer_stop(struct snd_timer *timer) in snd_cs4231_timer_stop() argument
696 struct snd_cs4231 *chip = snd_timer_chip(timer); in snd_cs4231_timer_stop()
858 static int snd_cs4231_timer_open(struct snd_timer *timer) in snd_cs4231_timer_open() argument
860 struct snd_cs4231 *chip = snd_timer_chip(timer); in snd_cs4231_timer_open()
[all …]
/sound/pci/
Dazt3328.c271 struct snd_timer *timer; member
1937 if (chip->timer) in snd_azf3328_interrupt()
1938 snd_timer_interrupt(chip->timer, chip->timer->sticks); in snd_azf3328_interrupt()
2173 snd_azf3328_timer_start(struct snd_timer *timer) in snd_azf3328_timer_start() argument
2179 chip = snd_timer_chip(timer); in snd_azf3328_timer_start()
2180 delay = ((timer->sticks * seqtimer_scaling) - 1) & TIMER_VALUE_MASK; in snd_azf3328_timer_start()
2198 snd_azf3328_timer_stop(struct snd_timer *timer) in snd_azf3328_timer_stop() argument
2203 chip = snd_timer_chip(timer); in snd_azf3328_timer_stop()
2219 snd_azf3328_timer_precise_resolution(struct snd_timer *timer, in snd_azf3328_timer_precise_resolution() argument
2239 struct snd_timer *timer = NULL; in snd_azf3328_timer() local
[all …]

123