Home
last modified time | relevance | path

Searched refs:mic_ctlrs (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dmicp.c16 } mic_ctlrs[CONFIG_BT_MAX_CONN]; variable
20 for (size_t i = 0; i < ARRAY_SIZE(mic_ctlrs); i++) { in bt_micp_mic_ctlr_get_by_conn()
21 if (mic_ctlrs[i].conn == conn) { in bt_micp_mic_ctlr_get_by_conn()
22 return &mic_ctlrs[i]; in bt_micp_mic_ctlr_get_by_conn()
56 for (size_t i = 0; i < ARRAY_SIZE(mic_ctlrs); i++) { in bt_micp_mic_ctlr_discover()
57 if (mic_ctlrs[i].conn == NULL) { in bt_micp_mic_ctlr_discover()
58 for (size_t j = 0U; j < ARRAY_SIZE(mic_ctlrs[i].aics); j++) { in bt_micp_mic_ctlr_discover()
59 const int err = bt_aics_discover(conn, mic_ctlrs[i].aics[j], NULL); in bt_micp_mic_ctlr_discover()
66 mic_ctlrs[i].conn = conn; in bt_micp_mic_ctlr_discover()
67 *mic_ctlr = &mic_ctlrs[i]; in bt_micp_mic_ctlr_discover()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dmicp_mic_ctlr.c43 static struct bt_micp_mic_ctlr mic_ctlrs[CONFIG_BT_MAX_CONN]; variable
48 return &mic_ctlrs[bt_conn_index(conn)]; in mic_ctlr_get_by_conn()
170 for (int i = 0; i < ARRAY_SIZE(mic_ctlrs); i++) { in lookup_micp_by_aics()
171 for (int j = 0; j < ARRAY_SIZE(mic_ctlrs[i].aics); j++) { in lookup_micp_by_aics()
172 if (mic_ctlrs[i].aics[j] == aics) { in lookup_micp_by_aics()
173 return &mic_ctlrs[i]; in lookup_micp_by_aics()
558 for (size_t i = 0U; i < ARRAY_SIZE(mic_ctlrs); i++) { in bt_micp_mic_ctlr_discover()
574 mic_ctlrs[i].aics[j] = bt_aics_client_free_instance_get(); in bt_micp_mic_ctlr_discover()
576 if (mic_ctlrs[i].aics[j] == NULL) { in bt_micp_mic_ctlr_discover()
580 bt_aics_client_cb_register(mic_ctlrs[i].aics[j], &aics_cb); in bt_micp_mic_ctlr_discover()