Home
last modified time | relevance | path

Searched refs:vocs (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dvocs.c22 int bt_vocs_client_conn_get(const struct bt_vocs *vocs, struct bt_conn **conn) in bt_vocs_client_conn_get() argument
24 *conn = vocs->conn; in bt_vocs_client_conn_get()
29 int bt_vocs_state_set(struct bt_vocs *vocs, int16_t offset) in bt_vocs_state_set() argument
31 if (vocs != NULL && vocs->cb != NULL && vocs->cb->set_offset != NULL) { in bt_vocs_state_set()
32 vocs->cb->set_offset(vocs, 0); in bt_vocs_state_set()
38 void bt_vocs_client_cb_register(struct bt_vocs *vocs, struct bt_vocs_cb *cb) in bt_vocs_client_cb_register() argument
40 vocs->cb = cb; in bt_vocs_client_cb_register()
56 int bt_vocs_discover(struct bt_conn *conn, struct bt_vocs *vocs, in bt_vocs_discover() argument
59 vocs->conn = conn; in bt_vocs_discover()
61 if (vocs != NULL && vocs->cb != NULL && vocs->cb->discover != NULL) { in bt_vocs_discover()
[all …]
Dvcp.c26 struct bt_vocs *vocs[CONFIG_BT_VCP_VOL_CTLR_MAX_VOCS_INST]; member
79 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in bt_vcp_vol_ctlr_discover()
80 const int err = bt_vocs_discover(conn, vol_ctlrs[i].vocs[j], NULL); in bt_vcp_vol_ctlr_discover()
103 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in bt_vcp_vol_ctlr_cb_register()
104 bt_vocs_client_cb_register(vol_ctlrs[i].vocs[j], &cb->vocs_cb); in bt_vcp_vol_ctlr_cb_register()
114 included->vocs_cnt = ARRAY_SIZE(vol_ctlr->vocs); in bt_vcp_vol_ctlr_included_get()
115 included->vocs = vol_ctlr->vocs; in bt_vcp_vol_ctlr_included_get()
127 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in mock_bt_vcp_init()
128 vol_ctlrs[i].vocs[j] = bt_vocs_client_free_instance_get(); in mock_bt_vcp_init()
130 __ASSERT(vol_ctlrs[i].vocs[j], in mock_bt_vcp_init()
DCMakeLists.txt21 vocs.c
/Zephyr-latest/subsys/bluetooth/audio/
Dvocs.c161 inst->cb->location(&inst->vocs, 0, inst->location); in write_location()
236 inst->cb->state(&inst->vocs, 0, inst->state.offset); in write_vocs_control()
274 inst->cb->description(&inst->vocs, 0, inst->output_desc); in write_output_desc()
352 return &vocs_insts[instance_cnt++].vocs; in bt_vocs_free_instance_get()
355 void *bt_vocs_svc_decl_get(struct bt_vocs *vocs) in bt_vocs_svc_decl_get() argument
359 CHECKIF(!vocs) { in bt_vocs_svc_decl_get()
364 CHECKIF(vocs->client_instance) { in bt_vocs_svc_decl_get()
369 inst = CONTAINER_OF(vocs, struct bt_vocs_server, vocs); in bt_vocs_svc_decl_get()
381 int bt_vocs_register(struct bt_vocs *vocs, in bt_vocs_register() argument
390 CHECKIF(!vocs) { in bt_vocs_register()
[all …]
Dvocs_client.c84 inst->cb->state(&inst->vocs, 0, inst->state.offset); in vocs_client_notify_handler()
104 inst->cb->description(&inst->vocs, 0, desc); in vocs_client_notify_handler()
111 inst->cb->location(&inst->vocs, 0, inst->location); in vocs_client_notify_handler()
156 inst->cb->state(&inst->vocs, cb_err, cb_err ? 0 : inst->state.offset); in vocs_client_read_offset_state_cb()
196 inst->cb->location(&inst->vocs, cb_err, cb_err ? 0 : inst->location); in vocs_client_read_location_cb()
247 inst->cb->set_offset(&inst->vocs, err); in internal_read_volume_offset_state_cb()
299 inst->cb->set_offset(&inst->vocs, cb_err); in vocs_client_write_vocs_cp_cb()
341 inst->cb->description(&inst->vocs, cb_err, cb_err ? NULL : desc); in vocs_client_read_output_desc_cb()
368 inst->cb->discover(&inst->vocs, err); in vocs_discover_func()
430 inst->cb->discover(&inst->vocs, err); in vocs_discover_func()
[all …]
Dvocs_internal.h56 struct bt_vocs vocs; member
88 struct bt_vocs vocs; member
Dvcp_internal.h78 struct bt_vocs *vocs[CONFIG_BT_VCP_VOL_CTLR_MAX_VOCS_INST]; member
Dvcp_vol_ctlr.c408 vol_ctlr_insts[conn_index].vocs[inst_idx], in vcs_discover_include_func()
756 static struct bt_vcp_vol_ctlr *lookup_vcp_by_vocs(const struct bt_vocs *vocs) in lookup_vcp_by_vocs() argument
758 __ASSERT(vocs != NULL, "VOCS pointer cannot be NULL"); in lookup_vcp_by_vocs()
761 for (int j = 0; j < ARRAY_SIZE(vol_ctlr_insts[i].vocs); j++) { in lookup_vcp_by_vocs()
762 if (vol_ctlr_insts[i].vocs[j] == vocs) { in lookup_vcp_by_vocs()
888 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlr_insts[i].vocs); j++) { in bt_vcp_vol_ctlr_init()
897 vol_ctlr_insts[i].vocs[j] = bt_vocs_client_free_instance_get(); in bt_vcp_vol_ctlr_init()
899 __ASSERT(vol_ctlr_insts[i].vocs[j], in bt_vcp_vol_ctlr_init()
902 bt_vocs_client_cb_register(vol_ctlr_insts[i].vocs[j], &vocs_cb); in bt_vcp_vol_ctlr_init()
1039 included->vocs = vol_ctlr->vocs; in bt_vcp_vol_ctlr_included_get()
DKconfig38 rsource "Kconfig.vocs"
DCMakeLists.txt10 zephyr_library_sources(vocs.c)
Dcap_internal.h142 struct bt_vocs *vocs; member
Dcap_commander.c1449 err = bt_vocs_state_set(proc_param->change_offset.vocs, in cap_commander_vcp_set_offset_cb()
1523 active_proc->proc_param.commander[i].change_offset.vocs = included.vocs[0]; in bt_cap_commander_change_volume_offset()
1530 err = bt_vocs_state_set(proc_param->change_offset.vocs, proc_param->change_offset.offset); in bt_cap_commander_change_volume_offset()
Dvcp_vol_rend.c505 included->vocs = vol_rend.vocs_insts; in bt_vcp_vol_rend_included_get()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dvocs.h125 void *bt_vocs_svc_decl_get(struct bt_vocs *vocs);
138 int bt_vocs_client_conn_get(const struct bt_vocs *vocs, struct bt_conn **conn);
148 int bt_vocs_register(struct bt_vocs *vocs,
Dvcp.h119 struct bt_vocs **vocs; member
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dvcp_vol_ctlr_test.c595 err = bt_vocs_state_get(vcp_included.vocs[0]); in test_vocs_state_get()
620 err = bt_vocs_location_get(vcp_included.vocs[0]); in test_vocs_location_get()
645 err = bt_vocs_description_get(vcp_included.vocs[0]); in test_vocs_description_get()
670 err = bt_vocs_location_set(vcp_included.vocs[0], invalid_location); in test_vocs_location_set()
679 err = bt_vocs_location_set(vcp_included.vocs[0], expected_location); in test_vocs_location_set()
704 err = bt_vocs_state_set(vcp_included.vocs[0], invalid_offset); in test_vocs_state_set()
712 err = bt_vocs_state_set(vcp_included.vocs[0], invalid_offset); in test_vocs_state_set()
722 err = bt_vocs_state_set(vcp_included.vocs[0], expected_offset); in test_vocs_state_set()
744 err = bt_vocs_description_set(vcp_included.vocs[0], NULL); in test_vocs_description_set()
754 err = bt_vocs_description_set(vcp_included.vocs[0], expected_vocs_desc); in test_vocs_description_set()
Dvcp_vol_rend_test.c563 err = bt_vocs_state_get(vcp_included.vocs[0]); in test_vocs_state_get()
588 err = bt_vocs_location_get(vcp_included.vocs[0]); in test_vocs_location_get()
613 err = bt_vocs_description_get(vcp_included.vocs[0]); in test_vocs_description_get()
638 err = bt_vocs_location_set(vcp_included.vocs[0], invalid_location); in test_vocs_location_set()
647 err = bt_vocs_location_set(vcp_included.vocs[0], expected_location); in test_vocs_location_set()
672 err = bt_vocs_state_set(vcp_included.vocs[0], invalid_offset); in test_vocs_state_set()
680 err = bt_vocs_state_set(vcp_included.vocs[0], invalid_offset); in test_vocs_state_set()
689 err = bt_vocs_state_set(vcp_included.vocs[0], expected_offset); in test_vocs_state_set()
711 err = bt_vocs_description_set(vcp_included.vocs[0], NULL); in test_vocs_description_set()
721 err = bt_vocs_description_set(vcp_included.vocs[0], expected_vocs_desc); in test_vocs_description_set()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_vcp.c336 if (bt_vocs_description_set(included.vocs[i], description) != 0) { in vocs_audio_desc()
350 if (bt_vocs_location_set(included.vocs[i], loc) != 0) { in vocs_audio_loc()
364 err = bt_vocs_state_get(included.vocs[0]); in vocs_state_get()
380 err = bt_vocs_state_set(included.vocs[0], cp->offset); in vocs_state_set()
395 err = bt_vocs_location_get(included.vocs[0]); in vocs_audio_location_get()
668 bt_vocs_client_cb_register(vol_ctlr->vocs[0], &vocs_cl_cb); in vcp_vol_ctlr_discover_cb()
672 CONTAINER_OF(vol_ctlr->vocs[0], struct bt_vocs_client, vocs); in vcp_vol_ctlr_discover_cb()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dvcp_vol_rend.c414 result = bt_vocs_state_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_state_get()
441 result = bt_vocs_location_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_location_get()
488 result = bt_vocs_location_set(vcp_included.vocs[index], location); in cmd_vcp_vol_rend_vocs_location_set()
535 result = bt_vocs_state_set(vcp_included.vocs[index], offset); in cmd_vcp_vol_rend_vocs_offset_set()
563 result = bt_vocs_description_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_output_description_get()
591 result = bt_vocs_description_set(vcp_included.vocs[index], argv[2]); in cmd_vcp_vol_rend_vocs_output_description_set()
Dvcp_vol_ctlr.c544 result = bt_vocs_state_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_state_get()
577 result = bt_vocs_location_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_location_get()
623 result = bt_vocs_location_set(vcp_included.vocs[index], location); in cmd_vcp_vol_ctlr_vocs_location_set()
670 result = bt_vocs_state_set(vcp_included.vocs[index], in cmd_vcp_vol_ctlr_vocs_offset_set()
704 result = bt_vocs_description_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_output_description_get()
737 result = bt_vocs_description_set(vcp_included.vocs[index], argv[2]); in cmd_vcp_vol_ctlr_vocs_output_description_set()
/Zephyr-latest/doc/connectivity/bluetooth/api/audio/
Dbluetooth-le-audio-arch.rst320 VOCS_H [label="vocs.h"];
/Zephyr-latest/doc/releases/
Drelease-notes-2.6.rst1224 * :github:`35139` - [Coverity CID: 229646] Out-of-bounds access in subsys/bluetooth/audio/vocs.c
1532 * :github:`33808` - [Coverity CID: 220428] Out-of-bounds access in subsys/bluetooth/audio/vocs.c