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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx>

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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux