Lines Matching refs:card
117 pa_card *card; member
292 d = PA_CARD_PROFILE_DATA(u->card->active_profile); in init_profile()
296 if (pa_alsa_ucm_set_profile(ucm, u->card, d->profile->name, NULL) < 0) { in init_profile()
304 am->sink = pa_alsa_sink_new(u->module, u->modargs, __FILE__, u->card, am); in init_profile()
308 am->source = pa_alsa_source_new(u->module, u->modargs, __FILE__, u->card, am); in init_profile()
321 port = pa_hashmap_get(u->card->ports, jack->name); in calc_port_state()
388 if (u->card->suspend_cause & PA_SUSPEND_SESSION) in report_jack_state()
468 if (u->card->active_profile) in report_jack_state()
469 active_available = u->card->active_profile->available; in report_jack_state()
470 PA_HASHMAP_FOREACH(profile, u->card->profiles, state) { in report_jack_state()
479 PA_HASHMAP_FOREACH(port, u->card->ports, state2) { in report_jack_state()
502 if (profile == u->card->active_profile) in report_jack_state()
508 if (u->card->active_profile) in report_jack_state()
509 pa_card_profile_set_available(u->card->active_profile, active_available); in report_jack_state()
520 PA_HASHMAP_FOREACH(p, u->card->ports, state) { in find_port_with_eld_device()
527 PA_HASHMAP_FOREACH(p, u->card->ports, state) { in find_port_with_eld_device()
568 …ubscription_post(u->core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, u->card->index); in hdmi_eld_changed()
580 PA_HASHMAP_FOREACH(port, u->card->ports, state) { in init_eld_ctls()
742 static pa_hook_result_t card_suspend_changed(pa_core *c, pa_card *card, struct userdata *u) { in card_suspend_changed() argument
746 if (card->suspend_cause == 0) { in card_suspend_changed()
766 if (role && sink->card == u->card) in sink_input_put_hook_callback()
781 if (role && source->card == u->card) in source_output_put_hook_callback()
796 if (role && sink->card == u->card) in sink_input_unlink_hook_callback()
811 if (role && source->card == u->card) in source_output_unlink_hook_callback()
992 u->card = pa_card_new(m->core, &data); in pa__init()
995 if (!u->card) in pa__init()
998 u->card->userdata = u; in pa__init()
999 u->card->set_profile = card_set_profile; in pa__init()
1006 pa_card_choose_initial_profile(u->card); in pa__init()
1014 profile = pa_hashmap_get(u->card->profiles, profile_str); in pa__init()
1020 pa_card_set_profile(u->card, profile, false); in pa__init()
1023 pa_card_put(u->card); in pa__init()
1047 "PulseAudio version.", u->card->name); in pa__init()
1069 pa_assert(u->card); in pa__get_n_used()
1071 PA_IDXSET_FOREACH(sink, u->card->sinks, idx) in pa__get_n_used()
1074 PA_IDXSET_FOREACH(source, u->card->sources, idx) in pa__get_n_used()
1093 if (u->card && u->card->sinks) in pa__done()
1094 pa_idxset_remove_all(u->card->sinks, (pa_free_cb_t) pa_alsa_sink_free); in pa__done()
1096 if (u->card && u->card->sources) in pa__done()
1097 pa_idxset_remove_all(u->card->sources, (pa_free_cb_t) pa_alsa_source_free); in pa__done()
1099 if (u->card) in pa__done()
1100 pa_card_free(u->card); in pa__done()