nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ srv_store_valid_codec_cap_check()

int srv_store_valid_codec_cap_check ( struct bt_conn const *const conn,
enum bt_audio_dir dir,
uint32_t * valid_codec_caps,
struct client_supp_configs const **const client_supp_cfgs,
uint8_t num_client_supp_cfgs )

#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>

Check which codec capabilities are valid.

Note
Will go through each of the codec_caps for a given direction for a given server.
srv_store_lock() must be called before accessing this function.
Parameters
[in]connPointer to the connection.
[in]dirDirection to check for (sink or source).
[out]valid_codec_capsBit field to be populated with valid codec capabilities.
[in]client_supp_cfgs(Reserved) Supported configurations of the unicast client.
[in]num_client_supp_cfgs(Reserved) Number of supported configurations in the array.
Return values
0Success.
-ENOENTServer not found.
-ENOTCONNServer conn is NULL.