chenlh
2025-08-29 faba6b022b86f066d95b1cfdf752573724d5fbcd
src/scene.cpp
@@ -58,6 +58,7 @@
   u32 size =  sizeof(struct FlowChartHead);
   s32 ninports,noutports;
   u16 rxBufID[64],txBufID[64];
   u32 dsp_index ;
   u16 dsp_input_num[2] ={0,0};
   u16 dsp_output_num[2] ={0,0};
@@ -99,20 +100,27 @@
         mixer->mTxNum = 1;
         memcpy(bin + size , &rxBufID[1], mixer->mTxNum*sizeof(u16)); size += mixer->mTxNum*sizeof(u16);
      }
      if(hw_adapter->get_system_is_dual_dsp()){
         dsp_index = p->dsp_index ;
      }
      else {
         dsp_index = 0;
      }
      m  = (struct Module *)(bin + size);
      for(j = 0 ; j< ninports ;j ++) {
         if(rxBufID[j] > dsp_input_num[p->dsp_index]) {
            dsp_input_num[p->dsp_index] = rxBufID[j];
         if(rxBufID[j] > dsp_input_num[dsp_index]) {
            dsp_input_num[dsp_index] = rxBufID[j];
         }
      }
      for(j = 0 ; j< noutports ;j ++) {
         if(txBufID[j] > dsp_output_num[p->dsp_index]) {
            dsp_output_num[p->dsp_index] = txBufID[j];
         if(txBufID[j] > dsp_output_num[dsp_index]) {
            dsp_output_num[dsp_index] = txBufID[j];
         }
      }
      m->mDsp = hw_adapter->get_system_is_dual_dsp()?p->dsp_index:0;
      m->mDsp = dsp_index;
      m->mID = p->proc_id;
      m->mType = p->proc_type;
      m->mTag = p->tag;