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