Merge "st-hal: Add config SOUND_TRIGGER_APE for sdmsteppe on LE Platform"
diff --git a/Makefile.am b/Makefile.am
index 0dcb02c..e779a7a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,6 +49,10 @@
 AM_CFLAGS += -DST_DEVICE_API_VERSION_1_0
 endif
 
+if SOUND_TRIGGER_APE
+AM_CFLAGS += -DST_APE
+endif
+
 lib_includedir = $(includedir)/sound_trigger
 lib_include_HEADERS = sound_trigger_prop_intf.h sound_trigger_hw.h
 
diff --git a/configure.ac b/configure.ac
index f6c6fc1..e3c764d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,6 +48,7 @@
 AM_CONDITIONAL([USE_KEEP_ALIVE],[test x$ENABLE_KEEP_ALIVE = xtrue])
 AM_CONDITIONAL([SOUND_TRIGGER_CPU_AFFINITY_SET],[test x$BOARD_SUPPORTS_SOUND_TRIGGER_CPU_AFFINITY_SET = xtrue])
 AM_CONDITIONAL([SOUND_TRIGGER_DEVICE_API_VERSION_1_0],[test x$SUPPORTS_SOUND_TRIGGER_DEVICE_API_VERSION_1_0 = xtrue])
+AM_CONDITIONAL([SOUND_TRIGGER_APE],[test x$SUPPORTS_SOUND_TRIGGER_APE = xtrue])
 
 AC_ARG_WITH([glib],
       AC_HELP_STRING([--with-glib],
diff --git a/sound_trigger_platform.c b/sound_trigger_platform.c
index 8fcf45a..fcab41e 100755
--- a/sound_trigger_platform.c
+++ b/sound_trigger_platform.c
@@ -3344,7 +3344,11 @@
         get_xml_file_path(my_data->xml_file_path, MIXER_PATH_FILE_NAME_WCD9340,
             my_data->vendor_config_path);
         strlcpy(mixer_path_xml, my_data->xml_file_path, MIXER_PATH_MAX_LENGTH);
+#ifdef ST_APE
+	my_data->stdev->is_gcs = false;
+#else
         my_data->stdev->is_gcs = true;
+#endif
     } else if (strstr(snd_card_name, "bg")) {
         get_xml_file_path(my_data->xml_file_path, MIXER_PATH_FILE_NAME_BG,
             my_data->vendor_config_path);