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 */
63 AEBs are detected at card initialization
488 struct snd_card *card;
590 static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp);
591 static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp);
655 dev_dbg(hdsp->card->dev,
663 dev_err(hdsp->card->dev, "no IO box connected!\n");
680 dev_dbg(hdsp->card->dev, "iobox found after %ums!\n",
686 dev_info(hdsp->card->dev, "no IO box connected!\n");
709 dev_info(hdsp->card->dev, "loading firmware\n");
715 dev_info(hdsp->card->dev,
726 dev_info(hdsp->card->dev,
743 dev_info(hdsp->card->dev, "finished firmware loading\n");
747 dev_info(hdsp->card->dev,
780 dev_info(hdsp->card->dev, "Digiface found\n");
797 dev_info(hdsp->card->dev, "RPM found\n");
812 dev_info(hdsp->card->dev, "Multiface found\n");
827 dev_err(hdsp->card->dev, "firmware not present.\n");
832 dev_err(hdsp->card->dev,
837 dev_err(hdsp->card->dev,
866 dev_warn(hdsp->card->dev,
984 dev_warn(hdsp->card->dev,
995 /* For the 9632 card, there seems to be no bit for indicating external
996 * sample rate greater than 96kHz. The card reports the corresponding
1119 /* request from ctl or card initialization */
1120 dev_err(hdsp->card->dev,
1129 dev_info(hdsp->card->dev,
1132 dev_info(hdsp->card->dev,
1135 dev_info(hdsp->card->dev,
1208 dev_warn(hdsp->card->dev,
1502 static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id)
1515 snprintf(buf, sizeof(buf), "%s MIDI %d", card->shortname, id + 1);
1516 if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0)
3308 static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp)
3317 err = snd_ctl_add(card, snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp));
3326 err = snd_ctl_add(card, kctl);
3337 err = snd_ctl_add(card, kctl);
3344 err = snd_ctl_add(card, kctl);
3354 err = snd_ctl_add(card, kctl);
3366 err = snd_ctl_add(card, kctl);
3371 /* AEB control for H96xx card */
3374 err = snd_ctl_add(card, kctl);
3402 hdsp->card->number + 1);
3765 snd_card_ro_proc_new(hdsp->card, "hdsp", hdsp, snd_hdsp_proc_read);
3775 dev_err(hdsp->card->dev,
3788 /* Tell the card where it is */
4521 snd_ctl_notify(hdsp->card, SNDRV_CTL_EVENT_MASK_VALUE |
4540 snd_ctl_notify(hdsp->card, SNDRV_CTL_EVENT_MASK_VALUE |
4747 dev_err(hdsp->card->dev,
4748 "firmware needs to be uploaded to the card.\n");
4860 dev_info(hdsp->card->dev,
4896 err = snd_hdsp_create_alsa_devices(hdsp->card, hdsp);
4898 dev_err(hdsp->card->dev,
4940 static int snd_hdsp_create_hwdep(struct snd_card *card, struct hdsp *hdsp)
4945 err = snd_hwdep_new(card, "HDSP hwdep", 0, &hw);
4959 static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp)
4964 err = snd_pcm_new(card, hdsp->card_name, 0, 1, 1, &pcm);
4991 dev_err(hdsp->card->dev,
5067 static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp)
5071 err = snd_hdsp_create_pcm(card, hdsp);
5073 dev_err(card->dev,
5079 err = snd_hdsp_create_midi(card, hdsp, 0);
5081 dev_err(card->dev,
5087 err = snd_hdsp_create_midi(card, hdsp, 1);
5089 dev_err(card->dev,
5095 err = snd_hdsp_create_controls(card, hdsp);
5097 dev_err(card->dev,
5112 dev_err(card->dev,
5118 strcpy(card->shortname, "Hammerfall DSP");
5119 sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name,
5122 err = snd_card_register(card);
5124 dev_err(card->dev,
5125 "error registering card\n");
5169 dev_err(hdsp->card->dev,
5175 dev_err(hdsp->card->dev,
5180 dev_err(hdsp->card->dev,
5200 err = snd_hdsp_create_hwdep(hdsp->card, hdsp);
5202 dev_err(hdsp->card->dev,
5208 err = snd_hdsp_create_alsa_devices(hdsp->card, hdsp);
5210 dev_err(hdsp->card->dev,
5218 static int snd_hdsp_create(struct snd_card *card,
5244 hdsp->card = card;
5254 "It is important that the card's latency timer register in
5262 strcpy(card->driver, "H-DSP");
5263 strcpy(card->mixername, "Xilinx FPGA");
5290 dev_err(hdsp->card->dev, "unable to remap region 0x%lx-0x%lx\n",
5297 dev_err(hdsp->card->dev, "unable to use IRQ %d\n", pci->irq);
5302 card->sync_irq = hdsp->irq;
5326 dev_err(hdsp->card->dev,
5332 dev_info(hdsp->card->dev,
5333 "card initialization pending : waiting for firmware\n");
5334 err = snd_hdsp_create_hwdep(card, hdsp);
5339 dev_info(hdsp->card->dev,
5340 "Firmware already present, initializing card.\n");
5360 err = snd_hdsp_create_hwdep(card, hdsp);
5369 err = snd_hdsp_create_alsa_devices(card, hdsp);
5376 static void snd_hdsp_card_free(struct snd_card *card)
5378 struct hdsp *hdsp = card->private_data;
5396 struct snd_card *card;
5407 sizeof(struct hdsp), &card);
5411 hdsp = card->private_data;
5412 card->private_free = snd_hdsp_card_free;
5415 err = snd_hdsp_create(card, hdsp);
5419 strcpy(card->shortname, "Hammerfall DSP");
5420 sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name,
5422 err = snd_card_register(card);
5425 pci_set_drvdata(pci, card);
5430 snd_card_free(card);