Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 667fe31e authored by Harsh Bansal's avatar Harsh Bansal Committed by Gerrit - the friendly Code Review server
Browse files

hal:qap-test: fix for dts/dolby use cases in qap path

-fix to pick the 64 bit library if present
-Absolute path is only needed  when lib is not present in default
 path (/usr/lib or /usr/lib64) but as LE uses default path,
 absolute path is not needed.

-fix to wait for secondary stream eos

Change-Id: Ia392b4716bb323e0c98e81540dfe4062ab183fef
parent a1f1cd86
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@
/*#define LOG_NDEBUG 0*/

#if LINUX_ENABLED
#define QAC_LIB_MS12 "/usr/lib/libdolby_ms12_wrapper.so"
#define QAC_LIB_M8   "/usr/lib/libdts_m8_wrapper.so"
#define QAC_LIB_MS12 "libdolby_ms12_wrapper.so"
#define QAC_LIB_M8   "libdts_m8_wrapper.so"
#else
#define QAC_LIB_MS12 "/system/lib/libdolby_ms12_wrapper.so"
#define QAC_LIB_M8   "/system/lib/libdts_m8_wrapper.so"
@@ -1579,7 +1579,7 @@ void *qap_wrapper_start_stream (void* stream_data)
    } while (1);

wait_for_eos:
    if (stream_info->sec_input && !stream_info->aac_fmt_type) {
    if (stream_info->sec_input) {
        pthread_mutex_lock(&sec_eos_lock);
        pthread_cond_wait(&sec_eos_cond, &sec_eos_lock);
        pthread_mutex_unlock(&sec_eos_lock);