Searched refs:MaxGain (Results 1 – 3 of 3) sorted by relevance
53 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_Init() local55 if(CurrentGain>MaxGain) in LVC_Mixer_Init()56 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_Init()58 MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer part only in LVC_Mixer_Init()59 while(MaxGain>0){ // Update Shift required to provide integer gain in LVC_Mixer_Init()61 MaxGain=MaxGain>>1; in LVC_Mixer_Init()
52 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_SetTarget() local55 if(CurrentGain>MaxGain) in LVC_Mixer_SetTarget()56 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_SetTarget()58 …MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer par… in LVC_Mixer_SetTarget()59 …while(MaxGain>0){ // Update Shift required to provide intege… in LVC_Mixer_SetTarget()61 MaxGain=MaxGain>>1; in LVC_Mixer_SetTarget()
446 LVM_INT16 MaxGain = 0; in LVM_SetHeadroom() local454 MaxGain = 0; in LVM_SetHeadroom()460 if(pParams->pEQNB_BandDefinition[ii].Gain > MaxGain) in LVM_SetHeadroom()462 MaxGain = pParams->pEQNB_BandDefinition[ii].Gain; in LVM_SetHeadroom()467 … if((MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset) > Headroom){ in LVM_SetHeadroom()468 …Headroom = (LVM_INT16)(MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset… in LVM_SetHeadroom()