Home
last modified time | relevance | path

Searched refs:cards (Results 1 - 18 of 18) sorted by relevance

/third_party/alsa-utils/alsactl/
H A Ddaemon.c90 static void add_card(struct card ***cards, int *count, const char *cardname) in add_card() argument
100 if ((*cards)[i] == NULL) { in add_card()
103 if ((*cards)[i]->index == index) in add_card()
126 (*cards)[findex] = card; in add_card()
128 cc = realloc(*cards, sizeof(void *) * (*count + 1)); in add_card()
135 *cards = cc; in add_card()
139 static void add_cards(struct card ***cards, int *count) in add_cards() argument
151 add_card(cards, count, cardname); in add_cards()
365 struct card **cards = NULL; in state_daemon() local
383 add_card(&cards, in state_daemon()
[all...]
/third_party/pulseaudio/src/utils/
H A Dpa-info25 local cards=()
27 [[ $line =~ $re ]] && cards+="${BASH_REMATCH[1]} "
29 echo $cards
32 local cards=($(cards_get))
33 for card in "${cards[@]}" ; do
/third_party/alsa-utils/alsamixer/
H A Dcard_select.c125 fatal_alsa_error(_("cannot enumerate sound cards"), err); in get_cards()
158 static void create_list_items(int cards) in create_list_items() argument
165 items = ccalloc(cards + 1, sizeof(ITEM*)); in create_list_items()
179 assert(i == cards); in create_list_items()
184 int cards; in create_card_select_list() local
186 cards = get_cards(); in create_card_select_list()
187 create_list_items(cards); in create_card_select_list()
/third_party/pulseaudio/src/modules/dbus/
H A Diface-core.c97 pa_hashmap *cards; member
604 const char **cards; in get_cards() local
612 *n = pa_hashmap_size(c->cards); in get_cards()
617 cards = pa_xnew(const char *, *n); in get_cards()
619 PA_HASHMAP_FOREACH(card, c->cards, state) in get_cards()
620 cards[i++] = pa_dbusiface_card_get_path(card); in get_cards()
622 return cards; in get_cards()
627 const char **cards; in handle_get_cards() local
634 cards = get_cards(c, &n); in handle_get_cards()
636 pa_dbus_send_basic_array_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, cards, in handle_get_cards()
1068 const char **cards; handle_get_all() local
[all...]
/third_party/json/tests/src/
H A Dunit-conversions.cpp1504 enum class cards {kreuz, pik, herz, karo}; class
1507 NLOHMANN_JSON_SERIALIZE_ENUM(cards,
1509 {cards::kreuz, "kreuz"},
1510 {cards::pik, "pik"},
1511 {cards::pik, "puk"}, // second entry for cards::puk; will not be used
1512 {cards::herz, "herz"},
1513 {cards::karo, "karo"}
1538 CHECK(json(cards::kreuz) == "kreuz");
1539 CHECK(json(cards
[all...]
/third_party/pulseaudio/src/modules/bluetooth/
H A Dmodule-bluetooth-policy.c183 /* Only consider bluetooth cards */ in switch_profile()
189 /* In revert_to_a2dp phase only consider cards with will_need_revert flag and remove it */ in switch_profile()
255 /* Switch profile for all cards */
256 static void switch_profile_all(pa_idxset *cards, bool revert_to_a2dp, void *userdata) { in switch_profile_all() argument
260 PA_IDXSET_FOREACH(card, cards, idx) in switch_profile_all()
272 switch_profile_all(c->cards, false, userdata); in source_output_put_hook_callback()
288 switch_profile_all(c->cards, true, userdata); in source_output_unlink_hook_callback()
302 /* Only consider bluetooth cards */ in card_init_profile_hook_callback()
355 /* Only consider bluetooth cards */ in profile_available_hook_callback()
398 PA_IDXSET_FOREACH(card, core->cards, stat in handle_all_profiles()
[all...]
H A Dbackend-ofono.c80 pa_hashmap *cards; member
431 pa_hashmap_put(backend->cards, card->path, card); in hf_audio_agent_card_found()
447 card = pa_hashmap_remove(backend->cards, path); in hf_audio_agent_card_removed()
465 pa_log_error("Failed to get a list of handsfree audio cards from ofono: %s: %s", in hf_audio_agent_get_cards_reply()
507 pa_hashmap_remove_all(backend->cards); in ofono_bus_id_destroy()
701 card = pa_hashmap_get(backend->cards, path); in hf_audio_agent_new_connection()
778 backend->cards = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, in pa_bluetooth_ofono_backend_new()
790 /* dynamic detection of handsfree audio cards */ in pa_bluetooth_ofono_backend_new()
839 pa_hashmap_free(backend->cards); in pa_bluetooth_ofono_backend_free()
/third_party/pulseaudio/src/pulsecore/
H A Dcore.c141 c->cards = pa_idxset_new(NULL, NULL); in pa_core_new()
231 pa_assert(pa_idxset_isempty(c->cards)); in core_free()
232 pa_idxset_free(c->cards, NULL); in core_free()
H A Dcore.h166 pa_idxset *clients, *cards, *sinks, *sources, *sink_inputs, *source_outputs, *modules, *scache; member
H A Dnamereg.c224 return pa_idxset_get_by_index(c->cards, idx); in pa_namereg_get()
H A Dcard.c250 pa_assert_se(pa_idxset_put(card->core->cards, card, &card->index) >= 0); in pa_card_put()
270 pa_idxset_remove_by_data(c->core->cards, c, NULL); in pa_card_free()
H A Dcli-text.c133 pa_strbuf_printf(s, "%u card(s) available.\n", pa_idxset_size(c->cards)); in pa_card_list_to_string()
135 PA_IDXSET_FOREACH(card, c->cards, idx) { in pa_card_list_to_string()
H A Dprotocol-native.c3436 card = pa_idxset_get_by_index(c->protocol->core->cards, idx); in command_get_info()
3506 i = c->protocol->core->cards; in command_get_info_list()
4669 card = pa_idxset_get_by_index(c->protocol->core->cards, idx); in command_set_card_profile()
4775 card = pa_idxset_get_by_index(c->protocol->core->cards, idx); in command_set_port_latency_offset()
H A Dcli-command.c146 { "list-cards", pa_cli_command_cards, "List cards", 1 },
1895 PA_IDXSET_FOREACH(card, c->cards, idx) { in pa_cli_command_dump()
/third_party/pulseaudio/speex/libspeexdsp/
H A Decho_diagnostic.m59 printf ('Your clock is drifting! No way the AEC will be able to do anything with that. Most likely, you''re doing capture and playback from two different cards.\n');
/third_party/alsa-lib/src/ucm/
H A Dparser.c2879 /* scan all cards and comments
2895 int i, j, cnt, err, cards; in uc_mgr_scan_master_configs() local
2901 cards = 0; in uc_mgr_scan_master_configs()
2908 cards++; in uc_mgr_scan_master_configs()
2910 cards += 4; /* plug-and-play */ in uc_mgr_scan_master_configs()
2947 list = calloc(1, (cards + cnt) * 2 * sizeof(char *)); in uc_mgr_scan_master_configs()
2954 while (j / 2 < cards) { in uc_mgr_scan_master_configs()
/third_party/pulseaudio/src/modules/
H A Dmodule-switch-on-port-available.c310 * anyway, so we ignore bluetooth cards in in port_available_hook_callback()
415 PA_IDXSET_FOREACH(card, core->cards, state) { in handle_all_unavailable()
603 PA_IDXSET_FOREACH(card, m->core->cards, idx) in pa__init()
/third_party/alsa-utils/alsa-info/
H A Dalsa-info.sh465 cat /proc/asound/cards > $TEMPDIR/alsacards.tmp
472 #Check for HDA-Intel cards codec#*
475 #Check for AC97 cards codec

Completed in 27 milliseconds