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

Bluetooth: TMAP: Remove double definitions of TMAP roles support #83540

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Jan 3, 2025

Both the TMAP kconfig file and public header file defined which roles were supported.

The Kconfig file options were recently added and were more up to date (and correct), and allows for other Kconfig files to use these values, thus allowing for more flexibility when implementing applications.

(BT_TMAP_UMR_SUPPORTED ? BT_TMAP_ROLE_UMR : 0U) |
(BT_TMAP_BMS_SUPPORTED ? BT_TMAP_ROLE_BMS : 0U) |
(BT_TMAP_BMR_SUPPORTED ? BT_TMAP_ROLE_BMR : 0U);
const enum bt_tmap_role role = (CONFIG_BT_TMAP_CG_SUPPORTED ? BT_TMAP_ROLE_CG : 0U) |
Copy link
Collaborator

Choose a reason for hiding this comment

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

those should use IS_ENABLED() since otherwise CONFIG_FOO might be unset

Both the TMAP kconfig file and public header file defined
which roles were supported.

The Kconfig file options were recently added and were more
up to date (and correct), and allows for other Kconfig files
to use these values, thus allowing for more flexibility when
implementing applications.

Signed-off-by: Emil Gydesen <[email protected]>
@kartben kartben merged commit 48ac31c into zephyrproject-rtos:main Jan 9, 2025
34 checks passed
@Thalley Thalley deleted the tmap_rm_dual_roles branch January 9, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Audio area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests area: Bluetooth
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants