Lines Matching full:cp

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()
543 const struct vcs_control cp = { in bt_vcp_vol_rend_vol_down() local
549 err = write_vcs_control(NULL, NULL, &cp, sizeof(cp), 0, 0); in bt_vcp_vol_rend_vol_down()
556 const struct vcs_control cp = { in bt_vcp_vol_rend_vol_up() local
562 err = write_vcs_control(NULL, NULL, &cp, sizeof(cp), 0, 0); in bt_vcp_vol_rend_vol_up()
569 const struct vcs_control cp = { in bt_vcp_vol_rend_unmute_vol_down() local
575 err = write_vcs_control(NULL, NULL, &cp, sizeof(cp), 0, 0); in bt_vcp_vol_rend_unmute_vol_down()
582 const struct vcs_control cp = { in bt_vcp_vol_rend_unmute_vol_up() local
588 err = write_vcs_control(NULL, NULL, &cp, sizeof(cp), 0, 0); in bt_vcp_vol_rend_unmute_vol_up()
595 const struct vcs_control_vol cp = { in bt_vcp_vol_rend_set_vol() local
596 .cp = { in bt_vcp_vol_rend_set_vol()
604 err = write_vcs_control(NULL, NULL, &cp, sizeof(cp), 0, 0); in bt_vcp_vol_rend_set_vol()
611 const struct vcs_control cp = { in bt_vcp_vol_rend_unmute() local
617 err = write_vcs_control(NULL, NULL, &cp, sizeof(cp), 0, 0); in bt_vcp_vol_rend_unmute()
624 const struct vcs_control cp = { in bt_vcp_vol_rend_mute() local
630 err = write_vcs_control(NULL, NULL, &cp, sizeof(cp), 0, 0); in bt_vcp_vol_rend_mute()