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

Enable LDAC in the build #100

Merged
merged 1 commit into from
May 10, 2024
Merged

Enable LDAC in the build #100

merged 1 commit into from
May 10, 2024

Conversation

nicka101
Copy link
Contributor

  • Permits LDAC to be enabled independenly of LHDC (they don't depend on each other and aren't related, other than they both go through the BTIF_AVDTP_CODEC_TYPE_NON_A2DP path and need a buffer bigger than 102400)
  • Enables LDAC in the open_source target
  • Fixes a bug/oversight in bt_sbc_player which caused system frequencies above 52M to be ignored (LDAC seems to target a 96k sample rate by default and thus needs 104M, as specified here and here.)
    I'm not sure if the line was originally added for debug purposes (git blame traces it back to the initial commit, you can see it here), so its possible that the hunk at services/bt_app/app_bt_stream.cpp#3869 could be removed entirely, or that my version may unnecessarily increase power usage in certain scenarios

I've tested it against my Xperia 1 V in both "Best effort" and "Sound quality preferred" modes and it seems to function without issues

Permit LDAC to be enabled independenly of LHDC
Fix a bug/oversight in bt_sbc_player which caused system frequencies above 52M to be ignored
Copy link
Collaborator

@Ralim Ralim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sane by me; 🚀

@Ralim Ralim merged commit d8be791 into pine64:main May 10, 2024
1 check passed
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.

None yet

2 participants