audio: Add support for a2dp source
Add changes to support a2dp source on LE platform.
Conflicts:
configure.ac
hal/Makefile.am
Change-Id: I10ac91fadddbad0c4602a567dc277617abcfb502
diff --git a/configure.ac b/configure.ac
index 6695b7e..4bb6444 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,6 +108,7 @@
AM_CONDITIONAL([GEF], [test x$AUDIO_FEATURE_ENABLED_GEF_SUPPORT = xtrue])
AM_CONDITIONAL([APTX_DECODER], [test x$AUDIO_FEATURE_ENABLED_APTX_DECODER = xtrue])
AM_CONDITIONAL([ADSP_HDLR], [test x$AUDIO_FEATURE_ADSP_HDLR_ENABLED = xtrue])
+AM_CONDITIONAL([SPLIT_A2DP], [test x$AUDIO_FEATURE_ENABLED_SPLIT_A2DP = xtrue])
AC_CONFIG_FILES([ \
Makefile \
diff --git a/hal/Makefile.am b/hal/Makefile.am
index 0edf504..4072a7c 100644
--- a/hal/Makefile.am
+++ b/hal/Makefile.am
@@ -162,6 +162,11 @@
c_sources += audio_extn/adsp_hdlr.c
endif
+if SPLIT_A2DP
+AM_CFLAGS += -DSPLIT_A2DP_ENABLED
+c_sources += audio_extn/a2dp.c
+endif
+
h_sources = audio_extn/audio_defs.h \
audio_extn/audio_extn.h \
audio_hw.h \