summaryrefslogtreecommitdiffstats
path: root/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-08-24 14:17:34 -0700
committerEric Laurent <elaurent@google.com>2012-08-24 14:17:34 -0700
commite44615ff6022239850a3ea459ad6e07b44c37544 (patch)
tree67b26af98c6bff960193a642bf0a48181c1cee43 /media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
parent9a150640a28d3fa5507a590125a6c004681bb221 (diff)
downloadframeworks_av-e44615ff6022239850a3ea459ad6e07b44c37544.zip
frameworks_av-e44615ff6022239850a3ea459ad6e07b44c37544.tar.gz
frameworks_av-e44615ff6022239850a3ea459ad6e07b44c37544.tar.bz2
Reduce THD when equalizer is ON.
Increase headroom in LVM bundle to reduce THD when equalizer is ON with high band gains. Also add a workaround for a bug in headroom parameter control. Change-Id: I1d67c9ae475f6cf852c2e0e49bacfc82a5e484fd
Diffstat (limited to 'media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp')
-rw-r--r--media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
index 1a45e35..32ee89e 100644
--- a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
+++ b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
@@ -698,10 +698,10 @@ int LvmBundle_init(EffectContext *pContext){
/* Set the headroom parameters */
HeadroomBandDef[0].Limit_Low = 20;
HeadroomBandDef[0].Limit_High = 4999;
- HeadroomBandDef[0].Headroom_Offset = 3;
+ HeadroomBandDef[0].Headroom_Offset = 0;
HeadroomBandDef[1].Limit_Low = 5000;
HeadroomBandDef[1].Limit_High = 24000;
- HeadroomBandDef[1].Headroom_Offset = 4;
+ HeadroomBandDef[1].Headroom_Offset = 0;
HeadroomParams.pHeadroomDefinition = &HeadroomBandDef[0];
HeadroomParams.Headroom_OperatingMode = LVM_HEADROOM_ON;
HeadroomParams.NHeadroomBands = 2;