Do not reconfigure capabilities.

This commit is contained in:
Luiz Augusto von Dentz 2009-03-26 15:38:40 -03:00
parent 168c741b64
commit 13f1c4413b

View file

@ -462,6 +462,9 @@ static int setup_a2dp(struct userdata *u) {
} }
} }
if (cap->capability.configured)
return 0;
if (u->sample_spec.channels <= 1) { if (u->sample_spec.channels <= 1) {
if (cap->channel_mode & BT_A2DP_CHANNEL_MODE_MONO) { if (cap->channel_mode & BT_A2DP_CHANNEL_MODE_MONO) {
cap->channel_mode = BT_A2DP_CHANNEL_MODE_MONO; cap->channel_mode = BT_A2DP_CHANNEL_MODE_MONO;