Lines Matching defs:card
169 { "set-card-profile", pa_cli_command_card_profile, "Change the profile of a card (args: index|name, profile-name)", 3},
172 { "set-port-latency-offset", pa_cli_command_port_offset, "Change the latency of a port (args: card-index|card-name, port-name, latency-offset)", 4},
1646 pa_card *card;
1655 pa_strbuf_puts(buf, "You need to specify a card either by its name or its index.\n");
1664 if (!(card = pa_namereg_get(c, n, PA_NAMEREG_CARD))) {
1665 pa_strbuf_puts(buf, "No card found by this name or index.\n");
1669 if (!(profile = pa_hashmap_get(card->profiles, p))) {
1674 if (pa_card_set_profile(card, profile, true) < 0) {
1675 pa_strbuf_printf(buf, "Failed to set card profile to '%s'.\n", p);
1749 pa_card *card;
1758 pa_strbuf_puts(buf, "You need to specify a card either by its name or its index.\n");
1777 if (!(card = pa_namereg_get(c, n, PA_NAMEREG_CARD))) {
1778 pa_strbuf_puts(buf, "No card found by this name or index.\n");
1782 if (!(port = pa_hashmap_get(card->ports, p))) {
1837 pa_card *card;
1895 PA_IDXSET_FOREACH(card, c->cards, idx) {
1902 pa_strbuf_printf(buf, "set-card-profile %s %s\n", card->name, card->active_profile->name);