Lines Matching +full:delay +full:- +full:us
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) by Lee Revell <rlrevell@joe-job.com>
17 unsigned int delay; in snd_emu10k1_timer_start() local
20 delay = timer->sticks - 1; in snd_emu10k1_timer_start()
21 if (delay < 5 ) /* minimum time is 5 ticks */ in snd_emu10k1_timer_start()
22 delay = 5; in snd_emu10k1_timer_start()
24 outw(delay & TIMER_RATE_MASK, emu->port + TIMER); in snd_emu10k1_timer_start()
41 if (emu->card_capabilities->emu_model && in snd_emu10k1_timer_c_resolution()
42 emu->emu1010.word_clock == 44100) in snd_emu10k1_timer_c_resolution()
43 return 22676; // 1 sample @ 44.1 kHz = 22.675736...us in snd_emu10k1_timer_c_resolution()
45 return 20833; // 1 sample @ 48 kHz = 20.833...us in snd_emu10k1_timer_c_resolution()
54 if (emu->card_capabilities->emu_model) in snd_emu10k1_timer_precise_resolution()
55 *den = emu->emu1010.word_clock; in snd_emu10k1_timer_precise_resolution()
78 tid.card = emu->card->number; in snd_emu10k1_timer()
81 err = snd_timer_new(emu->card, "EMU10K1", &tid, &timer); in snd_emu10k1_timer()
83 strcpy(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()
87 emu->timer = timer; in snd_emu10k1_timer()