Changeset 34 for GPL/trunk/alsa-kernel/pci/emu10k1/timer.c
- Timestamp:
- Dec 11, 2005, 5:57:39 PM (20 years ago)
- File:
-
- 1 edited
-
GPL/trunk/alsa-kernel/pci/emu10k1/timer.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/emu10k1/timer.c
r33 r34 1 1 /* 2 2 * Copyright (c) by Lee Revell <rlrevell@joe-job.com> 3 * 3 * 4 4 * Routines for control of EMU10K1 chips 5 5 * 6 6 * Copied from similar code by Clemens Ladisch in the ymfpci driver 7 * 7 * 8 8 * BUGS: 9 9 * -- … … 35 35 static int snd_emu10k1_timer_start(snd_timer_t *timer) 36 36 { 37 emu10k1_t*emu;37 struct snd_emu10k1 *emu; 38 38 unsigned long flags; 39 39 unsigned int delay; … … 52 52 static int snd_emu10k1_timer_stop(snd_timer_t *timer) 53 53 { 54 emu10k1_t*emu;54 struct snd_emu10k1 *emu; 55 55 unsigned long flags; 56 56 … … 70 70 } 71 71 72 static struct _snd_timer_hardware snd_emu10k1_timer_hw = { 73 /*.flags = */SNDRV_TIMER_HW_AUTO, 74 /*.resolution = */20833, /* 1 sample @ 48KHZ = 20.833...us */ 75 0, 0, 76 /*.ticks = */1024, 77 NULL, NULL, NULL, 78 /*.start = */snd_emu10k1_timer_start, 79 /*.stop = */snd_emu10k1_timer_stop, 80 NULL, 81 /*.precise_resolution = */snd_emu10k1_timer_precise_resolution 72 static struct snd_timer_hardware snd_emu10k1_timer_hw = { 73 .flags = SNDRV_TIMER_HW_AUTO, 74 .resolution = 20833, /* 1 sample @ 48KHZ = 20.833...us */ 75 .ticks = 1024, 76 .start = snd_emu10k1_timer_start, 77 .stop = snd_emu10k1_timer_stop, 78 .precise_resolution = snd_emu10k1_timer_precise_resolution, 82 79 }; 83 80 84 int __devinit snd_emu10k1_timer( emu10k1_t*emu, int device)81 int __devinit snd_emu10k1_timer(struct snd_emu10k1 *emu, int device) 85 82 { 86 83 snd_timer_t *timer = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
