Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marijn Suijten
pulseaudio
Commits
facef169
Commit
facef169
authored
Aug 16, 2020
by
pali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! bluetooth: Change codec API for choosing remote endpoint
parent
cbc09c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/modules/bluetooth/a2dp-codec-sbc.c
src/modules/bluetooth/a2dp-codec-sbc.c
+3
-2
No files found.
src/modules/bluetooth/a2dp-codec-sbc.c
View file @
facef169
...
...
@@ -236,10 +236,11 @@ static int cmp_endpoints_by_freq(const a2dp_sbc_t *capabilities1, const a2dp_sbc
}
else
if
(
freq2
)
{
return
1
;
}
else
{
/* Both endpoints support only frequencies lower than requested sampling rate, therefore prefer endpoint with higher supported frequency */
for
(
i
=
PA_ELEMENTSOF
(
freq_table
)
-
1
;
i
>=
0
;
i
--
)
{
if
(
capabilities1
->
frequency
&
freq_table
[
i
].
cap
)
if
(
!
freq1
&&
(
capabilities1
->
frequency
&
freq_table
[
i
].
cap
)
)
freq1
=
freq_table
[
i
].
rate
;
if
(
capabilities2
->
frequency
&
freq_table
[
i
].
cap
)
if
(
!
freq2
&&
(
capabilities2
->
frequency
&
freq_table
[
i
].
cap
)
)
freq2
=
freq_table
[
i
].
rate
;
if
(
freq1
&&
freq2
)
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment