diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 07:56:05 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:17:34 -0500 |
commit | 53d2f744afc1fcb4fb68975a443fb66eb6c44da4 (patch) | |
tree | 46db033f71a8da32470d4b5f1027cee379fc7914 /sound/core/rtctimer.c | |
parent | 82e9bae6fd253af4aea9c690223c7800313632ad (diff) |
[ALSA] Remove xxx_t typedefs: Timer
Modules: RTC timer driver,Timer Midlevel
Remove xxx_t typedefs from the core timer.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/rtctimer.c')
-rw-r--r-- | sound/core/rtctimer.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sound/core/rtctimer.c b/sound/core/rtctimer.c index c3c18568207e..84704ccb1829 100644 --- a/sound/core/rtctimer.c +++ b/sound/core/rtctimer.c | |||
@@ -40,16 +40,16 @@ | |||
40 | /* | 40 | /* |
41 | * prototypes | 41 | * prototypes |
42 | */ | 42 | */ |
43 | static int rtctimer_open(snd_timer_t *t); | 43 | static int rtctimer_open(struct snd_timer *t); |
44 | static int rtctimer_close(snd_timer_t *t); | 44 | static int rtctimer_close(struct snd_timer *t); |
45 | static int rtctimer_start(snd_timer_t *t); | 45 | static int rtctimer_start(struct snd_timer *t); |
46 | static int rtctimer_stop(snd_timer_t *t); | 46 | static int rtctimer_stop(struct snd_timer *t); |
47 | 47 | ||
48 | 48 | ||
49 | /* | 49 | /* |
50 | * The hardware dependent description for this timer. | 50 | * The hardware dependent description for this timer. |
51 | */ | 51 | */ |
52 | static struct _snd_timer_hardware rtc_hw = { | 52 | static struct snd_timer_hardware rtc_hw = { |
53 | .flags = SNDRV_TIMER_HW_FIRST|SNDRV_TIMER_HW_AUTO, | 53 | .flags = SNDRV_TIMER_HW_FIRST|SNDRV_TIMER_HW_AUTO, |
54 | .ticks = 100000000L, /* FIXME: XXX */ | 54 | .ticks = 100000000L, /* FIXME: XXX */ |
55 | .open = rtctimer_open, | 55 | .open = rtctimer_open, |
@@ -59,12 +59,12 @@ static struct _snd_timer_hardware rtc_hw = { | |||
59 | }; | 59 | }; |
60 | 60 | ||
61 | static int rtctimer_freq = RTC_FREQ; /* frequency */ | 61 | static int rtctimer_freq = RTC_FREQ; /* frequency */ |
62 | static snd_timer_t *rtctimer; | 62 | static struct snd_timer *rtctimer; |
63 | static rtc_task_t rtc_task; | 63 | static rtc_task_t rtc_task; |
64 | 64 | ||
65 | 65 | ||
66 | static int | 66 | static int |
67 | rtctimer_open(snd_timer_t *t) | 67 | rtctimer_open(struct snd_timer *t) |
68 | { | 68 | { |
69 | int err; | 69 | int err; |
70 | 70 | ||
@@ -76,7 +76,7 @@ rtctimer_open(snd_timer_t *t) | |||
76 | } | 76 | } |
77 | 77 | ||
78 | static int | 78 | static int |
79 | rtctimer_close(snd_timer_t *t) | 79 | rtctimer_close(struct snd_timer *t) |
80 | { | 80 | { |
81 | rtc_task_t *rtc = t->private_data; | 81 | rtc_task_t *rtc = t->private_data; |
82 | if (rtc) { | 82 | if (rtc) { |
@@ -87,7 +87,7 @@ rtctimer_close(snd_timer_t *t) | |||
87 | } | 87 | } |
88 | 88 | ||
89 | static int | 89 | static int |
90 | rtctimer_start(snd_timer_t *timer) | 90 | rtctimer_start(struct snd_timer *timer) |
91 | { | 91 | { |
92 | rtc_task_t *rtc = timer->private_data; | 92 | rtc_task_t *rtc = timer->private_data; |
93 | snd_assert(rtc != NULL, return -EINVAL); | 93 | snd_assert(rtc != NULL, return -EINVAL); |
@@ -97,7 +97,7 @@ rtctimer_start(snd_timer_t *timer) | |||
97 | } | 97 | } |
98 | 98 | ||
99 | static int | 99 | static int |
100 | rtctimer_stop(snd_timer_t *timer) | 100 | rtctimer_stop(struct snd_timer *timer) |
101 | { | 101 | { |
102 | rtc_task_t *rtc = timer->private_data; | 102 | rtc_task_t *rtc = timer->private_data; |
103 | snd_assert(rtc != NULL, return -EINVAL); | 103 | snd_assert(rtc != NULL, return -EINVAL); |
@@ -120,7 +120,7 @@ static void rtctimer_interrupt(void *private_data) | |||
120 | static int __init rtctimer_init(void) | 120 | static int __init rtctimer_init(void) |
121 | { | 121 | { |
122 | int err; | 122 | int err; |
123 | snd_timer_t *timer; | 123 | struct snd_timer *timer; |
124 | 124 | ||
125 | if (rtctimer_freq < 2 || rtctimer_freq > 8192 || | 125 | if (rtctimer_freq < 2 || rtctimer_freq > 8192 || |
126 | (rtctimer_freq & (rtctimer_freq - 1)) != 0) { | 126 | (rtctimer_freq & (rtctimer_freq - 1)) != 0) { |