Skip to content

Commit

Permalink
Bluetooth: pacs: Add dynamic PACS registration
Browse files Browse the repository at this point in the history
Added option to set the PACS Characteristics through the bap API,
making PACS configuration runtime available. Source and Sink PAC, as
well as Source/Sink PAC Location is can be set through a register
function in the PACS api.

Signed-off-by: Fredrik Danebjer <[email protected]>
  • Loading branch information
fredrikdanebjer committed Jan 9, 2025
1 parent 72694a9 commit 3023cff
Show file tree
Hide file tree
Showing 2 changed files with 275 additions and 122 deletions.
12 changes: 12 additions & 0 deletions include/zephyr/bluetooth/audio/pacs.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ struct bt_pacs_cap {
sys_snode_t _node;
};


/** Structure for registering PACS */
struct bt_bap_pacs_register_param {
bool snk_pac;
bool snk_pac_loc;
bool src_pac;
bool src_pac_loc;
};

int bt_pacs_register(const struct bt_bap_pacs_register_param *param);
int bt_pacs_unregister(void);

/**
* @typedef bt_pacs_cap_foreach_func_t
* @brief Published Audio Capability iterator callback.
Expand Down
Loading

0 comments on commit 3023cff

Please sign in to comment.