Lines Matching defs:card

144 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;	  /* ID for this card */
145 static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */
455 #define HDSPM_DoubleSpeedStatus (1<<19) /* (input) card in double speed */
593 NB: Timecode register doesn't seem to work on AES32 card revision 230
1048 struct snd_card *card; /* one card */
1089 static int snd_hdspm_create_alsa_devices(struct snd_card *card,
1091 static int snd_hdspm_create_pcm(struct snd_card *card,
1232 * automatically by the card. Only exception is MADI
1646 /* request from ctl or card initialization
1650 dev_warn(hdspm->card->dev,
1662 dev_warn(hdspm->card->dev,
1668 dev_warn(hdspm->card->dev,
1735 dev_err(hdspm->card->dev,
2054 static int snd_hdspm_create_midi(struct snd_card *card,
2118 card->shortname);
2121 card->shortname);
2124 card->shortname, id+1);
2126 err = snd_rawmidi_new(card, buf, id, 1, 1,
2133 "%s MIDI %d", card->id, id+1);
2150 card->shortname, id+1);
2151 err = snd_rawmidi_new(card, buf, id, 1, 1,
2158 "%s MTC %d", card->id, id+1);
2278 * Returns the WordClock sample rate class for the given card.
2303 * Returns the TCO sample rate class for the given card.
2329 * Returns the SYNC_IN sample rate class for the given card.
2351 * Returns the AES sample rate class for the given card.
2520 * Returns the system clock mode for the given card.
2702 * card, please see the comments for clarification.
2804 * of <pref> are depending on the card type, see the comments
4663 snd_ctl_notify(hdspm->card, SNDRV_CTL_EVENT_MASK_VALUE |
4672 static int snd_hdspm_create_controls(struct snd_card *card,
4705 err = snd_ctl_add(card,
4725 err = snd_ctl_add(card, kctl);
4737 err = snd_ctl_add(card,
4879 hdspm->card_name, hdspm->card->number + 1,
5043 hdspm->card_name, hdspm->card->number + 1,
5302 snd_card_ro_proc_new(hdspm->card, "hdspm", hdspm, read);
5303 snd_card_ro_proc_new(hdspm->card, "ports.in", hdspm,
5305 snd_card_ro_proc_new(hdspm->card, "ports.out", hdspm,
5310 snd_card_ro_proc_new(hdspm->card, "debug", hdspm,
5412 dev_info(hdspm->card->dev, "snd_hdspm_interrupt %llu @ %llx\n",
5549 dev_info(hdspm->card->dev, "err on hdspm_set_rate: %d\n", err);
5560 dev_info(hdspm->card->dev,
5577 dev_info(hdspm->card->dev,
5597 dev_dbg(hdspm->card->dev,
5614 dev_dbg(hdspm->card->dev,
5620 dev_dbg(hdspm->card->dev,
5627 dev_dbg(hdspm->card->dev,
5649 dev_info(hdspm->card->dev,
5655 dev_info(hdspm->card->dev,
5698 dev_info(hdspm->card->dev,
5706 dev_info(hdspm->card->dev,
5716 dev_info(hdspm->card->dev,
5724 dev_info(hdspm->card->dev,
6222 /* dev_err(hdspm->card->dev, "copy_to_user(.., .., %lu): %lu
6268 dev_err(hdspm->card->dev, "copy_to_user(.., .., %lu): %lu [LTC]\n", sizeof(struct hdspm_ltc), s); */
6377 static int snd_hdspm_create_hwdep(struct snd_card *card,
6383 err = snd_hwdep_new(card, "HDSPM hwdep", 0, &hw);
6415 dev_dbg(hdspm->card->dev, " Preallocated %zd Bytes\n", wanted);
6419 /* Inform the card what DMA addresses to use for the indicated channel. */
6434 static int snd_hdspm_create_pcm(struct snd_card *card,
6440 err = snd_pcm_new(card, hdspm->card_name, 0, 1, 1, &pcm);
6470 static int snd_hdspm_create_alsa_devices(struct snd_card *card,
6475 dev_dbg(card->dev, "Create card...\n");
6476 err = snd_hdspm_create_pcm(card, hdspm);
6482 err = snd_hdspm_create_midi(card, hdspm, i);
6489 err = snd_hdspm_create_controls(card, hdspm);
6493 err = snd_hdspm_create_hwdep(card, hdspm);
6497 dev_dbg(card->dev, "proc init...\n");
6508 dev_dbg(card->dev, "Set defaults...\n");
6513 dev_dbg(card->dev, "Update mixer controls...\n");
6516 dev_dbg(card->dev, "Initializing complete?\n");
6518 err = snd_card_register(card);
6520 dev_err(card->dev, "error registering card\n");
6524 dev_dbg(card->dev, "... yes now\n");
6529 static int snd_hdspm_create(struct snd_card *card,
6538 hdspm->card = card;
6546 strcpy(card->mixername, "Xilinx FPGA");
6547 strcpy(card->driver, "HDSPM");
6579 dev_err(card->dev,
6599 dev_dbg(card->dev, "grabbed memory region 0x%lx-0x%lx\n",
6604 dev_err(card->dev, "unable to remap region 0x%lx-0x%lx\n",
6608 dev_dbg(card->dev, "remapped region (0x%lx) 0x%lx-0x%lx\n",
6614 dev_err(card->dev, "unable to use IRQ %d\n", pci->irq);
6618 dev_dbg(card->dev, "use IRQ %d\n", pci->irq);
6621 card->sync_irq = hdspm->irq;
6623 dev_dbg(card->dev, "kmalloc Mixer memory of %zd Bytes\n",
6693 dev_info(card->dev, "AEB input board found\n");
6700 dev_info(card->dev, "AEB output board found\n");
6766 dev_info(card->dev, "AIO/RayDAT TCO module found\n");
6780 dev_info(card->dev, "MADI/AES TCO module found\n");
6845 * fill card->id with the serial number.
6849 * this case, we don't set card->id to avoid collisions
6853 snprintf(card->id, sizeof(card->id),
6855 snd_card_set_id(card, card->id);
6859 dev_dbg(card->dev, "create alsa devices.\n");
6860 err = snd_hdspm_create_alsa_devices(card, hdspm);
6900 static void snd_hdspm_card_free(struct snd_card *card)
6902 struct hdspm *hdspm = card->private_data;
6914 struct snd_card *card;
6925 THIS_MODULE, sizeof(*hdspm), &card);
6929 hdspm = card->private_data;
6930 card->private_free = snd_hdspm_card_free;
6934 err = snd_hdspm_create(card, hdspm);
6939 snprintf(card->shortname, sizeof(card->shortname), "%s_%x",
6941 snprintf(card->longname, sizeof(card->longname),
6946 snprintf(card->shortname, sizeof(card->shortname), "%s",
6948 snprintf(card->longname, sizeof(card->longname),
6953 err = snd_card_register(card);
6957 pci_set_drvdata(pci, card);
6963 snd_card_free(card);