Searched refs:MaxGain (Results 1 – 3 of 3) sorted by relevance
52 LVM_FLOAT MaxGain = TargetGain; in LVC_Mixer_Init() local54 if(CurrentGain > MaxGain) in LVC_Mixer_Init()55 MaxGain = CurrentGain; in LVC_Mixer_Init()65 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_Init() local67 if(CurrentGain>MaxGain) in LVC_Mixer_Init()68 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_Init()70 MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer part only in LVC_Mixer_Init()71 while(MaxGain>0){ // Update Shift required to provide integer gain in LVC_Mixer_Init()73 MaxGain=MaxGain>>1; in LVC_Mixer_Init()
59 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_SetTarget() local62 if(CurrentGain>MaxGain) in LVC_Mixer_SetTarget()63 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_SetTarget()65 …MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer par… in LVC_Mixer_SetTarget()66 …while(MaxGain>0){ // Update Shift required to provide intege… in LVC_Mixer_SetTarget()68 MaxGain=MaxGain>>1; in LVC_Mixer_SetTarget()
514 LVM_INT16 MaxGain = 0; in LVM_SetHeadroom() local522 MaxGain = 0; in LVM_SetHeadroom()528 if(pParams->pEQNB_BandDefinition[ii].Gain > MaxGain) in LVM_SetHeadroom()530 MaxGain = pParams->pEQNB_BandDefinition[ii].Gain; in LVM_SetHeadroom()535 … if((MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset) > Headroom){ in LVM_SetHeadroom()536 …Headroom = (LVM_INT16)(MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset… in LVM_SetHeadroom()