Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix msbc on Realtek USB adapters #638

Merged
merged 2 commits into from
Jun 1, 2023
Merged

Fix msbc on Realtek USB adapters #638

merged 2 commits into from
Jun 1, 2023

Conversation

borine
Copy link
Collaborator

@borine borine commented Jun 1, 2023

Enables use of mSBC with Realtek USB adapters by applying a manufacturer-specific sco socket mtu value. This PR is a temporary measure until a more general mSBC over USB fix can be found (for example PR #550). See #637 for description of the problem being addressed.

Current BlueALSA sources result in silence being played, and bluealsa debug output shows D: ../../src/hci.c:150: USB adjusted SCO MTU: 28: 24. With this PR, audio is played correctly and bluealsa debug output shows D: ../../src/hci.c:150: USB adjusted SCO MTU: 28: 72

Fixes #637

@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.06 ⚠️

Comparison is base (2709a34) 70.81% compared to head (8144e29) 70.76%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #638      +/-   ##
==========================================
- Coverage   70.81%   70.76%   -0.06%     
==========================================
  Files          48       48              
  Lines        8995     8999       +4     
==========================================
- Hits         6370     6368       -2     
- Misses       2625     2631       +6     
Impacted Files Coverage Δ
src/ba-transport.c 79.08% <0.00%> (ø)
src/bluealsa-config.c 100.00% <ø> (ø)
src/hci.c 3.70% <0.00%> (-0.20%) ⬇️
src/sco.c 48.55% <0.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@arkq arkq merged commit 142307d into arkq:master Jun 1, 2023
@borine borine deleted the realtek-msbc branch June 6, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RTL8822CE] SCO with msbc codec enabled requires source code patching to deliver audio to headset
2 participants