Lines Matching refs:card
626 static int open_ctl(long card, snd_ctl_t **ctl) in open_ctl() argument
629 snprintf(name, sizeof(name), "hw:%li", card); in open_ctl()
752 int snd_determine_driver(int card, char **driver) in snd_determine_driver() argument
759 assert(card >= 0 && card <= SND_MAX_CARDS); in snd_determine_driver()
760 err = open_ctl(card, &ctl); in snd_determine_driver()
762 SNDERR("could not open control for card %i", card); in snd_determine_driver()
807 long card; in snd_func_private_card_driver() local
814 err = snd_config_get_integer(private_data, &card); in snd_func_private_card_driver()
819 if ((err = snd_determine_driver(card, &driver)) < 0) in snd_func_private_card_driver()
836 int card, err; in parse_card() local
853 card = snd_card_get_index(str); in parse_card()
854 if (card < 0) in parse_card()
857 return card; in parse_card()
881 int card, err; in snd_func_card_inum() local
883 card = parse_card(root, src, private_data); in snd_func_card_inum()
884 if (card < 0) in snd_func_card_inum()
885 return card; in snd_func_card_inum()
888 err = snd_config_imake_integer(dst, id, card); in snd_func_card_inum()
916 int card, err; in snd_func_card_driver() local
918 card = parse_card(root, src, private_data); in snd_func_card_driver()
919 if (card < 0) in snd_func_card_driver()
920 return card; in snd_func_card_driver()
921 err = snd_config_imake_integer(&val, "card", card); in snd_func_card_driver()
955 int card, err; in snd_func_card_id() local
957 card = parse_card(root, src, private_data); in snd_func_card_id()
958 if (card < 0) in snd_func_card_id()
959 return card; in snd_func_card_id()
960 err = open_ctl(card, &ctl); in snd_func_card_id()
962 SNDERR("could not open control for card %i", card); in snd_func_card_id()
1006 int card, err; in snd_func_card_name() local
1008 card = parse_card(root, src, private_data); in snd_func_card_name()
1009 if (card < 0) in snd_func_card_name()
1010 return card; in snd_func_card_name()
1011 err = open_ctl(card, &ctl); in snd_func_card_name()
1013 SNDERR("could not open control for card %i", card); in snd_func_card_name()
1062 long card, device, subdevice = 0; in snd_func_pcm_id() local
1065 card = parse_card(root, src, private_data); in snd_func_pcm_id()
1066 if (card < 0) in snd_func_pcm_id()
1067 return card; in snd_func_pcm_id()
1095 err = open_ctl(card, &ctl); in snd_func_pcm_id()
1097 SNDERR("could not open control for card %li", card); in snd_func_pcm_id()
1146 int card = -1, dev; in snd_func_pcm_args_by_class() local
1183 err = snd_card_next(&card); in snd_func_pcm_args_by_class()
1188 if (card < 0) in snd_func_pcm_args_by_class()
1190 err = open_ctl(card, &ctl); in snd_func_pcm_args_by_class()
1192 SNDERR("could not open control for card %i", card); in snd_func_pcm_args_by_class()
1199 SNDERR("could not get next pcm for card %i", card); in snd_func_pcm_args_by_class()
1224 snprintf(name, sizeof(name), "CARD=%i,DEV=%i", card, dev); in snd_func_pcm_args_by_class()