aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/rtctimer.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 07:56:05 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:17:34 -0500
commit53d2f744afc1fcb4fb68975a443fb66eb6c44da4 (patch)
tree46db033f71a8da32470d4b5f1027cee379fc7914 /sound/core/rtctimer.c
parent82e9bae6fd253af4aea9c690223c7800313632ad (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.c22
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 */
43static int rtctimer_open(snd_timer_t *t); 43static int rtctimer_open(struct snd_timer *t);
44static int rtctimer_close(snd_timer_t *t); 44static int rtctimer_close(struct snd_timer *t);
45static int rtctimer_start(snd_timer_t *t); 45static int rtctimer_start(struct snd_timer *t);
46static int rtctimer_stop(snd_timer_t *t); 46static 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 */
52static struct _snd_timer_hardware rtc_hw = { 52static 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
61static int rtctimer_freq = RTC_FREQ; /* frequency */ 61static int rtctimer_freq = RTC_FREQ; /* frequency */
62static snd_timer_t *rtctimer; 62static struct snd_timer *rtctimer;
63static rtc_task_t rtc_task; 63static rtc_task_t rtc_task;
64 64
65 65
66static int 66static int
67rtctimer_open(snd_timer_t *t) 67rtctimer_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
78static int 78static int
79rtctimer_close(snd_timer_t *t) 79rtctimer_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
89static int 89static int
90rtctimer_start(snd_timer_t *timer) 90rtctimer_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
99static int 99static int
100rtctimer_stop(snd_timer_t *timer) 100rtctimer_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)
120static int __init rtctimer_init(void) 120static 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) {