From 13f1c4413b54489d8ff7ddbbd8d36de26049e12d Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 26 Mar 2009 15:38:40 -0300 Subject: Do not reconfigure capabilities. --- src/modules/bluetooth/module-bluetooth-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index bcb65a47..0a3c91a5 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -462,6 +462,9 @@ static int setup_a2dp(struct userdata *u) { } } + if (cap->capability.configured) + return 0; + if (u->sample_spec.channels <= 1) { if (cap->channel_mode & BT_A2DP_CHANNEL_MODE_MONO) { cap->channel_mode = BT_A2DP_CHANNEL_MODE_MONO; -- cgit