[pulseaudio-discuss] [PATCH v2 19/22] bluetooth: Avoid suspend-on-idle for A2DP source

Mikel Astiz mikel.astiz.oss at gmail.com
Fri Aug 31 03:51:11 PDT 2012


From: Mikel Astiz <mikel.astiz at bmw-carit.de>

When PA is doing sink role (headset role), the stream should not be
suspended automatically because of idle, since many phones (i.e. iPhone)
will try to resume it immediately afterwards.
---
 src/modules/bluetooth/module-bluetooth-device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index aac7e9d..d7366c5 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -1787,7 +1787,7 @@ static int add_source(struct userdata *u) {
         pa_proplist_sets(data.proplist, "bluetooth.protocol", profile_to_string(u->profile));
         if (u->profile == PROFILE_HSP)
             pa_proplist_sets(data.proplist, PA_PROP_DEVICE_INTENDED_ROLES, "phone");
-        else if (u->profile == PROFILE_HFGW)
+        else if (u->profile == PROFILE_HFGW || u->profile == PROFILE_A2DP_SOURCE)
             pa_proplist_sets(data.proplist, "module-suspend-on-idle.timeout", "3600");
 
         data.card = u->card;
-- 
1.7.7.6



More information about the pulseaudio-discuss mailing list