Lines Matching defs:card

35 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;	/* ID for this card */
36 static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */
66 AEBs are detected at card initialization
487 struct snd_card *card;
595 static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp);
596 static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp);
660 dev_dbg(hdsp->card->dev,
668 dev_err(hdsp->card->dev, "no IO box connected!\n");
685 dev_dbg(hdsp->card->dev, "iobox found after %ums!\n",
691 dev_info(hdsp->card->dev, "no IO box connected!\n");
714 dev_info(hdsp->card->dev, "loading firmware\n");
720 dev_info(hdsp->card->dev,
731 dev_info(hdsp->card->dev,
748 dev_info(hdsp->card->dev, "finished firmware loading\n");
752 dev_info(hdsp->card->dev,
785 dev_info(hdsp->card->dev, "Digiface found\n");
802 dev_info(hdsp->card->dev, "RPM found\n");
817 dev_info(hdsp->card->dev, "Multiface found\n");
832 dev_err(hdsp->card->dev, "firmware not present.\n");
837 dev_err(hdsp->card->dev,
842 dev_err(hdsp->card->dev,
871 dev_warn(hdsp->card->dev,
989 dev_warn(hdsp->card->dev,
1000 /* For the 9632 card, there seems to be no bit for indicating external
1001 * sample rate greater than 96kHz. The card reports the corresponding
1124 /* request from ctl or card initialization */
1125 dev_err(hdsp->card->dev,
1134 dev_info(hdsp->card->dev,
1137 dev_info(hdsp->card->dev,
1140 dev_info(hdsp->card->dev,
1213 dev_warn(hdsp->card->dev,
1504 static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id)
1517 snprintf(buf, sizeof(buf), "%s MIDI %d", card->shortname, id + 1);
1518 if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0)
3256 static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp)
3265 err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp));
3273 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_controls[idx], hdsp))) < 0)
3282 if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp))))
3287 if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp))))
3295 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_9632_controls[idx], hdsp))) < 0)
3300 /* AEB control for H96xx card */
3302 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_96xx_aeb, hdsp))) < 0)
3329 hdsp->card->number + 1);
3692 snd_card_ro_proc_new(hdsp->card, "hdsp", hdsp, snd_hdsp_proc_read);
3709 dev_err(hdsp->card->dev,
3719 /* Tell the card where it is */
4477 snd_ctl_notify(hdsp->card, SNDRV_CTL_EVENT_MASK_VALUE |
4496 snd_ctl_notify(hdsp->card, SNDRV_CTL_EVENT_MASK_VALUE |
4704 dev_err(hdsp->card->dev,
4705 "firmware needs to be uploaded to the card.\n");
4816 dev_info(hdsp->card->dev,
4850 if ((err = snd_hdsp_create_alsa_devices(hdsp->card, hdsp)) < 0) {
4851 dev_err(hdsp->card->dev,
4895 static int snd_hdsp_create_hwdep(struct snd_card *card, struct hdsp *hdsp)
4900 if ((err = snd_hwdep_new(card, "HDSP hwdep", 0, &hw)) < 0)
4913 static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp)
4918 if ((err = snd_pcm_new(card, hdsp->card_name, 0, 1, 1, &pcm)) < 0)
4944 dev_err(hdsp->card->dev,
5014 static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp)
5018 if ((err = snd_hdsp_create_pcm(card, hdsp)) < 0) {
5019 dev_err(card->dev,
5025 if ((err = snd_hdsp_create_midi(card, hdsp, 0)) < 0) {
5026 dev_err(card->dev,
5032 if ((err = snd_hdsp_create_midi(card, hdsp, 1)) < 0) {
5033 dev_err(card->dev,
5039 if ((err = snd_hdsp_create_controls(card, hdsp)) < 0) {
5040 dev_err(card->dev,
5054 dev_err(card->dev,
5060 strcpy(card->shortname, "Hammerfall DSP");
5061 sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name,
5064 if ((err = snd_card_register(card)) < 0) {
5065 dev_err(card->dev,
5066 "error registering card\n");
5109 dev_err(hdsp->card->dev,
5115 dev_err(hdsp->card->dev,
5120 dev_err(hdsp->card->dev,
5138 if ((err = snd_hdsp_create_hwdep(hdsp->card, hdsp)) < 0) {
5139 dev_err(hdsp->card->dev,
5145 if ((err = snd_hdsp_create_alsa_devices(hdsp->card, hdsp)) < 0) {
5146 dev_err(hdsp->card->dev,
5154 static int snd_hdsp_create(struct snd_card *card,
5180 hdsp->card = card;
5190 "It is important that the card's latency timer register in
5198 strcpy(card->driver, "H-DSP");
5199 strcpy(card->mixername, "Xilinx FPGA");
5223 dev_err(hdsp->card->dev, "unable to remap region 0x%lx-0x%lx\n",
5230 dev_err(hdsp->card->dev, "unable to use IRQ %d\n", pci->irq);
5235 card->sync_irq = hdsp->irq;
5257 dev_err(hdsp->card->dev,
5263 dev_info(hdsp->card->dev,
5264 "card initialization pending : waiting for firmware\n");
5265 if ((err = snd_hdsp_create_hwdep(card, hdsp)) < 0)
5269 dev_info(hdsp->card->dev,
5270 "Firmware already present, initializing card.\n");
5289 if ((err = snd_hdsp_create_hwdep(card, hdsp)) < 0)
5297 if ((err = snd_hdsp_create_alsa_devices(card, hdsp)) < 0)
5329 static void snd_hdsp_card_free(struct snd_card *card)
5331 struct hdsp *hdsp = card->private_data;
5342 struct snd_card *card;
5353 sizeof(struct hdsp), &card);
5357 hdsp = card->private_data;
5358 card->private_free = snd_hdsp_card_free;
5361 err = snd_hdsp_create(card, hdsp);
5365 strcpy(card->shortname, "Hammerfall DSP");
5366 sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name,
5368 err = snd_card_register(card);
5371 snd_card_free(card);
5374 pci_set_drvdata(pci, card);