media-session: don't switch to pro-audio by default

Ignore the pro-audio profile when finding the best profile. We only
want to enable the profile when explicitly set.

Fixes #761
This commit is contained in:
Wim Taymans 2021-02-18 19:49:34 +01:00
parent 7a5a944704
commit 84fc63e601

View file

@ -176,6 +176,9 @@ static int find_best_profile(struct device *dev, struct profile *pr)
parse_profile(p, &t) < 0) parse_profile(p, &t) < 0)
continue; continue;
if (t.name && strcmp(t.name, "pro-audio") == 0)
continue;
if (t.name && strcmp(t.name, "off") == 0) { if (t.name && strcmp(t.name, "off") == 0) {
off = t; off = t;
} }