Lines Matching refs:pInstance
55 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance;
63 pInstance->NewParams = *pParams;
103 if(pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands)
125 pInstance->pEQNB_BandDefs[i] = pParams->pEQNB_BandDefinition[i];
127 pInstance->NewParams.pEQNB_BandDefinition = pInstance->pEQNB_BandDefs;
132 (pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands))
195 pInstance->ControlPending = LVM_TRUE;
225 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance;
235 *pParams = pInstance->NewParams;
243 if (pInstance->NewParams.EQNB_NBands != 0)
244 for (i=0; i<pInstance->NewParams.EQNB_NBands; i++)
246 pInstance->pEQNB_UserDefs[i] = pInstance->pEQNB_BandDefs[i];
248 pParams->pEQNB_BandDefinition = pInstance->pEQNB_UserDefs;
264 /* pInstance Pointer to the instance structure */
268 void LVM_SetTrebleBoost(LVM_Instance_t *pInstance,
287 pInstance->TE_Active = LVM_FALSE;
292 pInstance->TE_Active = LVM_TRUE;
295 if(pInstance->TE_Active == LVM_TRUE)
301 FO_2I_D16F32Css_LShx_TRC_WRA_01_Init(&pInstance->pTE_State->TrebleBoost_State,
302 &pInstance->pTE_Taps->TrebleBoost_Taps,
309 (void *)&pInstance->pTE_Taps->TrebleBoost_Taps, /* Destination.\
311 (LVM_UINT16)(sizeof(pInstance->pTE_Taps->TrebleBoost_Taps)/sizeof(LVM_INT16))); /* Number of words */
319 pInstance->TE_Active = LVM_FALSE;
334 /* pInstance Pointer to the instance */
338 void LVM_SetVolume(LVM_Instance_t *pInstance,
360 pInstance->PSA_GainOffset=(LVM_INT16)(-Volume);/* Loss is compensated by Gain*/
362 pInstance->PSA_GainOffset=(LVM_INT16)60;/* Loss is compensated by Gain*/
364 pInstance->VC_AVLFixedVolume = 0;
374 if(Volume > -pInstance->Headroom)
375 pInstance->Headroom;
382 pInstance->VC_Active = LVM_TRUE;
385 pInstance->VC_VolumedB = Volume;
389 pInstance->VC_VolumedB = 0;
404 LVC_Mixer_SetTarget(&pInstance->VC_Volume.MixerStream[0],
409 LVC_Mixer_SetTarget(&pInstance->VC_Volume.MixerStream[0],
412 pInstance->VC_Volume.MixerStream[0].CallbackSet = 1;
413 if(pInstance->NoSmoothVolume == LVM_TRUE)
415 LVC_Mixer_SetTimeConstant(&pInstance->VC_Volume.MixerStream[0],0,pInstance->Params.SampleRate,2);
419 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->VC_Volume.MixerStream[0],LVM_VC_MIXER_TIME,pInstance->Params.SampleRate,2);
432 /* pInstance Pointer to the instance */
441 void LVM_SetHeadroom(LVM_Instance_t *pInstance,
449 if ((pParams->EQNB_OperatingMode == LVEQNB_ON) && (pInstance->HeadroomParams.Headroom_OperatingMode == LVM_HEADROOM_ON))
452 for(jj = 0; jj < pInstance->HeadroomParams.NHeadroomBands; jj++)
457 if((pParams->pEQNB_BandDefinition[ii].Frequency >= pInstance->HeadroomParams.pHeadroomDefinition[jj].Limit_Low) &&
458 (pParams->pEQNB_BandDefinition[ii].Frequency <= pInstance->HeadroomParams.pHeadroomDefinition[jj].Limit_High))
467 if((MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset) > Headroom){
468 Headroom = (LVM_INT16)(MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset);
476 pInstance->Headroom = (LVM_UINT16)Headroom ;
501 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance;
511 pInstance->ControlPending = LVM_FALSE;
512 LocalParams = pInstance->NewParams;
513 pInstance->HeadroomParams = pInstance->NewHeadroomParams;
515 } while ((pInstance->ControlPending != LVM_FALSE) &&
519 if(LocalParams.SourceFormat != pInstance->Params.SourceFormat)
521 LVM_ClearAudioBuffers(pInstance);
522 pInstance->ControlPending = LVM_FALSE;
528 if ((pInstance->Params.SampleRate != LocalParams.SampleRate) ||
529 (pInstance->Params.TE_EffectLevel != LocalParams.TE_EffectLevel) ||
530 (pInstance->Params.TE_OperatingMode != LocalParams.TE_OperatingMode) ||
531 (pInstance->Params.OperatingMode != LocalParams.OperatingMode) ||
532 (pInstance->Params.SpeakerType != LocalParams.SpeakerType))
534 LVM_SetTrebleBoost(pInstance,
541 LVM_SetHeadroom(pInstance, /* Instance pointer */
548 LVM_SetVolume(pInstance, /* Instance pointer */
552 if(pInstance->Params.VC_Balance != LocalParams.VC_Balance)
560 LVC_Mixer_SetTarget(&pInstance->VC_BalanceMix.MixerStream[0],Target);
561 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->VC_BalanceMix.MixerStream[0],LVM_VC_MIXER_TIME,LocalParams.SampleRate,1);
564 LVC_Mixer_SetTarget(&pInstance->VC_BalanceMix.MixerStream[1],Target);
565 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->VC_BalanceMix.MixerStream[1],LVM_VC_MIXER_TIME,LocalParams.SampleRate,1);
572 LVC_Mixer_SetTarget(&pInstance->VC_BalanceMix.MixerStream[0],Target);
573 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->VC_BalanceMix.MixerStream[0],LVM_VC_MIXER_TIME,LocalParams.SampleRate,1);
576 LVC_Mixer_SetTarget(&pInstance->VC_BalanceMix.MixerStream[1],Target);
577 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->VC_BalanceMix.MixerStream[1],LVM_VC_MIXER_TIME,LocalParams.SampleRate,1);
584 LVC_Mixer_SetTarget(&pInstance->VC_BalanceMix.MixerStream[0],Target);
585 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->VC_BalanceMix.MixerStream[0],LVM_VC_MIXER_TIME,LocalParams.SampleRate,1);
587 LVC_Mixer_SetTarget(&pInstance->VC_BalanceMix.MixerStream[1],Target);
588 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->VC_BalanceMix.MixerStream[1],LVM_VC_MIXER_TIME,LocalParams.SampleRate,1);
597 LVDBE_Handle_t *hDBEInstance = pInstance->hDBEInstance;
638 pInstance->DBE_Active = LVM_TRUE;
647 LVEQNB_Handle_t *hEQNBInstance = pInstance->hEQNBInstance;
682 pInstance->EQNB_Active = LVM_TRUE;
713 LVCS_Handle_t *hCSInstance = pInstance->hCSInstance;
756 pInstance->CS_Active = LVM_TRUE;
788 pLVPSA_Handle_t *hPSAInstance = pInstance->hPSAInstance;
800 if(pInstance->InstParams.PSA_Included==LVM_PSA_ON)
824 pInstance->NoSmoothVolume = LVM_FALSE;
825 pInstance->Params = LocalParams;
854 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance;
876 pInstance->NewHeadroomParams.NHeadroomBands = NBands;
881 pInstance->pHeadroom_BandDefs[ii] = pHeadroomParams->pHeadroomDefinition[ii];
884 pInstance->NewHeadroomParams.pHeadroomDefinition = pInstance->pHeadroom_BandDefs;
885 pInstance->NewHeadroomParams.Headroom_OperatingMode = pHeadroomParams->Headroom_OperatingMode;
886 pInstance->ControlPending = LVM_TRUE;
914 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance;
923 pHeadroomParams->NHeadroomBands = pInstance->NewHeadroomParams.NHeadroomBands;
927 for(ii = 0; ii < pInstance->NewHeadroomParams.NHeadroomBands; ii++)
929 pInstance->pHeadroom_UserDefs[ii] = pInstance->pHeadroom_BandDefs[ii];
933 pHeadroomParams->pHeadroomDefinition = pInstance->pHeadroom_UserDefs;
934 pHeadroomParams->Headroom_OperatingMode = pInstance->NewHeadroomParams.Headroom_OperatingMode;
958 LVM_Instance_t *pInstance =(LVM_Instance_t *)pBundleHandle;
967 pInstance->CS_Active = LVM_FALSE;
977 pInstance->EQNB_Active = LVM_FALSE;
1010 LVM_Instance_t *pInstance =(LVM_Instance_t *)pBundleHandle;
1018 Target = LVC_Mixer_GetTarget(&pInstance->VC_Volume.MixerStream[0]);
1022 pInstance->VC_Active = LVM_FALSE;