diff --git a/hal/audio_extn/Android.mk b/hal/audio_extn/Android.mk index 3c9bd044..3a6f2bb1 100644 --- a/hal/audio_extn/Android.mk +++ b/hal/audio_extn/Android.mk @@ -166,6 +166,10 @@ LOCAL_CFLAGS += \ -Wno-unused-function \ -Wno-unused-variable +ifeq ($(QCPATH),) + LOCAL_CFLAGS += -D_OSS +endif + LOCAL_SHARED_LIBRARIES := \ libaudioutils \ libcutils \ diff --git a/hal/audio_extn/ssr.c b/hal/audio_extn/ssr.c index 8cb7b4e2..b6cadcc3 100644 --- a/hal/audio_extn/ssr.c +++ b/hal/audio_extn/ssr.c @@ -36,7 +36,19 @@ #include "audio_extn.h" #include "platform.h" #include "platform_api.h" +#ifndef _OSS #include "surround_rec_interface.h" +#else +typedef struct { + const char *name; + char *(*get_param_fn)(void *h); +} get_param_data_t; + +typedef struct { + const char *name; + void (*set_param_fn)(void *h, const char *val); +} set_param_data_t; +#endif #ifdef DYNAMIC_LOG_ENABLED #include