mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
bluetooth: Do not switch to HFGW automatically
Card profile hfgw should be no different from the rest, and thus no internal policy inside module-bluetooth-device should decide to switch to its profile automatically. This should be handled by policy modules.
This commit is contained in:
parent
cb2a6d34f6
commit
e492f2912e
1 changed files with 0 additions and 16 deletions
|
|
@ -1360,22 +1360,6 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us
|
||||||
} else if (dbus_message_is_signal(m, "org.bluez.HandsfreeGateway", "PropertyChanged")) {
|
} else if (dbus_message_is_signal(m, "org.bluez.HandsfreeGateway", "PropertyChanged")) {
|
||||||
pa_bt_audio_state_t state = parse_state_property_change(m);
|
pa_bt_audio_state_t state = parse_state_property_change(m);
|
||||||
|
|
||||||
switch(state) {
|
|
||||||
case PA_BT_AUDIO_STATE_INVALID:
|
|
||||||
case PA_BT_AUDIO_STATE_DISCONNECTED:
|
|
||||||
case PA_BT_AUDIO_STATE_CONNECTED:
|
|
||||||
case PA_BT_AUDIO_STATE_CONNECTING:
|
|
||||||
goto fail;
|
|
||||||
|
|
||||||
case PA_BT_AUDIO_STATE_PLAYING:
|
|
||||||
if (u->card) {
|
|
||||||
pa_log_debug("Changing profile to hfgw");
|
|
||||||
if (pa_card_set_profile(u->card, "hfgw", FALSE) < 0)
|
|
||||||
pa_log("Failed to change profile to hfgw");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (state != PA_BT_AUDIO_STATE_INVALID) {
|
if (state != PA_BT_AUDIO_STATE_INVALID) {
|
||||||
pa_device_port *port;
|
pa_device_port *port;
|
||||||
pa_port_available_t available = audio_state_to_availability(state);
|
pa_port_available_t available = audio_state_to_availability(state);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue