Lines Matching refs:p_msg
287 static void btif_media_task_handle_inc_media(tBT_SBC_HDR*p_msg);
295 static void btif_media_task_enc_init(BT_HDR *p_msg);
296 static void btif_media_task_enc_update(BT_HDR *p_msg);
297 static void btif_media_task_audio_feeding_init(BT_HDR *p_msg);
298 static void btif_media_task_aa_tx_flush(BT_HDR *p_msg);
301 static void btif_media_task_aa_handle_decoder_reset(BT_HDR *p_msg);
1101 tBT_SBC_HDR *p_msg; in btif_media_task_avk_handle_timer() local
1123 p_msg = (tBT_SBC_HDR *)GKI_getfirst(&(btif_media_cb.RxSbcQ)); in btif_media_task_avk_handle_timer()
1124 if (p_msg == NULL) in btif_media_task_avk_handle_timer()
1126 num_sbc_frames = p_msg->num_frames_to_be_processed; /* num of frames in Que Packets */ in btif_media_task_avk_handle_timer()
1133 p_msg->num_frames_to_be_processed= num_frames_to_process; in btif_media_task_avk_handle_timer()
1134 btif_media_task_handle_inc_media(p_msg); in btif_media_task_avk_handle_timer()
1135 p_msg->num_frames_to_be_processed = num_sbc_frames - num_frames_to_process; in btif_media_task_avk_handle_timer()
1141 btif_media_task_handle_inc_media(p_msg); in btif_media_task_avk_handle_timer()
1142 p_msg = (tBT_SBC_HDR *)GKI_dequeue(&(btif_media_cb.RxSbcQ)); in btif_media_task_avk_handle_timer()
1143 if( p_msg == NULL ) in btif_media_task_avk_handle_timer()
1148 num_frames_to_process = num_frames_to_process - p_msg->num_frames_to_be_processed; in btif_media_task_avk_handle_timer()
1149 GKI_freebuf(p_msg); in btif_media_task_avk_handle_timer()
1253 BT_HDR *p_msg = (BT_HDR *)fixed_queue_dequeue(queue); in btif_media_thread_handle_cmd() local
1254 LOG_VERBOSE("btif_media_thread_handle_cmd : %d %s", p_msg->event, in btif_media_thread_handle_cmd()
1255 dump_media_event(p_msg->event)); in btif_media_thread_handle_cmd()
1257 switch (p_msg->event) in btif_media_thread_handle_cmd()
1267 btif_media_task_enc_init(p_msg); in btif_media_thread_handle_cmd()
1270 btif_media_task_enc_update(p_msg); in btif_media_thread_handle_cmd()
1273 btif_media_task_audio_feeding_init(p_msg); in btif_media_thread_handle_cmd()
1276 btif_media_task_aa_tx_flush(p_msg); in btif_media_thread_handle_cmd()
1283 btif_media_task_aa_handle_decoder_reset(p_msg); in btif_media_thread_handle_cmd()
1296 APPL_TRACE_ERROR("ERROR in %s unknown event %d", __func__, p_msg->event); in btif_media_thread_handle_cmd()
1298 GKI_freebuf(p_msg); in btif_media_thread_handle_cmd()
1299 LOG_VERBOSE("%s: %s DONE", __func__, dump_media_event(p_msg->event)); in btif_media_thread_handle_cmd()
1312 static void btif_media_task_handle_inc_media(tBT_SBC_HDR*p_msg) in btif_media_task_handle_inc_media() argument
1314 UINT8 *sbc_start_frame = ((UINT8*)(p_msg + 1) + p_msg->offset + 1); in btif_media_task_handle_inc_media()
1319 int num_sbc_frames = p_msg->num_frames_to_be_processed; in btif_media_task_handle_inc_media()
1320 UINT32 sbc_frame_len = p_msg->len - 1; in btif_media_task_handle_inc_media()
1348 p_msg->offset += (p_msg->len - 1) - sbc_frame_len; in btif_media_task_handle_inc_media()
1349 p_msg->len = sbc_frame_len + 1; in btif_media_task_handle_inc_media()
1366 BOOLEAN btif_media_task_enc_init_req(tBTIF_MEDIA_INIT_AUDIO *p_msg) in btif_media_task_enc_init_req() argument
1374 memcpy(p_buf, p_msg, sizeof(tBTIF_MEDIA_INIT_AUDIO)); in btif_media_task_enc_init_req()
1390 BOOLEAN btif_media_task_enc_update_req(tBTIF_MEDIA_UPDATE_AUDIO *p_msg) in btif_media_task_enc_update_req() argument
1398 memcpy(p_buf, p_msg, sizeof(tBTIF_MEDIA_UPDATE_AUDIO)); in btif_media_task_enc_update_req()
1414 BOOLEAN btif_media_task_audio_feeding_init_req(tBTIF_MEDIA_INIT_AUDIO_FEEDING *p_msg) in btif_media_task_audio_feeding_init_req() argument
1422 memcpy(p_buf, p_msg, sizeof(tBTIF_MEDIA_INIT_AUDIO_FEEDING)); in btif_media_task_audio_feeding_init_req()
1574 static void btif_media_task_aa_tx_flush(BT_HDR *p_msg) in btif_media_task_aa_tx_flush() argument
1576 UNUSED(p_msg); in btif_media_task_aa_tx_flush()
1598 static void btif_media_task_enc_init(BT_HDR *p_msg) in btif_media_task_enc_init() argument
1600 tBTIF_MEDIA_INIT_AUDIO *pInitAudio = (tBTIF_MEDIA_INIT_AUDIO *) p_msg; in btif_media_task_enc_init()
1644 static void btif_media_task_enc_update(BT_HDR *p_msg) in btif_media_task_enc_update() argument
1646 tBTIF_MEDIA_UPDATE_AUDIO * pUpdateAudio = (tBTIF_MEDIA_UPDATE_AUDIO *) p_msg; in btif_media_task_enc_update()
1874 static void btif_media_task_audio_feeding_init(BT_HDR *p_msg) in btif_media_task_audio_feeding_init() argument
1876 tBTIF_MEDIA_INIT_AUDIO_FEEDING *p_feeding = (tBTIF_MEDIA_INIT_AUDIO_FEEDING *) p_msg; in btif_media_task_audio_feeding_init()
1974 static void btif_media_task_aa_handle_decoder_reset(BT_HDR *p_msg) in btif_media_task_aa_handle_decoder_reset() argument
1976 tBTIF_MEDIA_SINK_CFG_UPDATE *p_buf = (tBTIF_MEDIA_SINK_CFG_UPDATE*) p_msg; in btif_media_task_aa_handle_decoder_reset()
2285 tBT_SBC_HDR *p_msg; in btif_media_sink_enque_buf() local
2296 if ((p_msg = (tBT_SBC_HDR *) GKI_getbuf(sizeof(tBT_SBC_HDR) + in btif_media_sink_enque_buf()
2299 memcpy(p_msg, p_pkt, (sizeof(BT_HDR) + p_pkt->offset + p_pkt->len)); in btif_media_sink_enque_buf()
2300 p_msg->num_frames_to_be_processed = (*((UINT8*)(p_msg + 1) + p_msg->offset)) & 0x0f; in btif_media_sink_enque_buf()
2301 BTIF_TRACE_VERBOSE("btif_media_sink_enque_buf + ", p_msg->num_frames_to_be_processed); in btif_media_sink_enque_buf()
2302 GKI_enqueue(&(btif_media_cb.RxSbcQ), p_msg); in btif_media_sink_enque_buf()