mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
remove btc_a2dp_dispatch_datapath_evt and event
This commit is contained in:
parent
cf2f2a44c7
commit
45b9b12c04
@ -96,22 +96,6 @@ void btc_a2dp_control_set_datachnl_stat(BOOLEAN open)
|
|||||||
btc_aa_ctrl_cb.data_channel_open = open;
|
btc_aa_ctrl_cb.data_channel_open = open;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void btc_a2dp_dispatch_datapath_evt(uint32_t dp_evt)
|
|
||||||
{
|
|
||||||
btc_msg_t msg;
|
|
||||||
msg.sig = BTC_SIG_API_CALL;
|
|
||||||
msg.pid = BTC_PID_A2DP;
|
|
||||||
msg.act = BTC_AV_DATAPATH_CTRL_EVT;
|
|
||||||
|
|
||||||
btc_av_args_t arg;
|
|
||||||
memset(&arg, 0, sizeof(btc_av_args_t));
|
|
||||||
arg.dp_evt = dp_evt;
|
|
||||||
|
|
||||||
/* Switch to BTC context */
|
|
||||||
APPL_TRACE_DEBUG("%s sig %u act %u, dp_evt %u\n", __func__, msg.sig, msg.act, arg.dp_evt);
|
|
||||||
btc_transfer_context(&msg, &arg, sizeof(btc_av_args_t), NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
void btc_a2dp_control_media_ctrl(esp_a2d_media_ctrl_t ctrl)
|
void btc_a2dp_control_media_ctrl(esp_a2d_media_ctrl_t ctrl)
|
||||||
{
|
{
|
||||||
APPL_TRACE_DEBUG("BTC MEDIA (A2DP-DATA) EVENT %u", ctrl);
|
APPL_TRACE_DEBUG("BTC MEDIA (A2DP-DATA) EVENT %u", ctrl);
|
||||||
|
@ -1512,10 +1512,6 @@ void btc_a2dp_call_handler(btc_msg_t *msg)
|
|||||||
btc_a2dp_control_media_ctrl(arg->ctrl);
|
btc_a2dp_control_media_ctrl(arg->ctrl);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case BTC_AV_DATAPATH_CTRL_EVT: {
|
|
||||||
btc_a2dp_control_datapath_ctrl(arg->dp_evt);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case BTC_AV_CONNECT_REQ_EVT:
|
case BTC_AV_CONNECT_REQ_EVT:
|
||||||
btc_sm_dispatch(btc_av_cb.sm_handle, msg->act, (char *)msg->arg);
|
btc_sm_dispatch(btc_av_cb.sm_handle, msg->act, (char *)msg->arg);
|
||||||
break;
|
break;
|
||||||
|
@ -79,7 +79,6 @@ typedef enum {
|
|||||||
BTC_AV_SRC_API_REG_DATA_CB_EVT,
|
BTC_AV_SRC_API_REG_DATA_CB_EVT,
|
||||||
#endif /* BTC_AV_SRC_INCLUDED */
|
#endif /* BTC_AV_SRC_INCLUDED */
|
||||||
BTC_AV_API_MEDIA_CTRL_EVT,
|
BTC_AV_API_MEDIA_CTRL_EVT,
|
||||||
BTC_AV_DATAPATH_CTRL_EVT,
|
|
||||||
} btc_av_act_t;
|
} btc_av_act_t;
|
||||||
|
|
||||||
/* btc_av_args_t */
|
/* btc_av_args_t */
|
||||||
@ -104,8 +103,6 @@ typedef union {
|
|||||||
#endif /* BTC_AV_SRC_INCLUDED */
|
#endif /* BTC_AV_SRC_INCLUDED */
|
||||||
// BTC_AV_API_MEDIA_CTRL_EVT
|
// BTC_AV_API_MEDIA_CTRL_EVT
|
||||||
esp_a2d_media_ctrl_t ctrl;
|
esp_a2d_media_ctrl_t ctrl;
|
||||||
// BTC_AV_DATAPATH_CTRL_EVT
|
|
||||||
uint32_t dp_evt;
|
|
||||||
} btc_av_args_t;
|
} btc_av_args_t;
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user