Lines Matching refs:opcode
51 #define VALID_VCP_OPCODE(opcode) ((opcode) <= BT_VCP_OPCODE_MUTE) argument
163 uint8_t opcode; 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()
194 switch (opcode) { in write_vcs_control()
196 LOG_DBG("Relative Volume Down (0x%x)", opcode); in write_vcs_control()
204 LOG_DBG("Relative Volume Up (0x%x)", opcode); in write_vcs_control()
212 LOG_DBG("(Unmute) relative Volume Down (0x%x)", opcode); in write_vcs_control()
224 LOG_DBG("(Unmute) relative Volume Up (0x%x)", opcode); in write_vcs_control()
237 opcode, vol_rend.state.volume); in write_vcs_control()
245 LOG_DBG("Unmute (0x%x)", opcode); in write_vcs_control()
252 LOG_DBG("Mute (0x%x)", opcode); in write_vcs_control()
259 LOG_DBG("Unknown opcode (0x%x)", opcode); in write_vcs_control()
544 .opcode = BT_VCP_OPCODE_REL_VOL_DOWN, in bt_vcp_vol_rend_vol_down()
557 .opcode = BT_VCP_OPCODE_REL_VOL_UP, in bt_vcp_vol_rend_vol_up()
570 .opcode = BT_VCP_OPCODE_UNMUTE_REL_VOL_DOWN, in bt_vcp_vol_rend_unmute_vol_down()
583 .opcode = BT_VCP_OPCODE_UNMUTE_REL_VOL_UP, in bt_vcp_vol_rend_unmute_vol_up()
597 .opcode = BT_VCP_OPCODE_SET_ABS_VOL, in bt_vcp_vol_rend_set_vol()
612 .opcode = BT_VCP_OPCODE_UNMUTE, in bt_vcp_vol_rend_unmute()
625 .opcode = BT_VCP_OPCODE_MUTE, in bt_vcp_vol_rend_mute()