[pulseaudio-discuss] [RFC v2 0/6] Automatically enable loopback on sources

Frédéric Dalleau frederic.dalleau at linux.intel.com
Fri Jan 27 02:08:22 PST 2012


Hi,

This patch series tries to automatically enable loopback on bluetooth sources
and sinks. This is useful when listening music from the phone or to answer
phonecall using empathy/bluez/ofono/telepathy-ring without command line
interactions. Basically the loopback module is loaded when the profile changes.
The usage of this feature is restricted to only HFGW and A2DP sink role
(aka Handsfree Gateway and High Fidelity Capture profiles).
HFAG and A2DP source role do not have the same semantics.

Second try, this time written in a module.
I added some code to switch the profile based on some policy decison.
Still needing a lot of test however.

Frédéric

Frédéric Dalleau (6):
  bluetooth: module-bluetooth-policy initial commit
  bluetooth: Add hooks for module-loopback unloading
  bluetooth: Restrict loopback to hfgw and a2dp_source
  bluetooth: Automatic profile selection
  bluetooth: Remove automatic hfgw switch
  bluetooth: Remove profile parameter at module loading

 src/Makefile.am                                   |    7 +
 src/modules/bluetooth/module-bluetooth-device.c   |   50 ---
 src/modules/bluetooth/module-bluetooth-discover.c |   15 -
 src/modules/bluetooth/module-bluetooth-policy.c   |  338 +++++++++++++++++++++
 4 files changed, 345 insertions(+), 65 deletions(-)
 create mode 100644 src/modules/bluetooth/module-bluetooth-policy.c

-- 
1.7.5.4



More information about the pulseaudio-discuss mailing list