[pulseaudio-discuss] [RFC 05/12] Fix build : Remove usage of passthrough profile
Frédéric Dalleau
frederic.dalleau at linux.intel.com
Mon Feb 6 06:24:41 PST 2012
---
src/modules/bluetooth/module-bluetooth-device.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 4cd5b8d..74887c0 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -3305,10 +3305,6 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
pa_log_warn("A2DP is not connected, refused to switch profile");
return -PA_ERR_IO;
}
- else if (device->audio_sink_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_A2DP_PASSTHROUGH) {
- pa_log_warn("A2DP Passthrough is not connected, refused to switch profile");
- return -PA_ERR_IO;
- }
else if (device->hfgw_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_HFGW) {
pa_log_warn("HandsfreeGateway is not connected, refused to switch profile");
return -PA_ERR_IO;
--
1.7.5.4
More information about the pulseaudio-discuss
mailing list