aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/gus/gus_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/gus/gus_timer.c')
-rw-r--r--sound/isa/gus/gus_timer.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/sound/isa/gus/gus_timer.c b/sound/isa/gus/gus_timer.c
index 9876603ff6c1..a43b662f17c7 100644
--- a/sound/isa/gus/gus_timer.c
+++ b/sound/isa/gus/gus_timer.c
@@ -30,12 +30,12 @@
30 * Timer 1 - 80us 30 * Timer 1 - 80us
31 */ 31 */
32 32
33static int snd_gf1_timer1_start(snd_timer_t * timer) 33static int snd_gf1_timer1_start(struct snd_timer * timer)
34{ 34{
35 unsigned long flags; 35 unsigned long flags;
36 unsigned char tmp; 36 unsigned char tmp;
37 unsigned int ticks; 37 unsigned int ticks;
38 snd_gus_card_t *gus; 38 struct snd_gus_card *gus;
39 39
40 gus = snd_timer_chip(timer); 40 gus = snd_timer_chip(timer);
41 spin_lock_irqsave(&gus->reg_lock, flags); 41 spin_lock_irqsave(&gus->reg_lock, flags);
@@ -48,11 +48,11 @@ static int snd_gf1_timer1_start(snd_timer_t * timer)
48 return 0; 48 return 0;
49} 49}
50 50
51static int snd_gf1_timer1_stop(snd_timer_t * timer) 51static int snd_gf1_timer1_stop(struct snd_timer * timer)
52{ 52{
53 unsigned long flags; 53 unsigned long flags;
54 unsigned char tmp; 54 unsigned char tmp;
55 snd_gus_card_t *gus; 55 struct snd_gus_card *gus;
56 56
57 gus = snd_timer_chip(timer); 57 gus = snd_timer_chip(timer);
58 spin_lock_irqsave(&gus->reg_lock, flags); 58 spin_lock_irqsave(&gus->reg_lock, flags);
@@ -66,12 +66,12 @@ static int snd_gf1_timer1_stop(snd_timer_t * timer)
66 * Timer 2 - 320us 66 * Timer 2 - 320us
67 */ 67 */
68 68
69static int snd_gf1_timer2_start(snd_timer_t * timer) 69static int snd_gf1_timer2_start(struct snd_timer * timer)
70{ 70{
71 unsigned long flags; 71 unsigned long flags;
72 unsigned char tmp; 72 unsigned char tmp;
73 unsigned int ticks; 73 unsigned int ticks;
74 snd_gus_card_t *gus; 74 struct snd_gus_card *gus;
75 75
76 gus = snd_timer_chip(timer); 76 gus = snd_timer_chip(timer);
77 spin_lock_irqsave(&gus->reg_lock, flags); 77 spin_lock_irqsave(&gus->reg_lock, flags);
@@ -84,11 +84,11 @@ static int snd_gf1_timer2_start(snd_timer_t * timer)
84 return 0; 84 return 0;
85} 85}
86 86
87static int snd_gf1_timer2_stop(snd_timer_t * timer) 87static int snd_gf1_timer2_stop(struct snd_timer * timer)
88{ 88{
89 unsigned long flags; 89 unsigned long flags;
90 unsigned char tmp; 90 unsigned char tmp;
91 snd_gus_card_t *gus; 91 struct snd_gus_card *gus;
92 92
93 gus = snd_timer_chip(timer); 93 gus = snd_timer_chip(timer);
94 spin_lock_irqsave(&gus->reg_lock, flags); 94 spin_lock_irqsave(&gus->reg_lock, flags);
@@ -102,18 +102,18 @@ static int snd_gf1_timer2_stop(snd_timer_t * timer)
102 102
103 */ 103 */
104 104
105static void snd_gf1_interrupt_timer1(snd_gus_card_t * gus) 105static void snd_gf1_interrupt_timer1(struct snd_gus_card * gus)
106{ 106{
107 snd_timer_t *timer = gus->gf1.timer1; 107 struct snd_timer *timer = gus->gf1.timer1;
108 108
109 if (timer == NULL) 109 if (timer == NULL)
110 return; 110 return;
111 snd_timer_interrupt(timer, timer->sticks); 111 snd_timer_interrupt(timer, timer->sticks);
112} 112}
113 113
114static void snd_gf1_interrupt_timer2(snd_gus_card_t * gus) 114static void snd_gf1_interrupt_timer2(struct snd_gus_card * gus)
115{ 115{
116 snd_timer_t *timer = gus->gf1.timer2; 116 struct snd_timer *timer = gus->gf1.timer2;
117 117
118 if (timer == NULL) 118 if (timer == NULL)
119 return; 119 return;
@@ -124,7 +124,7 @@ static void snd_gf1_interrupt_timer2(snd_gus_card_t * gus)
124 124
125 */ 125 */
126 126
127static struct _snd_timer_hardware snd_gf1_timer1 = 127static struct snd_timer_hardware snd_gf1_timer1 =
128{ 128{
129 .flags = SNDRV_TIMER_HW_STOP, 129 .flags = SNDRV_TIMER_HW_STOP,
130 .resolution = 80000, 130 .resolution = 80000,
@@ -133,7 +133,7 @@ static struct _snd_timer_hardware snd_gf1_timer1 =
133 .stop = snd_gf1_timer1_stop, 133 .stop = snd_gf1_timer1_stop,
134}; 134};
135 135
136static struct _snd_timer_hardware snd_gf1_timer2 = 136static struct snd_timer_hardware snd_gf1_timer2 =
137{ 137{
138 .flags = SNDRV_TIMER_HW_STOP, 138 .flags = SNDRV_TIMER_HW_STOP,
139 .resolution = 320000, 139 .resolution = 320000,
@@ -142,22 +142,22 @@ static struct _snd_timer_hardware snd_gf1_timer2 =
142 .stop = snd_gf1_timer2_stop, 142 .stop = snd_gf1_timer2_stop,
143}; 143};
144 144
145static void snd_gf1_timer1_free(snd_timer_t *timer) 145static void snd_gf1_timer1_free(struct snd_timer *timer)
146{ 146{
147 snd_gus_card_t *gus = timer->private_data; 147 struct snd_gus_card *gus = timer->private_data;
148 gus->gf1.timer1 = NULL; 148 gus->gf1.timer1 = NULL;
149} 149}
150 150
151static void snd_gf1_timer2_free(snd_timer_t *timer) 151static void snd_gf1_timer2_free(struct snd_timer *timer)
152{ 152{
153 snd_gus_card_t *gus = timer->private_data; 153 struct snd_gus_card *gus = timer->private_data;
154 gus->gf1.timer2 = NULL; 154 gus->gf1.timer2 = NULL;
155} 155}
156 156
157void snd_gf1_timers_init(snd_gus_card_t * gus) 157void snd_gf1_timers_init(struct snd_gus_card * gus)
158{ 158{
159 snd_timer_t *timer; 159 struct snd_timer *timer;
160 snd_timer_id_t tid; 160 struct snd_timer_id tid;
161 161
162 if (gus->gf1.timer1 != NULL || gus->gf1.timer2 != NULL) 162 if (gus->gf1.timer1 != NULL || gus->gf1.timer2 != NULL)
163 return; 163 return;
@@ -190,7 +190,7 @@ void snd_gf1_timers_init(snd_gus_card_t * gus)
190 gus->gf1.timer2 = timer; 190 gus->gf1.timer2 = timer;
191} 191}
192 192
193void snd_gf1_timers_done(snd_gus_card_t * gus) 193void snd_gf1_timers_done(struct snd_gus_card * gus)
194{ 194{
195 snd_gf1_set_default_handlers(gus, SNDRV_GF1_HANDLER_TIMER1 | SNDRV_GF1_HANDLER_TIMER2); 195 snd_gf1_set_default_handlers(gus, SNDRV_GF1_HANDLER_TIMER1 | SNDRV_GF1_HANDLER_TIMER2);
196 if (gus->gf1.timer1) { 196 if (gus->gf1.timer1) {