diff --git a/daemon/src/audio/opensl/opensllayer.cpp b/daemon/src/audio/opensl/opensllayer.cpp
index 9eb8788055b147915ee9f0a9e3972b78f190deb9..22d25a8bf96c6a1f33031a13e1c482a1891b83c3 100644
--- a/daemon/src/audio/opensl/opensllayer.cpp
+++ b/daemon/src/audio/opensl/opensllayer.cpp
@@ -44,6 +44,13 @@
 #include <cassert>
 #include <unistd.h>
 
+#include "SLES/OpenSLES_AndroidConfiguration.h"
+
+/* available only from api 14 */
+#ifndef SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION
+#define SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION ((SLuint32) 0x00000004)
+#endif
+
 const int OpenSLLayer::NB_BUFFER_PLAYBACK_QUEUE = ANDROID_BUFFER_QUEUE_LENGTH;
 const int OpenSLLayer::NB_BUFFER_CAPTURE_QUEUE = ANDROID_BUFFER_QUEUE_LENGTH;