summaryrefslogtreecommitdiffstats
path: root/src/modules/bluetooth/module-bluetooth-device.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-03-26 15:38:40 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-03-26 15:40:04 -0300
commit13f1c4413b54489d8ff7ddbbd8d36de26049e12d (patch)
tree4b7b3c4e6e52840b6e1040b90bbbec5ed5d3ca0e /src/modules/bluetooth/module-bluetooth-device.c
parent168c741b644a1134bc7c2ca51adb094ec736c160 (diff)
Do not reconfigure capabilities.
Diffstat (limited to 'src/modules/bluetooth/module-bluetooth-device.c')
-rw-r--r--src/modules/bluetooth/module-bluetooth-device.c3
1 files changed, 3 insertions, 0 deletions
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;