[pulseaudio-discuss] [RFC 24/24] bluetooth: Load module-loopback for hfp_ag

jprvita at gmail.com jprvita at gmail.com
Tue Mar 26 22:17:03 PDT 2013


From: João Paulo Rechi Vita <jprvita at openbossa.org>

---
 src/modules/bluetooth/module-bluetooth-policy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/bluetooth/module-bluetooth-policy.c b/src/modules/bluetooth/module-bluetooth-policy.c
index 4a90db7..d5fdcaa 100644
--- a/src/modules/bluetooth/module-bluetooth-policy.c
+++ b/src/modules/bluetooth/module-bluetooth-policy.c
@@ -83,6 +83,8 @@ static pa_hook_result_t source_put_hook_callback(pa_core *c, pa_source *source,
         role = "music";
     else if (u->enable_hfgw && pa_streq(s, "hfgw")) /* HFP profile (we're doing headset role) */
         role = "phone";
+    else if (u->enable_hfgw && pa_streq(s, "hfp_ag")) /* HFP profile (we're doing handsfree role) */
+        role = "phone";
     else {
         pa_log_debug("Profile %s cannot be selected for loopback", s);
         return PA_HOOK_OK;
@@ -120,6 +122,8 @@ static pa_hook_result_t sink_put_hook_callback(pa_core *c, pa_sink *sink, void *
 
     if (u->enable_hfgw && pa_streq(s, "hfgw")) /* HFP profile (we're doing headset role) */
         role = "phone";
+    else if (u->enable_hfgw && pa_streq(s, "hfp_ag")) /* HFP profile (we're doing handsfree role) */
+        role = "phone";
     else {
         pa_log_debug("Profile %s cannot be selected for loopback", s);
         return PA_HOOK_OK;
-- 
1.7.11.7



More information about the pulseaudio-discuss mailing list