From fd2c9386c7197113ea353179e08809a308928ac2 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sat, 4 Feb 2023 22:23:39 +1100 Subject: [PATCH] Try higher gain for anc --- config/open_source/tgt_hardware.c | 25 ++++++++++++------------- config/open_source/tgt_hardware.h | 2 +- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/config/open_source/tgt_hardware.c b/config/open_source/tgt_hardware.c index a9d2c5c..6f095ee 100644 --- a/config/open_source/tgt_hardware.c +++ b/config/open_source/tgt_hardware.c @@ -171,7 +171,6 @@ const struct CODEC_DAC_VOL_T codec_dac_vol[TGT_VOLUME_LEVEL_QTY] = { * Note that AUD_CHANNEL_MAP is offset by 1 (0 start) */ - #define USER_TALK_MIC AUD_CHANNEL_MAP_CH4 #define USER_TALK_VMIC_CFG AUD_VMIC_MAP_VMIC3 @@ -237,8 +236,8 @@ static const struct_anc_cfg POSSIBLY_UNUSED { .anc_cfg_ff_l = { - // .total_gain = 440, - .total_gain = 350, + .total_gain = 440, + // .total_gain = 350, .iir_bypass_flag = 0, .iir_counter = IIR_COUNTER_FF_L, @@ -273,8 +272,8 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, .anc_cfg_ff_r = { - // .total_gain = 382, - .total_gain = 350, + .total_gain = 382, + // .total_gain = 350, .iir_bypass_flag = 0, .iir_counter = IIR_COUNTER_FF_R, @@ -425,8 +424,8 @@ static const struct_anc_cfg POSSIBLY_UNUSED { .anc_cfg_ff_l = { - // .total_gain = 440, - .total_gain = 312, + .total_gain = 440, + // .total_gain = 312, .iir_bypass_flag = 0, .iir_counter = IIR_COUNTER_FF_L, @@ -461,8 +460,8 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, .anc_cfg_ff_r = { - // .total_gain = 382, - .total_gain = 288, + .total_gain = 382, + // .total_gain = 288, .iir_bypass_flag = 0, .iir_counter = IIR_COUNTER_FF_R, @@ -717,8 +716,8 @@ static const struct_anc_cfg POSSIBLY_UNUSED { .anc_cfg_ff_l = { - // .total_gain = 440, - .total_gain = 312, + .total_gain = 440, + // .total_gain = 312, .iir_bypass_flag = 0, .iir_counter = IIR_COUNTER_FF_L, @@ -753,8 +752,8 @@ static const struct_anc_cfg POSSIBLY_UNUSED }, .anc_cfg_ff_r = { - // .total_gain = 382, - .total_gain = 288, + .total_gain = 382, + // .total_gain = 288, .iir_bypass_flag = 0, .iir_counter = IIR_COUNTER_FF_R, diff --git a/config/open_source/tgt_hardware.h b/config/open_source/tgt_hardware.h index 11f9478..d418844 100644 --- a/config/open_source/tgt_hardware.h +++ b/config/open_source/tgt_hardware.h @@ -122,7 +122,7 @@ extern const struct AUD_IO_PATH_CFG_T cfg_audio_input_path_cfg[CFG_HW_AUD_INPUT_ #define CFG_HW_AUD_OUTPUT_PATH_SPEAKER_DEV (AUD_CHANNEL_MAP_CH0) -#define CFG_HW_AUD_SIDETONE_MIC_DEV (AUD_CHANNEL_MAP_CH0) +#define CFG_HW_AUD_SIDETONE_MIC_DEV (AUD_CHANNEL_MAP_CH4) #define CFG_HW_AUD_SIDETONE_GAIN_DBVAL (-20) //bt config