disable dnr of uac1
This commit is contained in:
@@ -144,8 +144,8 @@ set(APP_COMPILER_FLAGS_fps_uac1 ${SW_USB_AUDIO_FLAGS} -DXUA_SPDIF_RX
|
|||||||
-DCHAN_BUFF_CTRL=1
|
-DCHAN_BUFF_CTRL=1
|
||||||
-DXUD_PRIORITY_HIGH=1
|
-DXUD_PRIORITY_HIGH=1
|
||||||
-DHID_CONTROLS=1
|
-DHID_CONTROLS=1
|
||||||
-DDNR_50MS=1
|
#-DDNR_50MS=1
|
||||||
-ldnr_50ms
|
#-ldnr_50ms
|
||||||
#-DDEBUG_MEMORY_LOG_ENABLED=1
|
#-DDEBUG_MEMORY_LOG_ENABLED=1
|
||||||
-DNO_LOG_TIMESTAPS=0
|
-DNO_LOG_TIMESTAPS=0
|
||||||
-DI2S_CHANS_ADC=2)
|
-DI2S_CHANS_ADC=2)
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ void Aizip_DNR_init(void);
|
|||||||
|
|
||||||
void dnr_dsp_proc_task(void)
|
void dnr_dsp_proc_task(void)
|
||||||
{
|
{
|
||||||
|
#if DNR_50MS || DNR_11MS
|
||||||
Aizip_DNR_init();
|
Aizip_DNR_init();
|
||||||
while(1) {
|
while(1) {
|
||||||
unsigned dsp_eof = 0;
|
unsigned dsp_eof = 0;
|
||||||
@@ -49,4 +50,5 @@ void dnr_dsp_proc_task(void)
|
|||||||
start_dsp_processing();
|
start_dsp_processing();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ azp_dnr_param_t pram = {
|
|||||||
unsigned dnr_init_flag = 0;
|
unsigned dnr_init_flag = 0;
|
||||||
void Aizip_DNR_init(void)
|
void Aizip_DNR_init(void)
|
||||||
{
|
{
|
||||||
delay_microseconds(10000);
|
#if DNR_50MS || DNR_11MS
|
||||||
|
delay_microseconks(10000);
|
||||||
// setFlashPortPins(XS1_PORT_1B,XS1_PORT_1C,XS1_PORT_4B, XS1_CLKBLK_3);
|
// setFlashPortPins(XS1_PORT_1B,XS1_PORT_1C,XS1_PORT_4B, XS1_CLKBLK_3);
|
||||||
|
|
||||||
swlock_acquire(&flash_lock);
|
swlock_acquire(&flash_lock);
|
||||||
@@ -89,13 +90,16 @@ void Aizip_DNR_init(void)
|
|||||||
swlock_release(&flash_lock);
|
swlock_release(&flash_lock);
|
||||||
dnr_init_flag = 1;
|
dnr_init_flag = 1;
|
||||||
debug_printf("AI_DNR_init status %d\n", sta);
|
debug_printf("AI_DNR_init status %d\n", sta);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void start_dsp_processing(void)
|
void start_dsp_processing(void)
|
||||||
{
|
{
|
||||||
|
#if DNR_50MS || DNR_11MS
|
||||||
float level = -200;
|
float level = -200;
|
||||||
|
|
||||||
setNoisy_mix_factor(level);
|
setNoisy_mix_factor(level);
|
||||||
|
|
||||||
AI_DNR_Processing((int32_t *)&dsp_dnr_frame_buf[processing_buf_slot][0][0]);
|
AI_DNR_Processing((int32_t *)&dsp_dnr_frame_buf[processing_buf_slot][0][0]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user