芯方式

在录像界面,進行蓝牙连接,配对后,手机复位

0
阅读(738)

[DESCRIPTION]
在錄像界面,進行藍牙連接,配對後,手機復位
[SOLUTION]来自半导体社区
修改 l1audio/am.c : AM_DSP_PCM8K_RecordOff()
{
......................
else
{
am.state &= ~AM_STATE_VOICE;
*DP_SC_FLAGS &= ~0x0022; // copy the 2 lines from below
*DP_SC_MUTE &= ~0x0002; // copy the 2 lines from below
L1Audio_Msg_AM_Switch( AM_Switch_Name(4), L1AUDIO_Str_onoff(0) );
}
if( am.state == 0 ) {
VBI_End();
//*DP_SC_FLAGS &= ~0x0022; // mark the 2 lines
//*DP_SC_MUTE &= ~0x0002; // mark the 2 lines
}
.......................
}
關於 DP_SC_FLAGS
bit 0/1:控制 speech codec 是否運作
bit 4/5:告訴 DSP codec 是否需要 reset
關於 DP_SC_MUTE
bit 0:用來 mute encoder
bit 1:用來 mute decoder
因為錄音的時候,decoder 不需要執行;所以我們設成 0x02
再remake l1audio 即可。