Lines Matching refs:acard
89 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, in snd_wavefront_pnp() argument
99 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_wavefront_pnp()
100 if (acard->wss == NULL) in snd_wavefront_pnp()
115 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
116 if (acard->mpu == NULL) in snd_wavefront_pnp()
122 acard->synth = pnp_request_card_device(card, id->devs[3].id, NULL); in snd_wavefront_pnp()
123 if (acard->synth == NULL) in snd_wavefront_pnp()
128 pdev = acard->wss; in snd_wavefront_pnp()
156 pdev = acard->synth; in snd_wavefront_pnp()
174 pdev = acard->mpu; in snd_wavefront_pnp()
206 snd_wavefront_card_t *acard; in snd_wavefront_ics2115_interrupt() local
208 acard = (snd_wavefront_card_t *) dev_id; in snd_wavefront_ics2115_interrupt()
210 if (acard == NULL) in snd_wavefront_ics2115_interrupt()
213 if (acard->wavefront.interrupts_are_midi) { in snd_wavefront_ics2115_interrupt()
214 snd_wavefront_midi_interrupt (acard); in snd_wavefront_ics2115_interrupt()
216 snd_wavefront_internal_interrupt (acard); in snd_wavefront_ics2115_interrupt()
223 snd_wavefront_card_t *acard) in snd_wavefront_new_synth() argument
227 if (snd_wavefront_detect (acard) < 0) { in snd_wavefront_new_synth()
231 if (snd_wavefront_start (&acard->wavefront) < 0) { in snd_wavefront_new_synth()
248 snd_wavefront_card_t *acard, in snd_wavefront_new_fx() argument
254 if (snd_wavefront_fx_start (&acard->wavefront)) { in snd_wavefront_new_fx()
274 snd_wavefront_card_t *acard, in snd_wavefront_new_midi() argument
284 acard->wavefront.midi.base = port; in snd_wavefront_new_midi()
285 if (snd_wavefront_midi_start (acard)) { in snd_wavefront_new_midi()
315 snd_wavefront_card_t *acard = (snd_wavefront_card_t *)card->private_data; in snd_wavefront_free() local
317 if (acard) { in snd_wavefront_free()
318 release_and_free_resource(acard->wavefront.res_base); in snd_wavefront_free()
319 if (acard->wavefront.irq > 0) in snd_wavefront_free()
320 free_irq(acard->wavefront.irq, (void *)acard); in snd_wavefront_free()
328 snd_wavefront_card_t *acard; in snd_wavefront_card_new() local
336 acard = card->private_data; in snd_wavefront_card_new()
337 acard->wavefront.irq = -1; in snd_wavefront_card_new()
338 spin_lock_init(&acard->wavefront.irq_lock); in snd_wavefront_card_new()
339 init_waitqueue_head(&acard->wavefront.interrupt_sleeper); in snd_wavefront_card_new()
340 spin_lock_init(&acard->wavefront.midi.open); in snd_wavefront_card_new()
341 spin_lock_init(&acard->wavefront.midi.virtual); in snd_wavefront_card_new()
342 acard->wavefront.card = card; in snd_wavefront_card_new()
352 snd_wavefront_card_t *acard = card->private_data; in snd_wavefront_probe() local
398 acard->wavefront.res_base = request_region(ics2115_port[dev], 16, in snd_wavefront_probe()
400 if (acard->wavefront.res_base == NULL) { in snd_wavefront_probe()
406 0, "ICS2115", acard)) { in snd_wavefront_probe()
411 acard->wavefront.irq = ics2115_irq[dev]; in snd_wavefront_probe()
412 acard->wavefront.base = ics2115_port[dev]; in snd_wavefront_probe()
414 wavefront_synth = snd_wavefront_new_synth(card, hw_dev, acard); in snd_wavefront_probe()
451 acard, in snd_wavefront_probe()
467 acard, in snd_wavefront_probe()
479 if (acard->wavefront.has_fx) { in snd_wavefront_probe()
482 acard, in snd_wavefront_probe()