Home
last modified time | relevance | path

Searched refs:cp_val (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/subsys/bluetooth/audio/
Dvcp_vol_rend.c160 const struct vcs_control_vol *cp_val = buf; in write_vcs_control() local
174 if (!VALID_VCP_OPCODE(cp_val->cp.opcode)) { in write_vcs_control()
175 LOG_DBG("Invalid opcode %u", cp_val->cp.opcode); in write_vcs_control()
181 cp_val->cp.opcode != BT_VCP_OPCODE_SET_ABS_VOL) || in write_vcs_control()
186 opcode = cp_val->cp.opcode; in write_vcs_control()
188 LOG_DBG("Opcode %u, counter %u", opcode, cp_val->cp.counter); in write_vcs_control()
190 if (cp_val->cp.counter != vol_rend.state.change_counter) { in write_vcs_control()
238 if (vol_rend.state.volume != cp_val->volume) { in write_vcs_control()
239 vol_rend.state.volume = cp_val->volume; in write_vcs_control()
Daics_client.c317 switch (inst->cli.cp_val.cp.opcode) { in aics_cp_notify_app()
344 LOG_DBG("Unknown opcode 0x%02x", inst->cli.cp_val.cp.opcode); in aics_cp_notify_app()
377 if (inst->cli.cp_val.cp.opcode == BT_AICS_OPCODE_SET_GAIN) { in internal_read_state_cb()
379 inst->cli.cp_val.gain_setting); in internal_read_state_cb()
381 write_err = aics_client_common_control(inst->cli.cp_val.cp.opcode, in internal_read_state_cb()
476 inst->cli.cp_val.cp.opcode = opcode; in aics_client_common_control()
477 inst->cli.cp_val.cp.counter = inst->cli.change_counter; in aics_client_common_control()
480 inst->cli.write_params.data = &inst->cli.cp_val.cp; in aics_client_common_control()
481 inst->cli.write_params.length = sizeof(inst->cli.cp_val.cp); in aics_client_common_control()
964 inst->cli.cp_val.cp.opcode = BT_AICS_OPCODE_SET_GAIN; in bt_aics_client_gain_set()
[all …]
Dvcp_internal.h69 struct vcs_control_vol cp_val; member
Dvcp_vol_ctlr.c245 uint8_t opcode = vol_ctlr->cp_val.cp.opcode; in internal_read_vol_state_cb()
292 uint8_t opcode = vol_ctlr->cp_val.cp.opcode; in vcp_vol_ctlr_write_vcs_cp_cb()
559 vol_ctlr->write_params.data = &vol_ctlr->cp_val.cp; in write_common_vcs_cp()
560 vol_ctlr->write_params.length = sizeof(vol_ctlr->cp_val.cp); in write_common_vcs_cp()
591 vol_ctlr->cp_val.cp.opcode = opcode; in vcp_vol_ctlr_common_vcs_cp()
592 vol_ctlr->cp_val.cp.counter = vol_ctlr->state.change_counter; in vcp_vol_ctlr_common_vcs_cp()
1187 vol_ctlr->write_params.data = &vol_ctlr->cp_val; in write_set_vol_cp()
1188 vol_ctlr->write_params.length = sizeof(vol_ctlr->cp_val); in write_set_vol_cp()
1220 vol_ctlr->cp_val.cp.opcode = BT_VCP_OPCODE_SET_ABS_VOL; in bt_vcp_vol_ctlr_set_vol()
1221 vol_ctlr->cp_val.cp.counter = vol_ctlr->state.change_counter; in bt_vcp_vol_ctlr_set_vol()
[all …]
Daics_internal.h82 struct bt_aics_gain_control cp_val; member