mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
bluetooth: Don't force any profile on discovery module
Let device module figure out the priority based on the state of the profiles. Note that most likely all profiles will be in PA_BT_AUDIO_STATE_CONNECTED state so 'Off' will be the initial profile then it is up to the policy module to switch to the most suitable profile.
This commit is contained in:
parent
8228db051e
commit
75df8714d7
1 changed files with 0 additions and 5 deletions
|
|
@ -107,11 +107,6 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const
|
|||
args = tmp;
|
||||
}
|
||||
|
||||
if (d->hfgw_state >= PA_BT_AUDIO_STATE_CONNECTED)
|
||||
args = pa_sprintf_malloc("%s profile=\"hfgw\"", args);
|
||||
else if (d->audio_source_state >= PA_BT_AUDIO_STATE_CONNECTED)
|
||||
args = pa_sprintf_malloc("%s profile=\"a2dp_source\" auto_connect=no", args);
|
||||
|
||||
pa_log_debug("Loading module-bluetooth-device %s", args);
|
||||
m = pa_module_load(u->module->core, "module-bluetooth-device", args);
|
||||
pa_xfree(args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue