audio: update audio_effects.conf to use vendor
Update librariy path in audio_effects.conf and hard coded lines.
Change-Id: I75cd66fd66910074cf534e08a7a65b6a5795bfee
diff --git a/configs/msm8909/audio_effects.conf b/configs/msm8909/audio_effects.conf
index 25ef8c6..1282bc0 100755
--- a/configs/msm8909/audio_effects.conf
+++ b/configs/msm8909/audio_effects.conf
@@ -34,10 +34,10 @@
# }
libraries {
bundle {
- path /system/lib/soundfx/libbundlewrapper.so
+ path /vendor/lib/soundfx/libbundlewrapper.so
}
reverb {
- path /system/lib/soundfx/libreverbwrapper.so
+ path /vendor/lib/soundfx/libreverbwrapper.so
}
qcbassboost {
path /vendor/lib/soundfx/libqcbassboost.so
@@ -49,25 +49,25 @@
path /vendor/lib/soundfx/libqcreverb.so
}
visualizer_sw {
- path /system/lib/soundfx/libvisualizer.so
+ path /vendor/lib/soundfx/libvisualizer.so
}
visualizer_hw {
- path /system/lib/soundfx/libqcomvisualizer.so
+ path /vendor/lib/soundfx/libqcomvisualizer.so
}
downmix {
- path /system/lib/soundfx/libdownmix.so
+ path /vendor/lib/soundfx/libdownmix.so
}
loudness_enhancer {
- path /system/lib/soundfx/libldnhncr.so
+ path /vendor/lib/soundfx/libldnhncr.so
}
proxy {
- path /system/lib/soundfx/libeffectproxy.so
+ path /vendor/lib/soundfx/libeffectproxy.so
}
offload_bundle {
- path /system/lib/soundfx/libqcompostprocbundle.so
+ path /vendor/lib/soundfx/libqcompostprocbundle.so
}
audio_pre_processing {
- path /system/lib/soundfx/libqcomvoiceprocessing.so
+ path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
}
@@ -75,7 +75,7 @@
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
-# path /system/lib/soundfx/libaudiopreprocessing.so
+# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
diff --git a/configs/msm8937/audio_effects.conf b/configs/msm8937/audio_effects.conf
index 411575a..5b973a0 100644
--- a/configs/msm8937/audio_effects.conf
+++ b/configs/msm8937/audio_effects.conf
@@ -7,10 +7,10 @@
# }
libraries {
bundle {
- path /system/lib/soundfx/libbundlewrapper.so
+ path /vendor/lib/soundfx/libbundlewrapper.so
}
reverb {
- path /system/lib/soundfx/libreverbwrapper.so
+ path /vendor/lib/soundfx/libreverbwrapper.so
}
qcbassboost {
path /vendor/lib/soundfx/libqcbassboost.so
@@ -22,25 +22,25 @@
path /vendor/lib/soundfx/libqcreverb.so
}
visualizer_sw {
- path /system/lib/soundfx/libvisualizer.so
+ path /vendor/lib/soundfx/libvisualizer.so
}
visualizer_hw {
- path /system/lib/soundfx/libqcomvisualizer.so
+ path /vendor/lib/soundfx/libqcomvisualizer.so
}
downmix {
- path /system/lib/soundfx/libdownmix.so
+ path /vendor/lib/soundfx/libdownmix.so
}
loudness_enhancer {
- path /system/lib/soundfx/libldnhncr.so
+ path /vendor/lib/soundfx/libldnhncr.so
}
proxy {
- path /system/lib/soundfx/libeffectproxy.so
+ path /vendor/lib/soundfx/libeffectproxy.so
}
offload_bundle {
- path /system/lib/soundfx/libqcompostprocbundle.so
+ path /vendor/lib/soundfx/libqcompostprocbundle.so
}
audio_pre_processing {
- path /system/lib/soundfx/libqcomvoiceprocessing.so
+ path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
}
@@ -48,7 +48,7 @@
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
-# path /system/lib/soundfx/libaudiopreprocessing.so
+# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
diff --git a/configs/msm8953/audio_effects.conf b/configs/msm8953/audio_effects.conf
index 411575a..5b973a0 100644
--- a/configs/msm8953/audio_effects.conf
+++ b/configs/msm8953/audio_effects.conf
@@ -7,10 +7,10 @@
# }
libraries {
bundle {
- path /system/lib/soundfx/libbundlewrapper.so
+ path /vendor/lib/soundfx/libbundlewrapper.so
}
reverb {
- path /system/lib/soundfx/libreverbwrapper.so
+ path /vendor/lib/soundfx/libreverbwrapper.so
}
qcbassboost {
path /vendor/lib/soundfx/libqcbassboost.so
@@ -22,25 +22,25 @@
path /vendor/lib/soundfx/libqcreverb.so
}
visualizer_sw {
- path /system/lib/soundfx/libvisualizer.so
+ path /vendor/lib/soundfx/libvisualizer.so
}
visualizer_hw {
- path /system/lib/soundfx/libqcomvisualizer.so
+ path /vendor/lib/soundfx/libqcomvisualizer.so
}
downmix {
- path /system/lib/soundfx/libdownmix.so
+ path /vendor/lib/soundfx/libdownmix.so
}
loudness_enhancer {
- path /system/lib/soundfx/libldnhncr.so
+ path /vendor/lib/soundfx/libldnhncr.so
}
proxy {
- path /system/lib/soundfx/libeffectproxy.so
+ path /vendor/lib/soundfx/libeffectproxy.so
}
offload_bundle {
- path /system/lib/soundfx/libqcompostprocbundle.so
+ path /vendor/lib/soundfx/libqcompostprocbundle.so
}
audio_pre_processing {
- path /system/lib/soundfx/libqcomvoiceprocessing.so
+ path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
}
@@ -48,7 +48,7 @@
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
-# path /system/lib/soundfx/libaudiopreprocessing.so
+# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
diff --git a/configs/msm8996/audio_effects.conf b/configs/msm8996/audio_effects.conf
index 5738cf9..97811d7 100644
--- a/configs/msm8996/audio_effects.conf
+++ b/configs/msm8996/audio_effects.conf
@@ -7,10 +7,10 @@
# }
libraries {
bundle {
- path /system/lib/soundfx/libbundlewrapper.so
+ path /vendor/lib/soundfx/libbundlewrapper.so
}
reverb {
- path /system/lib/soundfx/libreverbwrapper.so
+ path /vendor/lib/soundfx/libreverbwrapper.so
}
qcbassboost {
path /vendor/lib/soundfx/libqcbassboost.so
@@ -22,31 +22,31 @@
path /vendor/lib/soundfx/libqcreverb.so
}
visualizer_sw {
- path /system/lib/soundfx/libvisualizer.so
+ path /vendor/lib/soundfx/libvisualizer.so
}
visualizer_hw {
- path /system/lib/soundfx/libqcomvisualizer.so
+ path /vendor/lib/soundfx/libqcomvisualizer.so
}
downmix {
- path /system/lib/soundfx/libdownmix.so
+ path /vendor/lib/soundfx/libdownmix.so
}
loudness_enhancer {
- path /system/lib/soundfx/libldnhncr.so
+ path /vendor/lib/soundfx/libldnhncr.so
}
proxy {
- path /system/lib/soundfx/libeffectproxy.so
+ path /vendor/lib/soundfx/libeffectproxy.so
}
offload_bundle {
- path /system/lib/soundfx/libqcompostprocbundle.so
+ path /vendor/lib/soundfx/libqcompostprocbundle.so
}
audio_pre_processing {
- path /system/lib/soundfx/libqcomvoiceprocessing.so
+ path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
loudness_enhancer {
- path /system/lib/soundfx/libldnhncr.so
+ path /vendor/lib/soundfx/libldnhncr.so
}
volume_listener {
- path /system/lib/soundfx/libvolumelistener.so
+ path /vendor/lib/soundfx/libvolumelistener.so
}
}
@@ -54,7 +54,7 @@
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
-# path /system/lib/soundfx/libaudiopreprocessing.so
+# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
diff --git a/configs/msm8998/audio_effects.conf b/configs/msm8998/audio_effects.conf
index 13f9ac5..cc80e31 100644
--- a/configs/msm8998/audio_effects.conf
+++ b/configs/msm8998/audio_effects.conf
@@ -42,6 +42,9 @@
audio_pre_processing {
path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
+ loudness_enhancer {
+ path /vendor/lib/soundfx/libldnhncr.so
+ }
volume_listener {
path /vendor/lib/soundfx/libvolumelistener.so
}
@@ -54,7 +57,7 @@
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
-# path /system/lib/soundfx/libaudiopreprocessing.so
+# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
diff --git a/configs/sdm660/audio_effects.conf b/configs/sdm660/audio_effects.conf
index 13f9ac5..cc80e31 100644
--- a/configs/sdm660/audio_effects.conf
+++ b/configs/sdm660/audio_effects.conf
@@ -42,6 +42,9 @@
audio_pre_processing {
path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
+ loudness_enhancer {
+ path /vendor/lib/soundfx/libldnhncr.so
+ }
volume_listener {
path /vendor/lib/soundfx/libvolumelistener.so
}
@@ -54,7 +57,7 @@
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
-# path /system/lib/soundfx/libaudiopreprocessing.so
+# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
diff --git a/configs/sdm845/audio_effects.conf b/configs/sdm845/audio_effects.conf
index 13f9ac5..cc80e31 100644
--- a/configs/sdm845/audio_effects.conf
+++ b/configs/sdm845/audio_effects.conf
@@ -42,6 +42,9 @@
audio_pre_processing {
path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
+ loudness_enhancer {
+ path /vendor/lib/soundfx/libldnhncr.so
+ }
volume_listener {
path /vendor/lib/soundfx/libvolumelistener.so
}
@@ -54,7 +57,7 @@
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
-# path /system/lib/soundfx/libaudiopreprocessing.so
+# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index 00013bc..6f9f3e1 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -54,8 +54,8 @@
#define OFFLOAD_EFFECTS_BUNDLE_LIBRARY_PATH "/usr/lib/libqcompostprocbundle.so"
#define ADM_LIBRARY_PATH "/usr/lib/libadm.so"
#else
-#define VISUALIZER_LIBRARY_PATH "/system/lib/soundfx/libqcomvisualizer.so"
-#define OFFLOAD_EFFECTS_BUNDLE_LIBRARY_PATH "/system/lib/soundfx/libqcompostprocbundle.so"
+#define VISUALIZER_LIBRARY_PATH "/vendor/lib/soundfx/libqcomvisualizer.so"
+#define OFFLOAD_EFFECTS_BUNDLE_LIBRARY_PATH "/vendor/lib/soundfx/libqcompostprocbundle.so"
#define ADM_LIBRARY_PATH "/vendor/lib/libadm.so"
#endif
diff --git a/voice_processing/voice_processing.c b/voice_processing/voice_processing.c
index 610bee6..d4cca1e 100644
--- a/voice_processing/voice_processing.c
+++ b/voice_processing/voice_processing.c
@@ -31,7 +31,7 @@
// local definitions
//------------------------------------------------------------------------------
-#define EFFECTS_DESCRIPTOR_LIBRARY_PATH "/system/lib/soundfx/libqcomvoiceprocessingdescriptors.so"
+#define EFFECTS_DESCRIPTOR_LIBRARY_PATH "/vendor/lib/soundfx/libqcomvoiceprocessingdescriptors.so"
// types of pre processing modules
enum effect_id