Lines Matching refs:best_profile
136 pa_card_profile *best_profile = NULL, *profile;
173 if (best_profile && best_prio >= prio)
176 best_profile = profile;
180 if (!best_profile) {
185 if (pa_card_set_profile(port->card, best_profile, false) != 0) {
186 pa_log_debug("Could not set profile %s", best_profile->name);
370 pa_card_profile *profile, *best_profile;
374 best_profile = pa_hashmap_get(card->profiles, "off");
380 if (profile->priority > best_profile->priority)
381 best_profile = profile;
384 return best_profile;