• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/isa/gus/

Lines Matching refs:timer

33 static int snd_gf1_timer1_start(struct snd_timer * timer)
40 gus = snd_timer_chip(timer);
42 ticks = timer->sticks;
44 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */
45 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 1 IRQ */
46 snd_gf1_adlib_write(gus, 0x04, tmp >> 2); /* timer 2 start */
51 static int snd_gf1_timer1_stop(struct snd_timer * timer)
57 gus = snd_timer_chip(timer);
60 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* disable timer #1 */
69 static int snd_gf1_timer2_start(struct snd_timer * timer)
76 gus = snd_timer_chip(timer);
78 ticks = timer->sticks;
80 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_2, 256 - ticks); /* timer 2 count */
81 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 2 IRQ */
82 snd_gf1_adlib_write(gus, 0x04, tmp >> 2); /* timer 2 start */
87 static int snd_gf1_timer2_stop(struct snd_timer * timer)
93 gus = snd_timer_chip(timer);
96 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* disable timer #1 */
107 struct snd_timer *timer = gus->gf1.timer1;
109 if (timer == NULL)
111 snd_timer_interrupt(timer, timer->sticks);
116 struct snd_timer *timer = gus->gf1.timer2;
118 if (timer == NULL)
120 snd_timer_interrupt(timer, timer->sticks);
145 static void snd_gf1_timer1_free(struct snd_timer *timer)
147 struct snd_gus_card *gus = timer->private_data;
151 static void snd_gf1_timer2_free(struct snd_timer *timer)
153 struct snd_gus_card *gus = timer->private_data;
159 struct snd_timer *timer;
174 if (snd_timer_new(gus->card, "GF1 timer", &tid, &timer) >= 0) {
175 strcpy(timer->name, "GF1 timer #1");
176 timer->private_data = gus;
177 timer->private_free = snd_gf1_timer1_free;
178 timer->hw = snd_gf1_timer1;
180 gus->gf1.timer1 = timer;
184 if (snd_timer_new(gus->card, "GF1 timer", &tid, &timer) >= 0) {
185 strcpy(timer->name, "GF1 timer #2");
186 timer->private_data = gus;
187 timer->private_free = snd_gf1_timer2_free;
188 timer->hw = snd_gf1_timer2;
190 gus->gf1.timer2 = timer;