马上注册,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册 
×
测试发现,TWS配对后再连接手机,播放音乐时会出现panic。 panic在最后一行,请问有高手碰到过吗?怎么解决的?拜谢~
void CsrA2dpDecoderPluginInternalMessage( A2dpPluginTaskdata *task ,uint16 id , Message message ) { /* determine codec type as message id's are different */ if(isCodecLowLatencyBackChannel()) { /* different message handler for low latency codec types as message id's are different */ CsrA2dpDecoderPluginLowLatencyInternalMessage(task , id , message); } /* non low latency codec types use different message id's */ else { /* dsp message handler, determine message id */ switch(id) { /* message validity check */ case MESSAGE_FROM_KALIMBA: { const DSP_REGISTER_T *m = (const DSP_REGISTER_T *) message; PRINT(("DECODER: msg id[%x] a[%x] b[%x] c[%x] d[%x]\n", m->id, m->a, m->b, m->c, m->d)); switch ( m->id ) { /* indication that the dsp is loaded and ready to accept configuration data */ case MUSIC_READY_MSG: { if (DECODER) { A2DP_DECODER_PLUGIN_TYPE_T variant; A2dpPluginConnectParams *codecData = (A2dpPluginConnectParams *) DECODER->params; /* Override the variant if using a USB or wired connection */ switch(DECODER->sink_type) { case AUDIO_SINK_USB: variant = USB_DECODER; break; case AUDIO_SINK_FM: case AUDIO_SINK_ANALOG: variant = ANALOG_DECODER; break; case AUDIO_SINK_SPDIF: variant = SPDIF_DECODER; break; default: /* Use the (default) variant from task structure */ variant = task->a2dp_plugin_variant; break; } /* Tell the DSP what plugin type is being used */ if(!KalimbaSendMessage(MUSIC_SET_PLUGIN_MSG, getDspVariant(variant), 0, 0, 0)) { PRINT(("DECODER: Message MUSIC_SET_PLUGIN_MSG failed!\n")); Panic(); } PRINT(("DECODER: Message MUSIC_SET_PLUGIN_MSG variant = %x\n",variant)); /* load configuration parameters from ps, different for low latency variants */ /* pskey base address */ KalimbaSendMessage(MUSIC_LOADPARAMS_MSG, MUSIC_PS_BASE, 0, 0, 0);
|