Lines Matching defs:card
28 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
65 pdacf->card = NULL;
84 struct snd_card *card;
90 /* find an empty slot from the card list */
102 /* ok, create a card instance */
104 0, &card);
106 snd_printk(KERN_ERR "pdacf: cannot create a card instance\n");
110 pdacf = snd_pdacf_create(card);
112 snd_card_free(card);
116 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, pdacf, &ops);
119 snd_card_free(card);
124 card_list[i] = card;
141 * snd_pdacf_assign_resources - initialize the hardware and card instance.
143 * @port: i/o port for the card
144 * @irq: irq number for the card
146 * this function assigns the specified port and irq, boot the card,
154 struct snd_card *card = pdacf->card;
165 strcpy(card->driver, "PDAudio-CF");
166 sprintf(card->shortname, "Core Sound %s", card->driver);
167 sprintf(card->longname, "%s at 0x%x, irq %i",
168 card->shortname, port, irq);
174 if ((err = snd_card_register(card)) < 0)
193 snd_card_disconnect(chip->card);
194 snd_card_free_when_closed(chip->card);
228 pdacf->card->sync_irq = link->irq;