Lines Matching refs:card
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()
128 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
135 acard->synth = pnp_request_card_device(card, id->devs[3].id, NULL); in snd_wavefront_pnp()
234 static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, in snd_wavefront_new_synth() argument
248 if (snd_hwdep_new(card, "WaveFront", hw_dev, &wavefront_synth) < 0) in snd_wavefront_new_synth()
259 static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, in snd_wavefront_new_fx() argument
272 if (snd_hwdep_new (card, "YSS225", hw_dev, &fx_processor) < 0) in snd_wavefront_new_fx()
285 static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, in snd_wavefront_new_midi() argument
304 if (snd_rawmidi_new (card, "WaveFront MIDI", midi_dev, 1, 1, &rmidi) < 0) in snd_wavefront_new_midi()
326 snd_wavefront_free(struct snd_card *card) in snd_wavefront_free() argument
328 snd_wavefront_card_t *acard = (snd_wavefront_card_t *)card->private_data; in snd_wavefront_free()
340 struct snd_card *card; in snd_wavefront_card_new() local
345 sizeof(snd_wavefront_card_t), &card); in snd_wavefront_card_new()
349 acard = card->private_data; in snd_wavefront_card_new()
355 acard->wavefront.card = card; in snd_wavefront_card_new()
356 card->private_free = snd_wavefront_free; in snd_wavefront_card_new()
358 *cardp = card; in snd_wavefront_card_new()
363 snd_wavefront_probe (struct snd_card *card, int dev) in snd_wavefront_probe() argument
365 snd_wavefront_card_t *acard = card->private_data; in snd_wavefront_probe()
375 err = snd_wss_create(card, cs4232_pcm_port[dev], -1, in snd_wavefront_probe()
396 err = snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, in snd_wavefront_probe()
427 wavefront_synth = snd_wavefront_new_synth(card, hw_dev, acard); in snd_wavefront_probe()
448 err = snd_mpu401_uart_new(card, midi_dev, MPU401_HW_CS4232, in snd_wavefront_probe()
462 snd_wavefront_new_midi (card, in snd_wavefront_probe()
478 snd_wavefront_new_midi (card, in snd_wavefront_probe()
493 fx_processor = snd_wavefront_new_fx (card, in snd_wavefront_probe()
504 strcpy(card->driver, "Tropez+"); in snd_wavefront_probe()
505 strcpy(card->shortname, "Turtle Beach Tropez+"); in snd_wavefront_probe()
508 strcpy(card->driver, "WaveFront"); in snd_wavefront_probe()
509 strcpy(card->shortname, "Turtle Beach WaveFront"); in snd_wavefront_probe()
518 sprintf(card->longname, "%s PCM 0x%lx irq %d dma %d", in snd_wavefront_probe()
519 card->driver, in snd_wavefront_probe()
525 sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); in snd_wavefront_probe()
528 sprintf (card->longname + strlen (card->longname), in snd_wavefront_probe()
534 sprintf (card->longname + strlen (card->longname), in snd_wavefront_probe()
539 return snd_card_register(card); in snd_wavefront_probe()
565 struct snd_card *card; in snd_wavefront_isa_probe() local
568 err = snd_wavefront_card_new(pdev, dev, &card); in snd_wavefront_isa_probe()
571 if ((err = snd_wavefront_probe(card, dev)) < 0) { in snd_wavefront_isa_probe()
572 snd_card_free(card); in snd_wavefront_isa_probe()
576 dev_set_drvdata(pdev, card); in snd_wavefront_isa_probe()
605 struct snd_card *card; in snd_wavefront_pnp_detect() local
615 res = snd_wavefront_card_new(&pcard->card->dev, dev, &card); in snd_wavefront_pnp_detect()
619 if (snd_wavefront_pnp (dev, card->private_data, pcard, pid) < 0) { in snd_wavefront_pnp_detect()
622 snd_card_free (card); in snd_wavefront_pnp_detect()
627 if ((res = snd_wavefront_probe(card, dev)) < 0) in snd_wavefront_pnp_detect()
630 pnp_set_card_drvdata(pcard, card); in snd_wavefront_pnp_detect()