Lines Matching full:profile
64 "profile=<profile name> "
68 "profile_set=<profile set configuration file> "
94 "profile",
109 /* dynamic profile priority bonus, for all alsa profiles, the original priority
112 other is from mixer profile-sets, their priorities are all far less than 0x7fff
139 pa_alsa_profile *profile; member
187 d->profile = ap; in add_profiles()
200 d->profile = NULL; in add_disabled_profile()
220 if (od->profile && od->profile->output_mappings) in card_set_profile()
221 PA_IDXSET_FOREACH(am, od->profile->output_mappings, idx) { in card_set_profile()
225 if (nd->profile && in card_set_profile()
226 nd->profile->output_mappings && in card_set_profile()
227 pa_idxset_get_by_data(nd->profile->output_mappings, am, NULL)) in card_set_profile()
235 if (od->profile && od->profile->input_mappings) in card_set_profile()
236 PA_IDXSET_FOREACH(am, od->profile->input_mappings, idx) { in card_set_profile()
240 if (nd->profile && in card_set_profile()
241 nd->profile->input_mappings && in card_set_profile()
242 pa_idxset_get_by_data(nd->profile->input_mappings, am, NULL)) in card_set_profile()
252 if (pa_alsa_ucm_set_profile(&u->ucm, c, nd->profile ? nd->profile->name : NULL, in card_set_profile()
253 od->profile ? od->profile->name : NULL) < 0) { in card_set_profile()
259 if (nd->profile && nd->profile->output_mappings) in card_set_profile()
260 PA_IDXSET_FOREACH(am, nd->profile->output_mappings, idx) { in card_set_profile()
271 if (nd->profile && nd->profile->input_mappings) in card_set_profile()
272 PA_IDXSET_FOREACH(am, nd->profile->input_mappings, idx) { in card_set_profile()
303 if (d->profile && u->use_ucm) { in init_profile()
305 if (pa_alsa_ucm_set_profile(ucm, u->card, d->profile->name, NULL) < 0) { in init_profile()
306 pa_log("Failed to set ucm profile %s", d->profile->name); in init_profile()
311 if (d->profile && d->profile->output_mappings) in init_profile()
312 PA_IDXSET_FOREACH(am, d->profile->output_mappings, idx) in init_profile()
315 if (d->profile && d->profile->input_mappings) in init_profile()
316 PA_IDXSET_FOREACH(am, d->profile->input_mappings, idx) in init_profile()
380 pa_card_profile *profile; in report_jack_state() local
458 /* Update profile availabilities. Ideally we would mark all profiles in report_jack_state()
460 * in all cases, because if there are multiple sinks in a profile, and the in report_jack_state()
461 * profile contains a mix of available and unavailable ports, we don't know in report_jack_state()
464 * mark the profile as unavailable, but it's also possible that all sinks in report_jack_state()
466 * profile as available. Until the data structures are improved so that we in report_jack_state()
471 * A profile will be marked unavailable: in report_jack_state()
476 * A profile will be awarded priority bonus: in report_jack_state()
485 * If there are no output ports at all, but the profile contains at least in report_jack_state()
489 PA_HASHMAP_FOREACH(profile, u->card->profiles, state) { in report_jack_state()
498 profile->priority &= ~PROFILE_PRIO_BONUS; in report_jack_state()
500 if (!pa_hashmap_get(port->profiles, profile->name)) in report_jack_state()
519 profile->priority |= PROFILE_PRIO_BONUS; in report_jack_state()
526 /* We want to update the active profile's status last, so logic that in report_jack_state()
527 * may change the active profile based on profile availability status in report_jack_state()
529 if (profile == u->card->active_profile) in report_jack_state()
532 pa_card_profile_set_available(profile, available); in report_jack_state()
1028 pa_log("Failed to find a working profile."); in pa__init()
1077 /* If the "profile" modarg is given, we have to override whatever the usual in pa__init()
1079 profile_str = pa_modargs_get_value(u->modargs, "profile", NULL); in pa__init()
1081 pa_card_profile *profile; in pa__init() local
1083 profile = pa_hashmap_get(u->card->profiles, profile_str); in pa__init()
1084 if (!profile) { in pa__init()
1085 pa_log("No such profile: %s", profile_str); in pa__init()
1089 pa_card_set_profile(u->card, profile, false); in pa__init()