Lines Matching refs:acard
102 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, in snd_wavefront_pnp() argument
112 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_wavefront_pnp()
113 if (acard->wss == NULL) in snd_wavefront_pnp()
128 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
129 if (acard->mpu == NULL) in snd_wavefront_pnp()
135 acard->synth = pnp_request_card_device(card, id->devs[3].id, NULL); in snd_wavefront_pnp()
136 if (acard->synth == NULL) in snd_wavefront_pnp()
141 pdev = acard->wss; in snd_wavefront_pnp()
169 pdev = acard->synth; in snd_wavefront_pnp()
187 pdev = acard->mpu; in snd_wavefront_pnp()
219 snd_wavefront_card_t *acard; in snd_wavefront_ics2115_interrupt() local
221 acard = (snd_wavefront_card_t *) dev_id; in snd_wavefront_ics2115_interrupt()
223 if (acard == NULL) in snd_wavefront_ics2115_interrupt()
226 if (acard->wavefront.interrupts_are_midi) { in snd_wavefront_ics2115_interrupt()
227 snd_wavefront_midi_interrupt (acard); in snd_wavefront_ics2115_interrupt()
229 snd_wavefront_internal_interrupt (acard); in snd_wavefront_ics2115_interrupt()
236 snd_wavefront_card_t *acard) in snd_wavefront_new_synth() argument
240 if (snd_wavefront_detect (acard) < 0) { in snd_wavefront_new_synth()
244 if (snd_wavefront_start (&acard->wavefront) < 0) { in snd_wavefront_new_synth()
261 snd_wavefront_card_t *acard, in snd_wavefront_new_fx() argument
267 if (snd_wavefront_fx_start (&acard->wavefront)) { in snd_wavefront_new_fx()
287 snd_wavefront_card_t *acard, in snd_wavefront_new_midi() argument
297 acard->wavefront.midi.base = port; in snd_wavefront_new_midi()
298 if (snd_wavefront_midi_start (acard)) { in snd_wavefront_new_midi()
328 snd_wavefront_card_t *acard = (snd_wavefront_card_t *)card->private_data; in snd_wavefront_free() local
330 if (acard) { in snd_wavefront_free()
331 release_and_free_resource(acard->wavefront.res_base); in snd_wavefront_free()
332 if (acard->wavefront.irq > 0) in snd_wavefront_free()
333 free_irq(acard->wavefront.irq, (void *)acard); in snd_wavefront_free()
341 snd_wavefront_card_t *acard; in snd_wavefront_card_new() local
349 acard = card->private_data; in snd_wavefront_card_new()
350 acard->wavefront.irq = -1; in snd_wavefront_card_new()
351 spin_lock_init(&acard->wavefront.irq_lock); in snd_wavefront_card_new()
352 init_waitqueue_head(&acard->wavefront.interrupt_sleeper); in snd_wavefront_card_new()
353 spin_lock_init(&acard->wavefront.midi.open); in snd_wavefront_card_new()
354 spin_lock_init(&acard->wavefront.midi.virtual); in snd_wavefront_card_new()
355 acard->wavefront.card = card; in snd_wavefront_card_new()
365 snd_wavefront_card_t *acard = card->private_data; in snd_wavefront_probe() local
411 acard->wavefront.res_base = request_region(ics2115_port[dev], 16, in snd_wavefront_probe()
413 if (acard->wavefront.res_base == NULL) { in snd_wavefront_probe()
419 0, "ICS2115", acard)) { in snd_wavefront_probe()
424 acard->wavefront.irq = ics2115_irq[dev]; in snd_wavefront_probe()
425 acard->wavefront.base = ics2115_port[dev]; in snd_wavefront_probe()
427 wavefront_synth = snd_wavefront_new_synth(card, hw_dev, acard); in snd_wavefront_probe()
464 acard, in snd_wavefront_probe()
480 acard, in snd_wavefront_probe()
492 if (acard->wavefront.has_fx) { in snd_wavefront_probe()
495 acard, in snd_wavefront_probe()