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: MICP: Allow for multiple mic_ctrl cb registers #66717

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Dec 20, 2023

Modify the MICP microphone controller callbacks to support
multiple registers by making it into a linked list.

This allow for multiple applications to get the information
from procedures or notifications.

@Thalley Thalley changed the title Micp multi cb Bluetooth: MICP: Allow for multiple mic_ctrl cb registers Dec 20, 2023
Modify the MICP microphone controller callbacks to support
multiple registers by making it into a linked list.

This allow for multiple applications to get the information
from procedures or notifications.

Signed-off-by: Emil Gydesen <[email protected]>
@larsgk
Copy link
Contributor

larsgk commented Jan 15, 2024

Should we have a test using this?

@Thalley
Copy link
Collaborator Author

Thalley commented Jan 15, 2024

Should we have a test using this?

We will have that - The CAP tests will register test multiple registers :)

@Thalley Thalley requested a review from cvinayak January 24, 2024 10:43
}
SYS_SLIST_FOR_EACH_CONTAINER(&micp_mic_ctlr_cbs, tmp, _node) {
if (tmp == cb) {
LOG_DBG("Already registered");
Copy link
Contributor

Choose a reason for hiding this comment

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

Was looking for this one, nice :)

@nashif nashif merged commit 562166b into zephyrproject-rtos:main Feb 1, 2024
26 checks passed
@Thalley Thalley deleted the micp_multi_cb branch February 1, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants