]> code.delx.au - pulseaudio/blobdiff - src/modules/bluetooth/module-bluetooth-policy.c
bluetooth: Change BlueZ 5 card profile name from a2dp to a2dp_sink
[pulseaudio] / src / modules / bluetooth / module-bluetooth-policy.c
index 0031ccf6335956ca4ba37a68c1b01930302fb2a5..6837f0d6f74bf1968bb84c5a19df0f1a3be5f48c 100644 (file)
@@ -172,7 +172,8 @@ static pa_hook_result_t profile_available_hook_callback(pa_core *c, pa_card_prof
         return PA_HOOK_OK;
 
     /* Do not automatically switch profiles for headsets, just in case */
-    if (pa_streq(profile->name, "hsp") || pa_streq(profile->name, "a2dp"))
+    /* TODO: remove a2dp when we decide to remove support for BlueZ 4 */
+    if (pa_streq(profile->name, "hsp") || pa_streq(profile->name, "a2dp") || pa_streq(profile->name, "a2dp_sink"))
         return PA_HOOK_OK;
 
     is_active_profile = card->active_profile == profile;