• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/control/

Lines Matching refs:card

55 		return info.card;
61 static int snd_card_load1(int card)
66 sprintf(control, SND_FILE_CONTROL, card);
71 sprintf(aload, SND_FILE_LOAD, card);
79 * \brief Try to load the driver for a card.
80 * \param card Card number.
83 int snd_card_load(int card)
85 return !!(snd_card_load1(card) >= 0);
89 * \brief Try to determine the next card.
90 * \param rcard pointer to card number
93 * Tries to determine the next card from given card number.
94 * If card number is -1, then the first available card is
95 * returned. If the result card number is -1, no more cards
100 int card;
104 card = *rcard;
105 card = card < 0 ? 0 : card + 1;
106 for (; card < 32; card++) {
107 if (snd_card_load(card)) {
108 *rcard = card;
117 * \brief Convert card string to an integer value.
118 * \param string String containing card identifier
122 * or the card identifier (the id parameter for sound-card drivers).
127 int card, err;
135 if (sscanf(string, "%i", &card) != 1)
137 if (card < 0 || card > 31)
139 err = snd_card_load1(card);
141 return card;
146 for (card = 0; card < 32; card++) {
148 if (! snd_card_load(card))
151 if (snd_ctl_hw_open(&handle, NULL, card, 0) < 0)
159 return card;
165 * \brief Obtain the card name.
166 * \param card Card number
167 * \param name Result - card name corresponding to card number
173 int snd_card_get_name(int card, char **name)
181 if ((err = snd_ctl_hw_open(&handle, NULL, card, 0)) < 0)
195 * \brief Obtain the card long name.
196 * \param card Card number
197 * \param name Result - card long name corresponding to card number
203 int snd_card_get_longname(int card, char **name)
211 if ((err = snd_ctl_hw_open(&handle, NULL, card, 0)) < 0)