bluetooth: Change BlueZ 5 card profile name from a2dp to a2dp_sink

This name is more acurate with regards of what role we're currently
playing and we've already been using it in
pa_bluetooth_profile_to_string() since 449d6cb.
This commit is contained in:
João Paulo Rechi Vita 2014-02-04 19:03:47 -03:00 committed by Tanu Kaskinen
parent 7fe34cff61
commit 09933e582b
2 changed files with 3 additions and 4 deletions

View 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;