• Home
  • Raw
  • Download

Lines Matching refs:card

79 …pa_assert(c->card); /* Modify member variable directly during creation instead of using this funct…  in pa_card_profile_set_available()
85 pa_log_debug("Setting card %s profile %s to availability status %s", c->card->name, c->name, in pa_card_profile_set_available()
89 pa_assert_se(core = c->card->core); in pa_card_profile_set_available()
90 …pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, c->card->index… in pa_card_profile_set_available()
92 if (c->card->linked) in pa_card_profile_set_available()
177 profile->card = c; in pa_card_new()
180 port->card = c; in pa_card_new()
192 void pa_card_choose_initial_profile(pa_card *card) { in pa_card_choose_initial_profile() argument
197 pa_assert(card); in pa_card_choose_initial_profile()
203 pa_log_debug("Looking for initial profile for card %s", card->name); in pa_card_choose_initial_profile()
204 PA_HASHMAP_FOREACH(profile, card->profiles, state) { in pa_card_choose_initial_profile()
214 PA_HASHMAP_FOREACH(profile, card->profiles, state) { in pa_card_choose_initial_profile()
221 card->active_profile = best; in pa_card_choose_initial_profile()
222 card->save_profile = false; in pa_card_choose_initial_profile()
223 pa_log_info("%s: active_profile: %s", card->name, card->active_profile->name); in pa_card_choose_initial_profile()
226 pa_hook_fire(&card->core->hooks[PA_CORE_HOOK_CARD_CHOOSE_INITIAL_PROFILE], card); in pa_card_choose_initial_profile()
229 void pa_card_put(pa_card *card) { in pa_card_put() argument
230 pa_assert(card); in pa_card_put()
232 pa_assert_se(pa_idxset_put(card->core->cards, card, &card->index) >= 0); in pa_card_put()
233 card->linked = true; in pa_card_put()
235 pa_log_info("Created %u \"%s\"", card->index, card->name); in pa_card_put()
236 pa_hook_fire(&card->core->hooks[PA_CORE_HOOK_CARD_PUT], card); in pa_card_put()
237 …pa_subscription_post(card->core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_NEW, card->index… in pa_card_put()
280 profile->card = c; in pa_card_add_profile()
313 pa_assert(profile->card == c); in pa_card_set_profile()
382 data.card = c; in pa_card_set_preferred_port()