Lines Matching refs:card
55 a card number (integers).
59 a card identification. The result is a string.
61 a card's name. The result is a string.
147 * \brief Gets the card number from a configuration node.
149 * \return The card number if successful, otherwise a negative error code.
165 SNDERR("Cannot get card index for %s", str);
626 static int open_ctl(long card, snd_ctl_t **ctl)
629 snprintf(name, sizeof(name), "hw:%li", card);
752 int snd_determine_driver(int card, char **driver)
759 assert(card >= 0 && card <= SND_MAX_CARDS);
760 err = open_ctl(card, &ctl);
762 SNDERR("could not open control for card %i", card);
791 * id "card").
807 long card;
809 err = snd_config_test_id(private_data, "card");
811 SNDERR("field card not found");
814 err = snd_config_get_integer(private_data, &card);
816 SNDERR("field card is not an integer");
819 if ((err = snd_determine_driver(card, &driver)) < 0)
836 int card, err;
838 err = snd_config_search(src, "card", &n);
840 SNDERR("field card not found");
845 SNDERR("error evaluating card");
850 SNDERR("field card is not an integer or a string");
853 card = snd_card_get_index(str);
854 if (card < 0)
855 SNDERR("cannot find card '%s'", str);
857 return card;
861 * \brief Returns the card number as integer.
865 * \param src Handle to the source node, with a \c card definition.
873 card '0'
881 int card, err;
883 card = parse_card(root, src, private_data);
884 if (card < 0)
885 return card;
888 err = snd_config_imake_integer(dst, id, card);
896 * \brief Returns the driver identification for a card.
900 * \param src Handle to the source node, with a \c card definition.
908 card 0
916 int card, err;
918 card = parse_card(root, src, private_data);
919 if (card < 0)
920 return card;
921 err = snd_config_imake_integer(&val, "card", card);
933 * \brief Returns the identification of a card.
937 * \param src Handle to the source node, with a \c card definition.
945 card 0
955 int card, err;
957 card = parse_card(root, src, private_data);
958 if (card < 0)
959 return card;
960 err = open_ctl(card, &ctl);
962 SNDERR("could not open control for card %i", card);
984 * \brief Returns the name of a card.
988 * \param src Handle to the source node, with a \c card definition.
996 card 0
1006 int card, err;
1008 card = parse_card(root, src, private_data);
1009 if (card < 0)
1010 return card;
1011 err = open_ctl(card, &ctl);
1013 SNDERR("could not open control for card %i", card);
1049 * \param src Handle to the source node, with definitions for \c card,
1058 card 0
1070 long card, device, subdevice = 0;
1073 card = parse_card(root, src, private_data);
1074 if (card < 0)
1075 return card;
1103 err = open_ctl(card, &ctl);
1105 SNDERR("could not open control for card %li", card);
1129 * \brief Returns the pcm card and device arguments (in form CARD=N,DEV=M)
1154 int card = -1, dev;
1191 err = snd_card_next(&card);
1193 SNDERR("could not get next card");
1196 if (card < 0)
1198 err = open_ctl(card, &ctl);
1200 SNDERR("could not open control for card %i", card);
1207 SNDERR("could not get next pcm for card %i", card);
1232 snprintf(name, sizeof(name), "CARD=%i,DEV=%i", card, dev);