Commit 865ca48a authored by pali's avatar pali

fixup! bluetooth: Change codec API for choosing remote endpoint

parent 7b1e2810
...@@ -232,9 +232,9 @@ static int cmp_endpoints_by_freq(const a2dp_sbc_t *capabilities1, const a2dp_sbc ...@@ -232,9 +232,9 @@ static int cmp_endpoints_by_freq(const a2dp_sbc_t *capabilities1, const a2dp_sbc
if (freq1 > freq2) if (freq1 > freq2)
return 1; return 1;
} else if (freq1) { } else if (freq1) {
return freq1; return -1;
} else if (freq2) { } else if (freq2) {
return freq2; return 1;
} else { } else {
for (i = PA_ELEMENTSOF(freq_table)-1; i >= 0; i--) { for (i = PA_ELEMENTSOF(freq_table)-1; i >= 0; i--) {
if (capabilities1->frequency & freq_table[i].cap) if (capabilities1->frequency & freq_table[i].cap)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment