Lines Matching defs:card
41 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */
318 But it doesn't work on my card,
706 static int snd_miro_mixer(struct snd_card *card,
712 if (snd_BUG_ON(!miro || !card))
717 strcpy(card->mixername, "ACI & OPTi924");
720 strcpy(card->mixername, "ACI & OPTi929");
728 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_controls[idx], miro))) < 0)
735 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_line_control[0], miro))) < 0)
737 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_amp_control[0], miro))) < 0)
744 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_preamp_control[0], miro))) < 0)
747 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_capture_control[0], miro))) < 0)
753 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_radio_control[0], miro))) < 0)
756 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_eq_controls[idx], miro))) < 0)
987 static void snd_miro_proc_init(struct snd_card *card,
990 snd_card_ro_proc_new(card, "miro", miro, snd_miro_proc_read);
1177 static int snd_card_miro_detect(struct snd_card *card,
1195 static int snd_card_miro_aci_detect(struct snd_card *card,
1250 static void snd_card_miro_free(struct snd_card *card)
1252 struct snd_miro *miro = card->private_data;
1260 static int snd_miro_probe(struct snd_card *card)
1263 struct snd_miro *miro = card->private_data;
1277 error = snd_card_miro_aci_detect(card, miro);
1291 snd_miro_proc_init(card, miro);
1297 error = snd_wss_create(card, miro->wss_base + 4, -1,
1317 error = snd_miro_mixer(card, miro);
1322 /* It looks like a miro sound card. */
1325 sprintf(card->shortname,
1329 sprintf(card->shortname,
1333 sprintf(card->shortname,
1337 sprintf(card->shortname,
1343 snd_printk(KERN_INFO "found unsupported aci card\n");
1344 sprintf(card->shortname, "unknown Cardinal Technologies");
1347 strcpy(card->driver, "miro");
1348 snprintf(card->longname, sizeof(card->longname),
1350 card->shortname, miro->name, codec->pcm->name,
1356 error = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401,
1367 if (snd_opl4_create(card, fm_port, fm_port - 8,
1377 return snd_card_register(card);
1403 struct snd_card *card;
1406 sizeof(struct snd_miro), &card);
1410 card->private_free = snd_card_miro_free;
1411 miro = card->private_data;
1413 error = snd_card_miro_detect(card, miro);
1415 snd_card_free(card);
1423 snd_card_free(card);
1432 snd_card_free(card);
1442 snd_card_free(card);
1450 snd_card_free(card);
1459 snd_card_free(card);
1467 snd_card_free(card);
1473 error = snd_miro_probe(card);
1475 snd_card_free(card);
1479 dev_set_drvdata(devptr, card);
1505 struct pnp_card_link *card,
1513 pdev = pnp_request_card_device(card, pid->devs[0].id, NULL);
1517 devmpu = pnp_request_card_device(card, pid->devs[1].id, NULL);
1521 devmc = pnp_request_card_device(card, pid->devs[2].id, NULL);
1542 * The MC(0) is never accessed and the miroSOUND PCM20 card does not
1568 struct snd_card *card;
1576 err = snd_card_new(&pcard->card->dev, index, id, THIS_MODULE,
1577 sizeof(struct snd_miro), &card);
1581 card->private_free = snd_card_miro_free;
1582 miro = card->private_data;
1586 snd_card_free(card);
1593 snd_card_free(card);
1600 snd_card_free(card);
1604 err = snd_miro_probe(card);
1606 snd_card_free(card);
1609 pnp_set_card_drvdata(pcard, card);