Lines Matching +full:read +full:- +full:cmd

1 /* btp_mcp.c - Bluetooth MCP Tester */
6 * SPDX-License-Identifier: Apache-2.0
334 const struct mpl_cmd *cmd) in btp_send_media_cp_ev() argument
341 ev.opcode = cmd->opcode; in btp_send_media_cp_ev()
342 ev.use_param = cmd->use_param; in btp_send_media_cp_ev()
343 ev.param = sys_cpu_to_le32(cmd->param); in btp_send_media_cp_ev()
358 bt_addr_le_copy(&ev->address, bt_conn_get_dst(conn)); in btp_send_search_cp_ev()
360 ev->status = status; in btp_send_search_cp_ev()
361 ev->param_len = (uint8_t)search->search[0]; in btp_send_search_cp_ev()
363 if (ev->param_len > (SEARCH_LEN_MAX - sizeof(ev->param_len))) { in btp_send_search_cp_ev()
367 ev->search_type = search->search[1]; in btp_send_search_cp_ev()
368 strcpy(param, &search->search[2]); in btp_send_search_cp_ev()
369 net_buf_simple_add_mem(rx_ev_buf, param, ev->param_len); in btp_send_search_cp_ev()
371 tester_event(BTP_SERVICE_ID_MCP, BTP_MCP_SEARCH_CP_EV, ev, sizeof(*ev) + ev->param_len); in btp_send_search_cp_ev()
382 ev.requested_opcode = ntf->requested_opcode; in btp_send_command_notifications_ev()
383 ev.result_code = ntf->result_code; in btp_send_command_notifications_ev()
411 svc_chrc_handles.gmcs_handles.player_name = mcc_inst->player_name_handle; in mcc_discover_cb()
412 svc_chrc_handles.gmcs_handles.icon_obj_id = mcc_inst->icon_obj_id_handle; in mcc_discover_cb()
413 svc_chrc_handles.gmcs_handles.icon_url = mcc_inst->icon_url_handle; in mcc_discover_cb()
414 svc_chrc_handles.gmcs_handles.track_changed = mcc_inst->track_changed_handle; in mcc_discover_cb()
415 svc_chrc_handles.gmcs_handles.track_title = mcc_inst->track_title_handle; in mcc_discover_cb()
416 svc_chrc_handles.gmcs_handles.track_duration = mcc_inst->track_duration_handle; in mcc_discover_cb()
417 svc_chrc_handles.gmcs_handles.track_position = mcc_inst->track_position_handle; in mcc_discover_cb()
418 svc_chrc_handles.gmcs_handles.playback_speed = mcc_inst->playback_speed_handle; in mcc_discover_cb()
419 svc_chrc_handles.gmcs_handles.seeking_speed = mcc_inst->seeking_speed_handle; in mcc_discover_cb()
420 svc_chrc_handles.gmcs_handles.segments_obj_id = mcc_inst->segments_obj_id_handle; in mcc_discover_cb()
421 svc_chrc_handles.gmcs_handles.current_track_obj_id = mcc_inst->current_track_obj_id_handle; in mcc_discover_cb()
422 svc_chrc_handles.gmcs_handles.next_track_obj_id = mcc_inst->next_track_obj_id_handle; in mcc_discover_cb()
423 svc_chrc_handles.gmcs_handles.current_group_obj_id = mcc_inst->current_group_obj_id_handle; in mcc_discover_cb()
424 svc_chrc_handles.gmcs_handles.parent_group_obj_id = mcc_inst->parent_group_obj_id_handle; in mcc_discover_cb()
425 svc_chrc_handles.gmcs_handles.playing_order = mcc_inst->playing_order_handle; in mcc_discover_cb()
427 mcc_inst->playing_orders_supported_handle; in mcc_discover_cb()
428 svc_chrc_handles.gmcs_handles.media_state = mcc_inst->media_state_handle; in mcc_discover_cb()
429 svc_chrc_handles.gmcs_handles.cp = mcc_inst->cp_handle; in mcc_discover_cb()
430 svc_chrc_handles.gmcs_handles.opcodes_supported = mcc_inst->opcodes_supported_handle; in mcc_discover_cb()
432 mcc_inst->search_results_obj_id_handle; in mcc_discover_cb()
433 svc_chrc_handles.gmcs_handles.scp = mcc_inst->scp_handle; in mcc_discover_cb()
434 svc_chrc_handles.gmcs_handles.content_control_id = mcc_inst->content_control_id_handle; in mcc_discover_cb()
435 svc_chrc_handles.ots_handles.feature = mcc_inst->otc.feature_handle; in mcc_discover_cb()
436 svc_chrc_handles.ots_handles.obj_name = mcc_inst->otc.obj_name_handle; in mcc_discover_cb()
437 svc_chrc_handles.ots_handles.obj_type = mcc_inst->otc.obj_type_handle; in mcc_discover_cb()
438 svc_chrc_handles.ots_handles.obj_size = mcc_inst->otc.obj_size_handle; in mcc_discover_cb()
439 svc_chrc_handles.ots_handles.obj_id = mcc_inst->otc.obj_id_handle; in mcc_discover_cb()
440 svc_chrc_handles.ots_handles.obj_properties = mcc_inst->otc.obj_properties_handle; in mcc_discover_cb()
441 svc_chrc_handles.ots_handles.obj_created = mcc_inst->otc.obj_created_handle; in mcc_discover_cb()
442 svc_chrc_handles.ots_handles.obj_modified = mcc_inst->otc.obj_modified_handle; in mcc_discover_cb()
443 svc_chrc_handles.ots_handles.oacp = mcc_inst->otc.oacp_handle; in mcc_discover_cb()
444 svc_chrc_handles.ots_handles.olcp = mcc_inst->otc.olcp_handle; in mcc_discover_cb()
451 LOG_DBG("MCC Read track duration cb (%d)", err); in mcc_read_track_duration_cb()
458 LOG_DBG("MCC Read track position cb (%d)", err); in mcc_read_track_position_cb()
472 LOG_DBG("MCC read playback speed cb (%d)", err); in mcc_read_playback_speed_cb()
486 LOG_DBG("MCC read seeking speed cb (%d)", err); in mcc_read_seeking_speed_cb()
493 LOG_DBG("MCC read Icon Object ID cb (%d)", err); in mcc_read_icon_obj_id_cb()
500 LOG_DBG("MCC read next track obj ID cb (%d)", err); in mcc_read_next_track_obj_id_cb()
514 LOG_DBG("MCC read parent group obj ID cb (%d)", err); in mcc_read_parent_group_obj_id_cb()
521 LOG_DBG("MCC read current group obj ID cb (%d)", err); in mcc_read_current_group_obj_id_cb()
528 LOG_DBG("MCC read current group obj ID cb (%d)", err); in mcc_set_current_group_obj_id_cb()
535 LOG_DBG("MCC read playing order cb (%d)", err); in mcc_read_playing_order_cb()
558 LOG_DBG("MCC media state read cb (%d)", err); in mcc_media_state_read_cb()
588 LOG_DBG("MCC Segments Object ID read cb (%d)", err); in mcc_current_track_obj_id_read_cb()
600 static void mcc_send_cmd_cb(struct bt_conn *conn, int err, const struct mpl_cmd *cmd) in mcc_send_cmd_cb() argument
604 btp_send_media_cp_ev(conn, err ? BTP_STATUS_FAILED : BTP_STATUS_SUCCESS, cmd); in mcc_send_cmd_cb()
660 static uint8_t mcp_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_supported_commands() argument
666 tester_set_bit(rp->data, BTP_MCP_READ_SUPPORTED_COMMANDS); in mcp_supported_commands()
667 tester_set_bit(rp->data, BTP_MCP_DISCOVER); in mcp_supported_commands()
668 tester_set_bit(rp->data, BTP_MCP_TRACK_DURATION_READ); in mcp_supported_commands()
669 tester_set_bit(rp->data, BTP_MCP_TRACK_POSITION_READ); in mcp_supported_commands()
670 tester_set_bit(rp->data, BTP_MCP_TRACK_POSITION_SET); in mcp_supported_commands()
671 tester_set_bit(rp->data, BTP_MCP_PLAYBACK_SPEED_READ); in mcp_supported_commands()
672 tester_set_bit(rp->data, BTP_MCP_PLAYBACK_SPEED_SET); in mcp_supported_commands()
675 tester_set_bit(rp->data, BTP_MCP_SEEKING_SPEED_READ); in mcp_supported_commands()
676 tester_set_bit(rp->data, BTP_MCP_ICON_OBJ_ID_READ); in mcp_supported_commands()
677 tester_set_bit(rp->data, BTP_MCP_NEXT_TRACK_OBJ_ID_READ); in mcp_supported_commands()
678 tester_set_bit(rp->data, BTP_MCP_NEXT_TRACK_OBJ_ID_SET); in mcp_supported_commands()
679 tester_set_bit(rp->data, BTP_MCP_PARENT_GROUP_OBJ_ID_READ); in mcp_supported_commands()
680 tester_set_bit(rp->data, BTP_MCP_CURRENT_GROUP_OBJ_ID_READ); in mcp_supported_commands()
681 tester_set_bit(rp->data, BTP_MCP_CURRENT_GROUP_OBJ_ID_SET); in mcp_supported_commands()
684 tester_set_bit(rp->data, BTP_MCP_PLAYING_ORDER_READ); in mcp_supported_commands()
685 tester_set_bit(rp->data, BTP_MCP_PLAYING_ORDER_SET); in mcp_supported_commands()
686 tester_set_bit(rp->data, BTP_MCP_PLAYING_ORDERS_SUPPORTED_READ); in mcp_supported_commands()
687 tester_set_bit(rp->data, BTP_MCP_MEDIA_STATE_READ); in mcp_supported_commands()
688 tester_set_bit(rp->data, BTP_MCP_OPCODES_SUPPORTED_READ); in mcp_supported_commands()
689 tester_set_bit(rp->data, BTP_MCP_CONTENT_CONTROL_ID_READ); in mcp_supported_commands()
690 tester_set_bit(rp->data, BTP_MCP_SEGMENTS_OBJ_ID_READ); in mcp_supported_commands()
693 tester_set_bit(rp->data, BTP_MCP_CURRENT_TRACK_OBJ_ID_READ); in mcp_supported_commands()
694 tester_set_bit(rp->data, BTP_MCP_CURRENT_TRACK_OBJ_ID_SET); in mcp_supported_commands()
695 tester_set_bit(rp->data, BTP_MCP_CMD_SEND); in mcp_supported_commands()
696 tester_set_bit(rp->data, BTP_MCP_CMD_SEARCH); in mcp_supported_commands()
703 static uint8_t mcp_discover(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mcp_discover() argument
705 const struct btp_mcp_discover_cmd *cp = cmd; in mcp_discover()
709 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_discover()
724 static uint8_t mcp_track_duration_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_track_duration_read() argument
727 const struct btp_mcp_track_duration_cmd *cp = cmd; in mcp_track_duration_read()
731 LOG_DBG("MCC Read track duration"); in mcp_track_duration_read()
733 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_track_duration_read()
747 static uint8_t mcp_track_position_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_track_position_read() argument
750 const struct btp_mcp_track_position_read_cmd *cp = cmd; in mcp_track_position_read()
754 LOG_DBG("MCC Read track position"); in mcp_track_position_read()
756 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_track_position_read()
770 static uint8_t mcp_track_position_set(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_track_position_set() argument
773 const struct btp_mcp_track_position_set_cmd *cp = cmd; in mcp_track_position_set()
774 uint32_t pos = sys_le32_to_cpu(cp->pos); in mcp_track_position_set()
780 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_track_position_set()
794 static uint8_t mcp_playback_speed_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_playback_speed_read() argument
797 const struct btp_mcp_playback_speed_read_cmd *cp = cmd; in mcp_playback_speed_read()
801 LOG_DBG("MCC Read playback speed"); in mcp_playback_speed_read()
803 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_playback_speed_read()
817 static uint8_t mcp_playback_speed_set(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_playback_speed_set() argument
820 const struct btp_mcp_playback_speed_set *cp = cmd; in mcp_playback_speed_set()
826 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_playback_speed_set()
832 err = bt_mcc_set_playback_speed(conn, cp->speed); in mcp_playback_speed_set()
840 static uint8_t mcp_seeking_speed_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_seeking_speed_read() argument
843 const struct btp_mcp_seeking_speed_read_cmd *cp = cmd; in mcp_seeking_speed_read()
847 LOG_DBG("MCC Read seeking speed"); in mcp_seeking_speed_read()
849 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_seeking_speed_read()
863 static uint8_t mcp_read_icon_obj_id(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_read_icon_obj_id() argument
866 const struct btp_mcp_icon_obj_id_read_cmd *cp = cmd; in mcp_read_icon_obj_id()
870 LOG_DBG("MCC Read Icon Object ID"); in mcp_read_icon_obj_id()
872 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_read_icon_obj_id()
886 static uint8_t mcp_read_next_track_obj_id(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_read_next_track_obj_id() argument
889 const struct btp_mcp_next_track_obj_id_cmd *cp = cmd; in mcp_read_next_track_obj_id()
893 LOG_DBG("MCC Read Next Track Object ID"); in mcp_read_next_track_obj_id()
895 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_read_next_track_obj_id()
909 static uint8_t mcp_set_next_track_obj_id(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_set_next_track_obj_id() argument
912 const struct btp_mcp_set_next_track_obj_id_cmd *cp = cmd; in mcp_set_next_track_obj_id()
913 uint64_t id = sys_get_le48(cp->id); in mcp_set_next_track_obj_id()
919 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_set_next_track_obj_id()
933 static uint8_t mcp_parent_group_obj_id_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_parent_group_obj_id_read() argument
936 const struct btp_mcp_parent_group_obj_id_read_cmd *cp = cmd; in mcp_parent_group_obj_id_read()
940 LOG_DBG("MCC Read Parent Group Object ID"); in mcp_parent_group_obj_id_read()
942 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_parent_group_obj_id_read()
956 static uint8_t mcp_current_group_obj_id_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_current_group_obj_id_read() argument
959 const struct btp_mcp_current_group_obj_id_read_cmd *cp = cmd; in mcp_current_group_obj_id_read()
963 LOG_DBG("MCC Read Current Group Object ID"); in mcp_current_group_obj_id_read()
965 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_current_group_obj_id_read()
979 static uint8_t mcp_set_current_group_obj_id(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_set_current_group_obj_id() argument
982 const struct btp_mcp_current_group_obj_id_set_cmd *cp = cmd; in mcp_set_current_group_obj_id()
983 uint64_t id = sys_get_le48(cp->id); in mcp_set_current_group_obj_id()
989 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_set_current_group_obj_id()
1003 static uint8_t mcp_playing_order_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_playing_order_read() argument
1006 const struct btp_mcp_playing_order_read_cmd *cp = cmd; in mcp_playing_order_read()
1010 LOG_DBG("MCC Read Playing Order"); in mcp_playing_order_read()
1012 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_playing_order_read()
1026 static uint8_t mcp_playing_order_set(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_playing_order_set() argument
1029 const struct btp_mcp_playing_order_set_cmd *cp = cmd; in mcp_playing_order_set()
1035 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_playing_order_set()
1041 err = bt_mcc_set_playing_order(conn, cp->order); in mcp_playing_order_set()
1049 static uint8_t mcp_playing_orders_supported_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_playing_orders_supported_read() argument
1052 const struct btp_mcp_playing_orders_supported_read_cmd *cp = cmd; in mcp_playing_orders_supported_read()
1056 LOG_DBG("MCC Playing orders supported read"); in mcp_playing_orders_supported_read()
1058 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_playing_orders_supported_read()
1072 static uint8_t mcp_media_state_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_media_state_read() argument
1075 const struct btp_mcp_media_state_read_cmd *cp = cmd; in mcp_media_state_read()
1079 LOG_DBG("MCC Media State read"); in mcp_media_state_read()
1081 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_media_state_read()
1095 static uint8_t mcp_opcodes_supported_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_opcodes_supported_read() argument
1098 const struct btp_mcp_opcodes_supported_read_cmd *cp = cmd; in mcp_opcodes_supported_read()
1102 LOG_DBG("MCC Supported opcodes read"); in mcp_opcodes_supported_read()
1104 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_opcodes_supported_read()
1118 static uint8_t mcp_content_control_id_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_content_control_id_read() argument
1121 const struct btp_mcp_content_control_id_read_cmd *cp = cmd; in mcp_content_control_id_read()
1125 LOG_DBG("MCC Content Control ID read"); in mcp_content_control_id_read()
1127 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_content_control_id_read()
1141 static uint8_t mcp_segments_obj_id_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_segments_obj_id_read() argument
1144 const struct btp_mcp_segments_obj_id_read_cmd *cp = cmd; in mcp_segments_obj_id_read()
1148 LOG_DBG("MCC Track Segments Object ID read"); in mcp_segments_obj_id_read()
1150 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_segments_obj_id_read()
1164 static uint8_t mcp_current_track_obj_id_read(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_current_track_obj_id_read() argument
1167 const struct btp_mcp_current_track_obj_id_read_cmd *cp = cmd; in mcp_current_track_obj_id_read()
1171 LOG_DBG("MCC Current Track Object ID read"); in mcp_current_track_obj_id_read()
1173 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_current_track_obj_id_read()
1187 static uint8_t mcp_current_track_obj_id_set(const void *cmd, uint16_t cmd_len, void *rsp, in mcp_current_track_obj_id_set() argument
1190 const struct btp_mcp_current_track_obj_id_set_cmd *cp = cmd; in mcp_current_track_obj_id_set()
1191 uint64_t id = sys_get_le48(cp->id); in mcp_current_track_obj_id_set()
1197 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_current_track_obj_id_set()
1211 static uint8_t mcp_cmd_send(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mcp_cmd_send() argument
1213 const struct btp_mcp_send_cmd *cp = cmd; in mcp_cmd_send()
1220 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_cmd_send()
1226 mcp_cmd.opcode = cp->opcode; in mcp_cmd_send()
1227 mcp_cmd.use_param = cp->use_param; in mcp_cmd_send()
1228 mcp_cmd.param = sys_le32_to_cpu(cp->param); in mcp_cmd_send()
1238 static uint8_t mcp_cmd_search(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mcp_cmd_search() argument
1240 const struct btp_mcp_search_cmd *cp = cmd; in mcp_cmd_search()
1248 if (cmd_len < sizeof(*cp) || cmd_len != sizeof(*cp) + cp->param_len) { in mcp_cmd_search()
1252 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in mcp_cmd_search()
1259 scp_cmd.type = cp->type; in mcp_cmd_search()
1277 if (cp->param_len >= (SEARCH_LEN_MAX - 1)) { in mcp_cmd_search()
1281 strcpy(scp_cmd.param, cp->param); in mcp_cmd_search()
1460 static uint8_t mcs_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp, in mcs_supported_commands() argument
1466 tester_set_bit(rp->data, BTP_MCS_READ_SUPPORTED_COMMANDS); in mcs_supported_commands()
1467 tester_set_bit(rp->data, BTP_MCS_CMD_SEND); in mcs_supported_commands()
1468 tester_set_bit(rp->data, BTP_MCS_CURRENT_TRACK_OBJ_ID_GET); in mcs_supported_commands()
1469 tester_set_bit(rp->data, BTP_MCS_NEXT_TRACK_OBJ_ID_GET); in mcs_supported_commands()
1470 tester_set_bit(rp->data, BTP_MCS_INACTIVE_STATE_SET); in mcs_supported_commands()
1471 tester_set_bit(rp->data, BTP_MCS_PARENT_GROUP_SET); in mcs_supported_commands()
1478 static uint8_t mcs_cmd_send(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mcs_cmd_send() argument
1480 const struct btp_mcs_send_cmd *cp = cmd; in mcs_cmd_send()
1486 mcp_cmd.opcode = cp->opcode; in mcs_cmd_send()
1487 mcp_cmd.use_param = cp->use_param; in mcs_cmd_send()
1488 mcp_cmd.param = (cp->use_param != 0) ? sys_le32_to_cpu(cp->param) : 0; in mcs_cmd_send()
1498 static uint8_t mcs_next_track_obj_id_get(const void *cmd, uint16_t cmd_len, void *rsp, in mcs_next_track_obj_id_get() argument
1504 LOG_DBG("MCS Read Next Track Obj Id"); in mcs_next_track_obj_id_get()
1511 sys_put_le48(next_track_obj_id, rp->id); in mcs_next_track_obj_id_get()
1518 static uint8_t mcs_current_track_obj_id_get(const void *cmd, uint16_t cmd_len, void *rsp, in mcs_current_track_obj_id_get() argument
1524 LOG_DBG("MCS Read Current Track Obj Id"); in mcs_current_track_obj_id_get()
1531 sys_put_le48(current_track_obj_id, rp->id); in mcs_current_track_obj_id_get()
1538 static uint8_t mcs_parent_group_set(const void *cmd, uint16_t cmd_len, void *rsp, in mcs_parent_group_set() argument
1565 static uint8_t mcs_inactive_state_set(const void *cmd, uint16_t cmd_len, void *rsp, in mcs_inactive_state_set() argument
1574 rp->state = media_player_state; in mcs_inactive_state_set()
1588 static void mcs_command_send_cb(struct media_player *player, int err, const struct mpl_cmd *cmd) in mcs_command_send_cb() argument