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 */
454 #define HDSPM_DoubleSpeedStatus (1<<19) /* (input) card in double speed */
592 NB: Timecode register doesn't seem to work on AES32 card revision 230
1047 struct snd_card *card; /* one card */
1088 static int snd_hdspm_create_alsa_devices(struct snd_card *card,
1090 static int snd_hdspm_create_pcm(struct snd_card *card,
1231 * automatically by the card. Only exception is MADI
1645 /* request from ctl or card initialization
1649 dev_warn(hdspm->card->dev,
1661 dev_warn(hdspm->card->dev,
1667 dev_warn(hdspm->card->dev,
1734 dev_err(hdspm->card->dev,
2053 static int snd_hdspm_create_midi(struct snd_card *card,
2117 card->shortname);
2120 card->shortname);
2123 card->shortname, id+1);
2125 err = snd_rawmidi_new(card, buf, id, 1, 1,
2132 "%s MIDI %d", card->id, id+1);
2149 card->shortname, id+1);
2150 err = snd_rawmidi_new(card, buf, id, 1, 1,
2157 "%s MTC %d", card->id, id+1);
2277 * Returns the WordClock sample rate class for the given card.
2301 * Returns the TCO sample rate class for the given card.
2326 * Returns the SYNC_IN sample rate class for the given card.
2347 * Returns the AES sample rate class for the given card.
2515 * Returns the system clock mode for the given card.
2697 * card, please see the comments for clarification.
2799 * of <pref> are depending on the card type, see the comments
4654 snd_ctl_notify(hdspm->card, SNDRV_CTL_EVENT_MASK_VALUE |
4663 static int snd_hdspm_create_controls(struct snd_card *card,
4696 err = snd_ctl_add(card,
4716 err = snd_ctl_add(card, kctl);
4728 err = snd_ctl_add(card,
4870 hdspm->card_name, hdspm->card->number + 1,
5034 hdspm->card_name, hdspm->card->number + 1,
5293 snd_card_ro_proc_new(hdspm->card, "hdspm", hdspm, read);
5294 snd_card_ro_proc_new(hdspm->card, "ports.in", hdspm,
5296 snd_card_ro_proc_new(hdspm->card, "ports.out", hdspm,
5301 snd_card_ro_proc_new(hdspm->card, "debug", hdspm,
5403 dev_info(hdspm->card->dev, "snd_hdspm_interrupt %llu @ %llx\n",
5540 dev_info(hdspm->card->dev, "err on hdspm_set_rate: %d\n", err);
5551 dev_info(hdspm->card->dev,
5568 dev_info(hdspm->card->dev,
5588 dev_dbg(hdspm->card->dev,
5605 dev_dbg(hdspm->card->dev,
5611 dev_dbg(hdspm->card->dev,
5618 dev_dbg(hdspm->card->dev,
5640 dev_info(hdspm->card->dev,
5646 dev_info(hdspm->card->dev,
5689 dev_info(hdspm->card->dev,
5697 dev_info(hdspm->card->dev,
5707 dev_info(hdspm->card->dev,
5715 dev_info(hdspm->card->dev,
6207 /* dev_err(hdspm->card->dev, "copy_to_user(.., .., %lu): %lu
6253 dev_err(hdspm->card->dev, "copy_to_user(.., .., %lu): %lu [LTC]\n", sizeof(struct hdspm_ltc), s); */
6363 static int snd_hdspm_create_hwdep(struct snd_card *card,
6369 err = snd_hwdep_new(card, "HDSPM hwdep", 0, &hw);
6401 dev_dbg(hdspm->card->dev, " Preallocated %zd Bytes\n", wanted);
6405 /* Inform the card what DMA addresses to use for the indicated channel. */
6420 static int snd_hdspm_create_pcm(struct snd_card *card,
6426 err = snd_pcm_new(card, hdspm->card_name, 0, 1, 1, &pcm);
6456 static int snd_hdspm_create_alsa_devices(struct snd_card *card,
6461 dev_dbg(card->dev, "Create card...\n");
6462 err = snd_hdspm_create_pcm(card, hdspm);
6468 err = snd_hdspm_create_midi(card, hdspm, i);
6475 err = snd_hdspm_create_controls(card, hdspm);
6479 err = snd_hdspm_create_hwdep(card, hdspm);
6483 dev_dbg(card->dev, "proc init...\n");
6494 dev_dbg(card->dev, "Set defaults...\n");
6499 dev_dbg(card->dev, "Update mixer controls...\n");
6502 dev_dbg(card->dev, "Initializing complete?\n");
6504 err = snd_card_register(card);
6506 dev_err(card->dev, "error registering card\n");
6510 dev_dbg(card->dev, "... yes now\n");
6515 static int snd_hdspm_create(struct snd_card *card,
6524 hdspm->card = card;
6532 strcpy(card->mixername, "Xilinx FPGA");
6533 strcpy(card->driver, "HDSPM");
6565 dev_err(card->dev,
6585 dev_dbg(card->dev, "remapped region (0x%lx) 0x%lx-0x%lx\n",
6591 dev_err(card->dev, "unable to use IRQ %d\n", pci->irq);
6595 dev_dbg(card->dev, "use IRQ %d\n", pci->irq);
6598 card->sync_irq = hdspm->irq;
6600 dev_dbg(card->dev, "kmalloc Mixer memory of %zd Bytes\n",
6670 dev_info(card->dev, "AEB input board found\n");
6677 dev_info(card->dev, "AEB output board found\n");
6743 dev_info(card->dev, "AIO/RayDAT TCO module found\n");
6757 dev_info(card->dev, "MADI/AES TCO module found\n");
6822 * fill card->id with the serial number.
6826 * this case, we don't set card->id to avoid collisions
6830 snprintf(card->id, sizeof(card->id),
6832 snd_card_set_id(card, card->id);
6836 dev_dbg(card->dev, "create alsa devices.\n");
6837 err = snd_hdspm_create_alsa_devices(card, hdspm);
6847 static void snd_hdspm_card_free(struct snd_card *card)
6849 struct hdspm *hdspm = card->private_data;
6870 struct snd_card *card;
6881 THIS_MODULE, sizeof(*hdspm), &card);
6885 hdspm = card->private_data;
6886 card->private_free = snd_hdspm_card_free;
6890 err = snd_hdspm_create(card, hdspm);
6895 snprintf(card->shortname, sizeof(card->shortname), "%s_%x",
6897 snprintf(card->longname, sizeof(card->longname),
6902 snprintf(card->shortname, sizeof(card->shortname), "%s",
6904 snprintf(card->longname, sizeof(card->longname),
6909 err = snd_card_register(card);
6913 pci_set_drvdata(pci, card);
6919 snd_card_free(card);