Lines Matching refs:pInstance
54 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance;
56 *pParams = pInstance->Params;
85 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance;
87 *pCapabilities = pInstance->Capabilities;
101 /* pInstance Pointer to the instance */
106 void LVDBE_SetFilters(LVDBE_Instance_t *pInstance,
120 (void *)&pInstance->pData->HPFTaps, /* Destination Cast to void: \
122 sizeof(pInstance->pData->HPFTaps)/sizeof(LVM_INT16)); /* Number of words */
123 BQ_2I_D32F32Cll_TRC_WRA_01_Init(&pInstance->pCoef->HPFInstance, /* Initialise the filter */
124 &pInstance->pData->HPFTaps,
132 (void *)&pInstance->pData->BPFTaps, /* Destination Cast to void:\
134 sizeof(pInstance->pData->BPFTaps)/sizeof(LVM_INT16)); /* Number of words */
135 BP_1I_D32F32Cll_TRC_WRA_02_Init(&pInstance->pCoef->BPFInstance, /* Initialise the filter */
136 &pInstance->pData->BPFTaps,
151 /* pInstance Pointer to the instance */
156 void LVDBE_SetAGC(LVDBE_Instance_t *pInstance,
163 pInstance->pData->AGCInstance.AGC_Attack = LVDBE_AGC_ATTACK_Table[(LVM_UINT16)pParams->SampleRate]; /* Attack multiplier */
164 pInstance->pData->AGCInstance.AGC_Decay = LVDBE_AGC_DECAY_Table[(LVM_UINT16)pParams->SampleRate]; /* Decay multipler */
172 pInstance->pData->AGCInstance.AGC_MaxGain = LVDBE_AGC_HPFGAIN_Table[(LVM_UINT16)pParams->EffectLevel]; /* High pass filter on */
176 pInstance->pData->AGCInstance.AGC_MaxGain = LVDBE_AGC_GAIN_Table[(LVM_UINT16)pParams->EffectLevel]; /* High pass filter off */
178 pInstance->pData->AGCInstance.AGC_GainShift = AGC_GAIN_SHIFT;
179 pInstance->pData->AGCInstance.AGC_Target = AGC_TARGETLEVEL;
192 /* pInstance Pointer to the instance */
207 void LVDBE_SetVolume(LVDBE_Instance_t *pInstance,
244 pInstance->pData->AGCInstance.Target = ((LVM_INT32)LVDBE_VolumeTable[dBOffset] << 16);
245 pInstance->pData->AGCInstance.Target = pInstance->pData->AGCInstance.Target >> dBShifts;
247 pInstance->pData->AGCInstance.VolumeTC = LVDBE_VolumeTCTable[(LVM_UINT16)pParams->SampleRate]; /* Volume update time constant */
248 pInstance->pData->AGCInstance.VolumeShift = VOLUME_SHIFT+1;
255 LVC_Mixer_SetTarget(&pInstance->pData->BypassVolume.MixerStream[0],(((LVM_INT32)LVDBE_VolumeTable[dBOffset]) >> dBShifts));
259 LVC_Mixer_SetTarget(&pInstance->pData->BypassVolume.MixerStream[0],(LVM_INT32)LVDBE_VolumeTable[dBOffset]);
262 pInstance->pData->BypassVolume.MixerStream[0].CallbackSet = 1;
263 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->pData->BypassVolume.MixerStream[0],
265 (LVM_Fs_en)pInstance->Params.SampleRate,
311 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance;
312 LVMixer3_2St_st *pBypassMixer_Instance = &pInstance->pData->BypassMixer;
318 if ((pInstance->Params.SampleRate != pParams->SampleRate) ||
319 (pInstance->Params.CentreFrequency != pParams->CentreFrequency))
321 LVDBE_SetFilters(pInstance, /* Instance pointer */
329 if ((pInstance->Params.SampleRate != pParams->SampleRate) ||
330 (pInstance->Params.EffectLevel != pParams->EffectLevel) ||
331 (pInstance->Params.HPFSelect != pParams->HPFSelect))
333 LVDBE_SetAGC(pInstance, /* Instance pointer */
349 if ((pInstance->Params.VolumedB != pParams->VolumedB) ||
350 (pInstance->Params.SampleRate != pParams->SampleRate) ||
351 (pInstance->Params.HeadroomdB != pParams->HeadroomdB) ||
352 (pInstance->Params.VolumeControl != pParams->VolumeControl))
354 LVDBE_SetVolume(pInstance, /* Instance pointer */
358 if (pInstance->Params.OperatingMode==LVDBE_ON && pParams->OperatingMode==LVDBE_OFF)
360 LVC_Mixer_SetTarget(&pInstance->pData->BypassMixer.MixerStream[0],0);
361 LVC_Mixer_SetTarget(&pInstance->pData->BypassMixer.MixerStream[1],0x00007FFF);
363 if (pInstance->Params.OperatingMode==LVDBE_OFF && pParams->OperatingMode==LVDBE_ON)
365 LVC_Mixer_SetTarget(&pInstance->pData->BypassMixer.MixerStream[0],0x00007FFF);
366 LVC_Mixer_SetTarget(&pInstance->pData->BypassMixer.MixerStream[1],0);
372 pInstance->Params = *pParams;