bluez: Increase priority of A2DP quality and latency profiles

This improves the UX as the highest A2DP profile will be selected by default.
This commit is contained in:
Julian Bouzas 2026-03-23 10:55:17 -04:00 committed by Wim Taymans
parent 01b9abc5ef
commit 2e7aee3573

View file

@ -2281,17 +2281,17 @@ static struct spa_pod *build_profile(struct impl *this, struct spa_pod_builder *
case DEVICE_PROFILE_A2DP_AUTO_PREFER_QUALITY:
name = "a2dp-auto-prefer-quality";
desc = _("Auto: Prefer Quality (A2DP)");
priority = 255;
break;
case DEVICE_PROFILE_A2DP_AUTO_PREFER_LATENCY:
name = "a2dp-auto-prefer-latency";
desc = _("Auto: Prefer Latency (A2DP)");
priority = 254;
break;
default:
return NULL;
}
priority = 0;
n_sink++;
if (this->autoswitch_routes && (device->connected_profiles & SPA_BT_PROFILE_HEADSET_HEAD_UNIT))
n_source++;