Commit 49dc0350f1fdfb1cc2764c54ee2b405a886c1bdc

Authored by LuoZheSi
1 parent 1fdc8583

fix(optek link swf):fix one issue in master sync

@@ -1502,9 +1502,18 @@ void taskDec(void *pvParameters) @@ -1502,9 +1502,18 @@ void taskDec(void *pvParameters)
1502 optek_link_change_mode(req_mode,req_txlen,req_rxlen,OPTEK_LINK_H1); 1502 optek_link_change_mode(req_mode,req_txlen,req_rxlen,OPTEK_LINK_H1);
1503 optek_link_mode = req_mode; 1503 optek_link_mode = req_mode;
1504 1504
1505 - if (spk_out_sync_w_tx_status == SPK_AND_TX_SYNCED) 1505 + #ifdef OPL_MODE_SWF
  1506 + if (decode_type == DECODE_SBC || app_main_data.media == MEDIA_USB_DEVICE)
1506 { 1507 {
1507 - spk_out_sync_w_tx_status = SPK_AND_TX_SYNCING; 1508 +
  1509 + }
  1510 + else
  1511 + #endif
  1512 + {
  1513 + if (spk_out_sync_w_tx_status == SPK_AND_TX_SYNCED)
  1514 + {
  1515 + spk_out_sync_w_tx_status = SPK_AND_TX_SYNCING;
  1516 + }
1508 } 1517 }
1509 } 1518 }
1510 #endif 1519 #endif
@@ -379,8 +379,16 @@ extern FIFO audio_delay_fifo; @@ -379,8 +379,16 @@ extern FIFO audio_delay_fifo;
379 } 379 }
380 380
381 #endif 381 #endif
382 - 382 +
383 spk_out_sync_w_tx_status = SPK_AND_TX_SYNCING; 383 spk_out_sync_w_tx_status = SPK_AND_TX_SYNCING;
  384 +
  385 + #ifdef OPL_MODE_SWF
  386 + if (decode_type == DECODE_SBC || app_main_data.media == MEDIA_USB_DEVICE)
  387 + {
  388 + spk_out_sync_w_tx_status = SPK_AND_TX_SYNCED;
  389 + }
  390 + #endif
  391 +
384 #endif 392 #endif
385 } 393 }
386 /* 394 /*
Please register or login to post a comment