summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorRavindra Lokhande <rlokhande@nvidia.com>2014-07-24 15:51:49 +0530
committerEric Laurent <elaurent@google.com>2014-08-07 10:40:34 -0700
commit860af1fd0013b74334207d6943d2276edbcb99e0 (patch)
tree4434fe4dece08806b66b48605cd87289eed4be6b /audio
parenta8e276433f1370fc08b45e89fffd0bd71149fd40 (diff)
downloadflounder-860af1fd0013b74334207d6943d2276edbcb99e0.tar.gz
flounder: audio: add support for visualizer offloading
Change-Id: I669c2c3a5802378e8490690f09ab143876dc71d3
Diffstat (limited to 'audio')
-rw-r--r--audio/hal/audio_hw.c4
-rw-r--r--audio/hal/audio_hw.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/audio/hal/audio_hw.c b/audio/hal/audio_hw.c
index a3e8206..5895a98 100644
--- a/audio/hal/audio_hw.c
+++ b/audio/hal/audio_hw.c
@@ -4361,10 +4361,10 @@ static int adev_open(const hw_module_t *module, const char *name,
ALOGV("%s: DLOPEN successful for %s", __func__, OFFLOAD_FX_LIBRARY_PATH);
adev->offload_fx_start_output =
(int (*)(audio_io_handle_t))dlsym(adev->offload_fx_lib,
- "offload_fx_hal_start_output");
+ "visualizer_hal_start_output");
adev->offload_fx_stop_output =
(int (*)(audio_io_handle_t))dlsym(adev->offload_fx_lib,
- "offload_fx_hal_stop_output");
+ "visualizer_hal_stop_output");
}
}
diff --git a/audio/hal/audio_hw.h b/audio/hal/audio_hw.h
index b68c441..4528230 100644
--- a/audio/hal/audio_hw.h
+++ b/audio/hal/audio_hw.h
@@ -30,8 +30,12 @@
#define RETRY_NUMBER 10
#define RETRY_US 500000
+#ifdef __LP64__
+#define OFFLOAD_FX_LIBRARY_PATH "/system/lib64/soundfx/libnvvisualizer.so"
+#else
+#define OFFLOAD_FX_LIBRARY_PATH "/system/lib/soundfx/libnvvisualizer.so"
+#endif
-#define OFFLOAD_FX_LIBRARY_PATH "/system/lib/soundfx/libnvidiaoffloadfx.so"
#define HTC_ACOUSTIC_LIBRARY_PATH "/vendor/lib/libhtcacoustic.so"
#ifdef PREPROCESSING_ENABLED
#include <audio_utils/echo_reference.h>