相关数据:

  FAC->Audio->EQ Setting

    EQ Band    -

    Gain      

    Frequency   

    Q Factor    1.5

  FAC->Audio->PEQ //

    Enable      Enable

    Center Freq.    

    Q Factor      3.5

    Gain Step     -

  这样看,EQ 为7 段,PEQ为3段,EQ+PEQ总共可以设置10段不同频率下的增益,品质因数作为辅助,调整增益的作用范围。

频响曲线:

  RDA EQ&频响曲线-LMLPHP

API接口:

  EQ数据结构:

    、  g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain                    //放在FAC菜单,只有一组:
    2.1、g_stSoundData.stAudioSoundModeSetting[SoundModeIndex].EQ120hz          //在用户菜单,关联声音模式,不同的声音模式EQ数据不同,保存当前值
    2.2、g_stSettingDefault_FactoryUser.stAudioSoundModeSetting[SoundModeIndex].EQ120hz  //在用户菜单,关联声音模式,不同的声音模式EQ数据不同,默认值
    2.3、g_stSettingDefault_Sound.stAudioSoundModeSetting[SoundModeIndex].EQ120hz    //在用户菜单,关联声音模式,不同的声音模式EQ数据不同,默认值

  PEQ数据结构

    g_stFactoryUserData.Audio.PEQ1.n_Audio_PEQ1_CenterFreq

  调用接口:

BOOLEAN APP_Audio_Initial(void)
{
BOOLEAN IsSuccess = APP_TRUE;
INT8 i8Balance = ;
UINT8 ucStableSound = ;
UINT8 ucSurround = ; #ifdef SUPPORT_PEQ_SRS_SETTING
TVFE_Audio_Equalizer_Init_t EqBandQvalueSetting; AL_Setting_Read(APP_Data_UserSetting_Handle(), SYS_SET_ID_FACTUSER,,
sizeof(APP_SETTING_FactoryUser_t), &g_stFactoryUserData); EqBandQvalueSetting.bEQ_fq[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_Freq[];
EqBandQvalueSetting.bQfactor[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_q[];
EqBandQvalueSetting.bEQ_fq[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_Freq[];
EqBandQvalueSetting.bQfactor[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_q[];
EqBandQvalueSetting.bEQ_fq[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_Freq[];
EqBandQvalueSetting.bQfactor[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_q[];
EqBandQvalueSetting.bEQ_fq[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_Freq[];
EqBandQvalueSetting.bQfactor[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_q[];
EqBandQvalueSetting.bEQ_fq[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_Freq[];
EqBandQvalueSetting.bQfactor[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_q[];
EqBandQvalueSetting.bEQ_fq[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_Freq[];
EqBandQvalueSetting.bQfactor[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_q[];
EqBandQvalueSetting.bEQ_fq[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_Freq[];
EqBandQvalueSetting.bQfactor[] = g_stFactoryUserData.Audio.EQsetting.n_EQ_q[]; TVFE_Audio_Initial_Main_Equalizer(&EqBandQvalueSetting); MID_Audio_EQ(
g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain[],
g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain[],
g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain[],
g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain[],
g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain[],
g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain[],
g_stFactoryUserData.Audio.EQsetting.n_EQ_Gain[] );
#endif //PEQ SETTING
TVFE_Audio_Parametric_Equalizer_Config_t PEQ_Setting;
//Enable
PEQ_Setting.enable[] = g_stFactoryUserData.Audio.PEQ1.n_Audio_PEQ1_Enable;
PEQ_Setting.enable[] = g_stFactoryUserData.Audio.PEQ2.n_Audio_PEQ2_Enable;
PEQ_Setting.enable[] = g_stFactoryUserData.Audio.PEQ3.n_Audio_PEQ3_Enable;
//frequency
PEQ_Setting.eq_fq[] =g_stFactoryUserData.Audio.PEQ1.n_Audio_PEQ1_CenterFreq;
PEQ_Setting.eq_fq[] =g_stFactoryUserData.Audio.PEQ2.n_Audio_PEQ2_CenterFreq;
PEQ_Setting.eq_fq[] =g_stFactoryUserData.Audio.PEQ3.n_Audio_PEQ3_CenterFreq;
//Gain
PEQ_Setting.gain[] = g_stFactoryUserData.Audio.PEQ1.n_Audio_PEQ1_GainStep;
PEQ_Setting.gain[] = g_stFactoryUserData.Audio.PEQ2.n_Audio_PEQ2_GainStep;
PEQ_Setting.gain[] = g_stFactoryUserData.Audio.PEQ3.n_Audio_PEQ3_GainStep;
//Q
PEQ_Setting.Qfactor[] = g_stFactoryUserData.Audio.PEQ1.n_Audio_PEQ1_q;
PEQ_Setting.Qfactor[] = g_stFactoryUserData.Audio.PEQ2.n_Audio_PEQ2_q;
PEQ_Setting.Qfactor[] = g_stFactoryUserData.Audio.PEQ3.n_Audio_PEQ3_q; TVFE_Audio_Set_Parametric_Equalizer_Config(&PEQ_Setting); return IsSuccess;
}
05-11 17:02