diff options
author | Mikel Astiz <mikel.astiz@bmw-carit.de> | 2012-08-31 12:51:08 +0200 |
---|---|---|
committer | Jaska Uimonen <jaska.uimonen@intel.com> | 2013-01-24 09:29:36 +0200 |
commit | 4069d8c0f2ad5d1190cdbb5d22b982de9065e148 (patch) | |
tree | 87050476ed09f5cbca4cfe2c1872b55abf70d4ad | |
parent | 55b5cff4cdb6651cafa8fcbbcab226adaa7c07b0 (diff) | |
download | pulseaudio-panda-4069d8c0f2ad5d1190cdbb5d22b982de9065e148.tar.gz pulseaudio-panda-4069d8c0f2ad5d1190cdbb5d22b982de9065e148.tar.bz2 pulseaudio-panda-4069d8c0f2ad5d1190cdbb5d22b982de9065e148.zip |
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.
-rw-r--r-- | src/modules/bluetooth/module-bluetooth-device.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index ad68cfac..99a943b1 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -1295,22 +1295,6 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us } else if (dbus_message_is_signal(m, "org.bluez.HandsfreeGateway", "PropertyChanged")) { 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) { pa_device_port *port; pa_port_available_t available = audio_state_to_availability(state); |