Skip to content

Conversation

@kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Feb 4, 2025

Fix a bug in clock definitions for BT offload configurations. The BT_MCLK and link_control.clock_source definitions must match and this has not been the case for all ACE1.5+ scenarios.

The practical impacts are limited as this does not impact the common HFP NB/WB configuration, as the DSP is not the clock provider in these cases.

Impacts can be seen on ACE1.5+ with A2DP offload and BT HFP LBM test mode. Result is incorrect playback/capture speed.

The Bluetooth configurations use the 24.576Mhz Cardinal Clock
as clock source for ACE1.5, configured via the new "clock_source"
parameter. Set BT_MCLK correctly for these platforms.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Add a comment that "clock_source" link configuration must be
compatible with BT_MCLK.

The current generic definition hard codes BT clock source to 1.
This definition is ignored on older platforms, and on newer
platforms it maps to same 24.576Mhz Cardinal Clock. This sets
different constraints on BT_MCLK depending on the target platform.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Fix stray bad indentation.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
Copy link
Collaborator Author

kv2019i commented Feb 6, 2025

@udaymb can you check this as well? -> this was done

@kv2019i kv2019i merged commit 330db69 into thesofproject:main Feb 12, 2025
45 of 48 checks 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.

3 participants