hal: Make LL as primary output
On LE speaker protection not working as it expects primary output
to be always present which is not the case currently.
To fix this, make LL as primary output and when hal client opens
primary output LL path will be chosen.
Change-Id: If6321936b2f9dd4a9dd9ad6f54a1b1bbc3099786
diff --git a/configure.ac b/configure.ac
index ef90749..67e5699 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,6 +137,7 @@
AM_CONDITIONAL([CUSTOM_STEREO], [test x$AUDIO_FEATURE_ENABLED_CUSTOM_STEREO = xtrue])
AM_CONDITIONAL([RUN_KEEP_ALIVE_IN_ARM_FFV], [test x$AUDIO_FEATURE_ENABLED_KEEP_ALIVE_ARM_FFV = xtrue])
AM_CONDITIONAL([INSTANCE_ID], [test x$AUDIO_FEATURE_ENABLED_INSTANCE_ID = xtrue])
+AM_CONDITIONAL([LL_AS_PRIMARY_OUTPUT], [test x$AUDIO_USE_LL_AS_PRIMARY_OUTPUT = xtrue])
AC_CONFIG_FILES([ \
Makefile \
diff --git a/hal/Makefile.am b/hal/Makefile.am
index 995622d..6f6b36c 100644
--- a/hal/Makefile.am
+++ b/hal/Makefile.am
@@ -208,6 +208,10 @@
AM_CFLAGS += -DINSTANCE_ID_ENABLED
endif
+if LL_AS_PRIMARY_OUTPUT
+AM_CFLAGS += -DUSE_LL_AS_PRIMARY_OUTPUT
+endif
+
h_sources = audio_extn/audio_defs.h \
audio_extn/audio_extn.h \
audio_hw.h \