Lines Matching defs:card
36 /* this one holds the actual max. card number currently available.
54 * snd_request_card - try to load the card module
55 * @card: the card number
57 * Tries to load the module "snd-card-X" for the given card number
60 void snd_request_card(int card)
62 if (snd_card_locked(card))
64 if (card < 0 || card >= cards_limit)
66 request_module("snd-card-%i", card);
92 * This function increments the reference counter of the card instance
126 int card = SNDRV_MINOR_CARD(minor);
127 struct snd_card *ref = snd_card_ref(card);
129 snd_request_card(card);
178 static int snd_find_free_minor(int type, struct snd_card *card, int dev)
201 static int snd_find_free_minor(int type, struct snd_card *card, int dev)
211 if (snd_BUG_ON(!card))
213 minor = SNDRV_MINOR(card->number, type);
220 if (snd_BUG_ON(!card))
222 minor = SNDRV_MINOR(card->number, type + dev);
236 * snd_register_device - Register the ALSA device file for the card
238 * @card: the card instance
244 * Registers an ALSA device file for the given card.
249 int snd_register_device(int type, struct snd_card *card, int dev,
264 preg->card = card ? card->number : -1;
268 preg->card_ptr = card;
270 minor = snd_find_free_minor(type, card, dev);
291 * snd_unregister_device - unregister the device on the given card
358 if (mptr->card >= 0) {
361 minor, mptr->card, mptr->device,
365 minor, mptr->card,