Skip to content

Commit

Permalink
Bluetooth: MICP: Allow for multiple mic_ctrl cb registers
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Thalley authored and nashif committed Feb 1, 2024
1 parent b3c643b commit 562166b
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 87 deletions.
3 changes: 3 additions & 0 deletions include/zephyr/bluetooth/audio/micp.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ struct bt_micp_mic_ctlr_cb {
/** Audio Input Control Service client callback */
struct bt_aics_cb aics_cb;
#endif /* CONFIG_BT_MICP_MIC_CTLR_AICS */

/** Internally used field for list handling */
sys_snode_t _node;
};

/**
Expand Down
Loading

0 comments on commit 562166b

Please sign in to comment.