Lines Matching refs:card

88 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card,  in snd_wavefront_pnp()  argument
98 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_wavefront_pnp()
114 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
121 acard->synth = pnp_request_card_device(card, id->devs[3].id, NULL); in snd_wavefront_pnp()
221 static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, in snd_wavefront_new_synth() argument
235 if (snd_hwdep_new(card, "WaveFront", hw_dev, &wavefront_synth) < 0) in snd_wavefront_new_synth()
246 static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, in snd_wavefront_new_fx() argument
255 dev_err(card->dev, "cannot initialize YSS225 FX processor"); in snd_wavefront_new_fx()
259 if (snd_hwdep_new (card, "YSS225", hw_dev, &fx_processor) < 0) in snd_wavefront_new_fx()
272 static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, in snd_wavefront_new_midi() argument
286 dev_err(card->dev, "cannot initialize MIDI interface\n"); in snd_wavefront_new_midi()
291 if (snd_rawmidi_new (card, "WaveFront MIDI", midi_dev, 1, 1, &rmidi) < 0) in snd_wavefront_new_midi()
315 struct snd_card *card; in snd_wavefront_card_new() local
320 sizeof(snd_wavefront_card_t), &card); in snd_wavefront_card_new()
324 acard = card->private_data; in snd_wavefront_card_new()
330 acard->wavefront.card = card; in snd_wavefront_card_new()
332 *cardp = card; in snd_wavefront_card_new()
337 snd_wavefront_probe (struct snd_card *card, int dev) in snd_wavefront_probe() argument
339 snd_wavefront_card_t *acard = card->private_data; in snd_wavefront_probe()
349 err = snd_wss_create(card, cs4232_pcm_port[dev], -1, in snd_wavefront_probe()
353 dev_err(card->dev, "can't allocate WSS device\n"); in snd_wavefront_probe()
370 err = snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, in snd_wavefront_probe()
373 dev_err(card->dev, "can't allocate or detect OPL3 synth\n"); in snd_wavefront_probe()
386 devm_request_region(card->dev, ics2115_port[dev], 16, in snd_wavefront_probe()
389 dev_err(card->dev, "unable to grab ICS2115 i/o region 0x%lx-0x%lx\n", in snd_wavefront_probe()
393 if (devm_request_irq(card->dev, ics2115_irq[dev], in snd_wavefront_probe()
396 dev_err(card->dev, "unable to use ICS2115 IRQ %d\n", ics2115_irq[dev]); in snd_wavefront_probe()
401 card->sync_irq = acard->wavefront.irq; in snd_wavefront_probe()
404 wavefront_synth = snd_wavefront_new_synth(card, hw_dev, acard); in snd_wavefront_probe()
406 dev_err(card->dev, "can't create WaveFront synth device\n"); in snd_wavefront_probe()
418 dev_err(card->dev, "can't allocate mixer device\n"); in snd_wavefront_probe()
425 err = snd_mpu401_uart_new(card, midi_dev, MPU401_HW_CS4232, in snd_wavefront_probe()
429 dev_err(card->dev, "can't allocate CS4232 MPU-401 device\n"); in snd_wavefront_probe()
439 snd_wavefront_new_midi (card, in snd_wavefront_probe()
445 dev_err(card->dev, "can't setup ICS2115 internal MIDI device\n"); in snd_wavefront_probe()
455 snd_wavefront_new_midi (card, in snd_wavefront_probe()
461 dev_err(card->dev, "can't setup ICS2115 external MIDI device\n"); in snd_wavefront_probe()
470 fx_processor = snd_wavefront_new_fx (card, in snd_wavefront_probe()
475 dev_err(card->dev, "can't setup FX device\n"); in snd_wavefront_probe()
481 strscpy(card->driver, "Tropez+"); in snd_wavefront_probe()
482 strscpy(card->shortname, "Turtle Beach Tropez+"); in snd_wavefront_probe()
485 strscpy(card->driver, "WaveFront"); in snd_wavefront_probe()
486 strscpy(card->shortname, "Turtle Beach WaveFront"); in snd_wavefront_probe()
495 sprintf(card->longname, "%s PCM 0x%lx irq %d dma %d", in snd_wavefront_probe()
496 card->driver, in snd_wavefront_probe()
502 sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); in snd_wavefront_probe()
505 sprintf (card->longname + strlen (card->longname), in snd_wavefront_probe()
511 sprintf (card->longname + strlen (card->longname), in snd_wavefront_probe()
516 return snd_card_register(card); in snd_wavefront_probe()
542 struct snd_card *card; in snd_wavefront_isa_probe() local
545 err = snd_wavefront_card_new(pdev, dev, &card); in snd_wavefront_isa_probe()
548 err = snd_wavefront_probe(card, dev); in snd_wavefront_isa_probe()
552 dev_set_drvdata(pdev, card); in snd_wavefront_isa_probe()
573 struct snd_card *card; in snd_wavefront_pnp_detect() local
583 res = snd_wavefront_card_new(&pcard->card->dev, dev, &card); in snd_wavefront_pnp_detect()
587 if (snd_wavefront_pnp (dev, card->private_data, pcard, pid) < 0) { in snd_wavefront_pnp_detect()
589 dev_err(card->dev, "isapnp detection failed\n"); in snd_wavefront_pnp_detect()
594 res = snd_wavefront_probe(card, dev); in snd_wavefront_pnp_detect()
598 pnp_set_card_drvdata(pcard, card); in snd_wavefront_pnp_detect()