When pa_card_set_profile is called with save=false then module-card-restore start fight with module-bluetooth-policy and every second is profile changing between hsp and a2dp. So when pulseaudiu is changing profile in module-bluetooth-policy we need to save it and tell module-card-restore to not try to restore old profile. Signed-off-by: Pali Rohár <pali.rohar at gmail.com> --- src/modules/bluetooth/module-bluetooth-policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/module-bluetooth-policy.c b/src/modules/bluetooth/module-bluetooth-policy.c index 68c8ab4..74ae898 100644 --- a/src/modules/bluetooth/module-bluetooth-policy.c +++ b/src/modules/bluetooth/module-bluetooth-policy.c @@ -159,7 +159,7 @@ static void card_set_profile(struct userdata *u, pa_card *card, const char *to_p pa_log_debug("Setting card '%s' to profile '%s'", card->name, to_profile); - if (pa_card_set_profile(card, profile, false) != 0) { + if (pa_card_set_profile(card, profile, true) != 0) { pa_log_warn("Could not set profile '%s'", to_profile); continue; } -- 1.7.9.5