[pulseaudio-discuss] [RFC v2 08/18] bluetooth: module-bluetooth-device changes

Frédéric Dalleau frederic.dalleau at linux.intel.com
Thu Mar 22 09:36:32 PDT 2012


---
 src/modules/bluetooth/module-bluetooth-device.c |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 74887c0..14b196b 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -2901,7 +2901,7 @@ static void shutdown_bt(struct userdata *u) {
     }
 }
 
-static int bt_transport_config_a2dp(struct userdata *u) {
+static int bt_transport_config_a2dp_sbc(struct userdata *u) {
     const pa_bluetooth_transport *t;
     struct a2dp_info *a2dp = &u->a2dp;
     a2dp_sbc_t *config;
@@ -3019,6 +3019,23 @@ static int bt_transport_config_a2dp(struct userdata *u) {
     return 0;
 }
 
+static int bt_transport_config_a2dp_mpeg(struct userdata *u) {
+    const pa_bluetooth_transport *t;
+    struct a2dp_info *a2dp = &u->a2dp;
+    a2dp_mpeg_t *config;
+
+    t = pa_bluetooth_discovery_get_transport(u->discovery, u->transport);
+    pa_assert(t);
+
+    config = (a2dp_mpeg_t *) t->config;
+
+    return 0;
+}
+
+static int bt_transport_config_a2dp(struct userdata *u) {
+    return bt_transport_config_a2dp_mpeg(u);
+}
+
 static int bt_transport_config(struct userdata *u) {
     if (u->profile == PROFILE_HSP || u->profile == PROFILE_HFGW) {
         u->block_size = u->link_mtu;
-- 
1.7.5.4



More information about the pulseaudio-discuss mailing list