Lines Matching refs:card

47         "name=<name for the card/sink/source, to be prefixed> "
48 "card_name=<name for the card> "
49 "card_properties=<properties for the card> "
55 "device_id=<ALSA card index> "
126 pa_card *card;
250 /* if UCM is available for this card then update the verb */
301 d = PA_CARD_PROFILE_DATA(u->card->active_profile);
305 if (pa_alsa_ucm_set_profile(ucm, u->card, d->profile->name, NULL) < 0) {
313 am->sink = pa_alsa_sink_new(u->module, u->modargs, __FILE__, u->card, am);
317 am->source = pa_alsa_source_new(u->module, u->modargs, __FILE__, u->card, am);
330 port = pa_hashmap_get(u->card->ports, jack->name);
397 if (u->card->suspend_cause & PA_SUSPEND_SESSION)
487 if (u->card->active_profile)
488 active_available = u->card->active_profile->available;
489 PA_HASHMAP_FOREACH(profile, u->card->profiles, state) {
499 PA_HASHMAP_FOREACH(port, u->card->ports, state2) {
529 if (profile == u->card->active_profile)
535 if (u->card->active_profile)
536 pa_card_profile_set_available(u->card->active_profile, active_available);
547 PA_HASHMAP_FOREACH(p, u->card->ports, state) {
554 PA_HASHMAP_FOREACH(p, u->card->ports, state) {
595 pa_subscription_post(u->core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, u->card->index);
607 PA_HASHMAP_FOREACH(port, u->card->ports, state) {
683 pa_log("Failed to open mixer for card %d for jack detection", u->alsa_card_index);
769 static pa_hook_result_t card_suspend_changed(pa_core *c, pa_card *card, struct userdata *u) {
773 if (card->suspend_cause == 0) {
792 /* new sink input linked to sink of this card */
793 if (role && sink->card == u->card)
807 /* new source output linked to source of this card */
808 if (role && source->card == u->card)
822 /* new sink input unlinked from sink of this card */
823 if (role && sink->card == u->card)
837 /* new source output unlinked from source of this card */
838 if (role && source->card == u->card)
1061 u->card = pa_card_new(m->core, &data);
1064 if (!u->card)
1067 u->card->userdata = u;
1068 u->card->set_profile = card_set_profile;
1075 pa_card_choose_initial_profile(u->card);
1083 profile = pa_hashmap_get(u->card->profiles, profile_str);
1089 pa_card_set_profile(u->card, profile, false);
1092 pa_card_put(u->card);
1116 "PulseAudio version.", u->card->name);
1138 pa_assert(u->card);
1140 PA_IDXSET_FOREACH(sink, u->card->sinks, idx)
1143 PA_IDXSET_FOREACH(source, u->card->sources, idx)
1162 if (u->card && u->card->sinks)
1163 pa_idxset_remove_all(u->card->sinks, (pa_free_cb_t) pa_alsa_sink_free);
1165 if (u->card && u->card->sources)
1166 pa_idxset_remove_all(u->card->sources, (pa_free_cb_t) pa_alsa_source_free);
1168 if (u->card)
1169 pa_card_free(u->card);