audio HAL: fix master-without-vendor build.
Change-Id: I9dc674fc04a0847b4b5947e024ec4b5325b34575
diff --git a/libaudio/AudioHardware.h b/libaudio/AudioHardware.h
index c482464..f56d58e 100644
--- a/libaudio/AudioHardware.h
+++ b/libaudio/AudioHardware.h
@@ -137,9 +137,19 @@
// added by AudioHardware
status_t init();
- void setEcnsRequested_l(int ecns, bool enabled);
- bool isEcRequested() { return !!(mEcnsRequested & AudioPostProcessor::AEC); }
+ // voice processing IDs for mEcnsRequested and mEcnsEnabled
+ enum {
+#ifdef USE_PROPRIETARY_AUDIO_EXTENSIONS
+ PREPROC_AEC = AudioPostProcessor::AEC, // AEC is enabled
+ PREPROC_NS = AudioPostProcessor::NS, // NS is enabled
+#else
+ PREPROC_AEC = 0x1, // AEC is enabled
+ PREPROC_NS = 0x2, // NS is enabled
+#endif
+ };
+ void setEcnsRequested_l(int ecns, bool enabled);
+ bool isEcRequested() { return !!(mEcnsRequested & PREPROC_AEC); }
protected:
// AudioHardwareBase provides default implementation
//virtual bool isModeInCall(int mode);