mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: load bluetooth device with connected profile
This commit is contained in:
parent
9e93b9ce0b
commit
df3f4eef2d
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ static void load_module_for_device(struct userdata *u, pa_bluetooth_device *d, p
|
||||||
|
|
||||||
/* Oh, awesome, a new device has shown up and been connected! */
|
/* Oh, awesome, a new device has shown up and been connected! */
|
||||||
|
|
||||||
args = pa_sprintf_malloc("address=\"%s\" path=\"%s\"", d->address, d->path);
|
args = pa_sprintf_malloc("address=\"%s\" path=\"%s\" profile=\"%s\"", d->address, d->path, d->headset_connected ? "hsp" : "a2dp");
|
||||||
|
|
||||||
if (pa_modargs_get_value(u->modargs, "sco_sink", NULL) &&
|
if (pa_modargs_get_value(u->modargs, "sco_sink", NULL) &&
|
||||||
pa_modargs_get_value(u->modargs, "sco_source", NULL)) {
|
pa_modargs_get_value(u->modargs, "sco_source", NULL)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue