From 64e193ad667d8b7e70726e258982dd34b6fc378b Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sat, 4 Feb 2023 22:33:54 +1100 Subject: [PATCH] Note WNR is off --- config/open_source/target.mk | 3 +++ config/open_source/tgt_hardware.c | 32 +++++++++++++++---------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/config/open_source/target.mk b/config/open_source/target.mk index 6f8d028..7fea467 100644 --- a/config/open_source/target.mk +++ b/config/open_source/target.mk @@ -65,6 +65,9 @@ export ANC_APP ?= 1 export ANC_FF_ENABLED ?= 1 # Feed Backward ANC configuration (internal mic) export ANC_FB_ENABLED ?= 1 + +export ANC_WNR_ENABLED ?= 0 + export AUDIO_ANC_FB_MC ?= 0 export AUDIO_SECTION_SUPPT ?= 0 export AUD_SECTION_STRUCT_VERSION ?= 2 diff --git a/config/open_source/tgt_hardware.c b/config/open_source/tgt_hardware.c index 6f095ee..34b4620 100644 --- a/config/open_source/tgt_hardware.c +++ b/config/open_source/tgt_hardware.c @@ -268,7 +268,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_ff_r = { @@ -304,7 +304,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, /* @@ -358,7 +358,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_fb_r = { @@ -393,7 +393,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, }; @@ -456,7 +456,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_ff_r = { @@ -491,7 +491,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, /* @@ -544,7 +544,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_fb_r = { @@ -579,7 +579,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, #if (AUD_SECTION_STRUCT_VERSION == 2) @@ -658,7 +658,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED .iir_coef[5].coef_a = {0x8000000, 0, 0}, .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_mc_r = { @@ -686,7 +686,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED .iir_coef[5].coef_a = {0x8000000, 0, 0}, .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, #endif }; @@ -748,7 +748,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_ff_r = { @@ -784,7 +784,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, /* @@ -836,7 +836,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_fb_r = { @@ -871,7 +871,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, */ .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, #if (AUD_SECTION_STRUCT_VERSION == 2) @@ -919,7 +919,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED .iir_coef[5].coef_a = {0x8000000, 0, 0}, .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, .anc_cfg_mc_r = { @@ -947,7 +947,7 @@ static const struct_anc_cfg POSSIBLY_UNUSED .iir_coef[5].coef_a = {0x8000000, 0, 0}, .dac_gain_offset = 0, - .adc_gain_offset = (0) * 4, + .adc_gain_offset = (2) * 4, }, #endif