Lines Matching refs:card

39 #include "card.h"
44 return pa_sprintf_malloc("/card/%s", name);
87 pa_assert(c->card); /* Modify member variable directly during creation instead of using this function */
93 pa_log_debug("Setting card %s profile %s to availability status %s", c->card->name, c->name,
96 /* Post subscriptions to the card which owns us */
97 pa_assert_se(core = c->card->core);
98 pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, c->card->index);
100 if (c->card->linked)
186 profile->card = c;
189 port->card = c;
201 description = pa_sprintf_malloc("Message handler for card \"%s\"", tmp);
209 void pa_card_choose_initial_profile(pa_card *card) {
214 pa_assert(card);
220 pa_log_debug("Looking for initial profile for card %s", card->name);
221 PA_HASHMAP_FOREACH(profile, card->profiles, state) {
231 PA_HASHMAP_FOREACH(profile, card->profiles, state) {
238 card->active_profile = best;
239 card->save_profile = false;
240 card->profile_is_sticky = false;
241 pa_log_info("%s: active_profile: %s", card->name, card->active_profile->name);
244 pa_hook_fire(&card->core->hooks[PA_CORE_HOOK_CARD_CHOOSE_INITIAL_PROFILE], card);
247 void pa_card_put(pa_card *card) {
248 pa_assert(card);
250 pa_assert_se(pa_idxset_put(card->core->cards, card, &card->index) >= 0);
251 card->linked = true;
253 pa_log_info("Created %u \"%s\"", card->index, card->name);
254 pa_hook_fire(&card->core->hooks[PA_CORE_HOOK_CARD_PUT], card);
255 pa_subscription_post(card->core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_NEW, card->index);
303 profile->card = c;
355 pa_assert(profile->card == c);
358 pa_log_debug("set_profile() operation not implemented for card %u \"%s\"", c->index, c->name);
424 data.card = c;