Lines Matching defs:pParams

49 /*  pParams                  Pointer to an empty parameter structure                    */
53 /* LVEQNB_NULLADDRESS Instance or pParams is NULL pointer */
61 LVEQNB_Params_t *pParams)
69 if((hInstance == LVM_NULL) || (pParams == LVM_NULL))
74 *pParams = pInstance->Params;
127 /* pParams Initialisation parameters */
141 LVEQNB_Params_t *pParams)
146 LVM_UINT32 fs = (LVM_UINT32)LVEQNB_SampleRateTab[(LVM_UINT16)pParams->SampleRate]; /* Sample rate */
151 pInstance->NBands = pParams->NBands;
153 for (i=0; i<pParams->NBands; i++)
158 fc = (LVM_UINT32)pParams->pBandDefinition[i].Frequency; /* Get the band centre frequency */
159 QFactor = (LVM_INT16)pParams->pBandDefinition[i].QFactor; /* Get the band Q factor */
194 pInstance->pBandDefinitions[i] = pParams->pBandDefinition[i];
210 /* pParams Initialisation parameters */
319 /* pParams Pointer to a parameter structure */
323 /* LVEQNB_NULLADDRESS Instance or pParams is NULL pointer */
333 LVEQNB_Params_t *pParams)
344 if((hInstance == LVM_NULL) || (pParams == LVM_NULL))
349 if((pParams->NBands !=0) && (pParams->pBandDefinition==LVM_NULL))
357 if (pParams->SampleRate != pInstance->Params.SampleRate)
359 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->BypassMixer.MixerStream[0],LVEQNB_BYPASS_MIXER_TC,(LVM_Fs_en)pParams->SampleRate,2);
360 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->BypassMixer.MixerStream[1],LVEQNB_BYPASS_MIXER_TC,(LVM_Fs_en)pParams->SampleRate,2);
364 if( (pInstance->Params.NBands != pParams->NBands ) ||
365 (pInstance->Params.OperatingMode != pParams->OperatingMode ) ||
366 (pInstance->Params.pBandDefinition != pParams->pBandDefinition ) ||
367 (pInstance->Params.SampleRate != pParams->SampleRate ) ||
368 (pInstance->Params.SourceFormat != pParams->SourceFormat ))
375 for(i = 0; i < pParams->NBands; i++)
378 if((pInstance->pBandDefinitions[i].Frequency != pParams->pBandDefinition[i].Frequency )||
379 (pInstance->pBandDefinitions[i].Gain != pParams->pBandDefinition[i].Gain )||
380 (pInstance->pBandDefinitions[i].QFactor != pParams->pBandDefinition[i].QFactor ))
394 if (pInstance->Params.SampleRate != pParams->SampleRate)
402 pInstance->Params = *pParams;
408 if(pParams->OperatingMode != LVEQNB_BYPASS){
413 pParams); /* New parameters */
421 if(pParams->OperatingMode != OperatingModeSave)
423 if(pParams->OperatingMode == LVEQNB_ON)
441 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->BypassMixer.MixerStream[0],LVEQNB_BYPASS_MIXER_TC,(LVM_Fs_en)pParams->SampleRate,2);
442 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->BypassMixer.MixerStream[1],LVEQNB_BYPASS_MIXER_TC,(LVM_Fs_en)pParams->SampleRate,2);