audiohal: Fix compilation error
Fix compilation error in LE for 4.0 component.
Change-Id: I7378165d6330e070348bdbc74cb8d19e4bccefbc
diff --git a/hal/audio_extn/a2dp.c b/hal/audio_extn/a2dp.c
index 2103930..0fae7f2 100644
--- a/hal/audio_extn/a2dp.c
+++ b/hal/audio_extn/a2dp.c
@@ -221,7 +221,13 @@
struct custom_enc_cfg_t custom_cfg;
struct celt_specific_enc_cfg_t celt_cfg;
};
-
+/* In LE BT source code uses system/audio.h for below
+ * structure definition. To avoid multiple definition
+ * compilation error for audiohal in LE , masking structure
+ * definition under "LINUX_ENABLED" which is defined only
+ * in LE
+ */
+#ifndef LINUX_ENABLED
/* TODO: Define the following structures only for O using PLATFORM_VERSION */
/* Information about BT SBC encoder configuration
* This data is used between audio HAL module and
@@ -238,7 +244,6 @@
uint32_t bitrate; /* 320kbps to 512kbps */
} audio_sbc_encoder_config;
-
/* Information about BT APTX encoder configuration
* This data is used between audio HAL module and
* BT IPC library to configure DSP encoder
@@ -261,6 +266,7 @@
uint32_t sampling_rate;
uint32_t bitrate;
} audio_aac_encoder_config;
+#endif
/* Information about BT CELT encoder configuration
* This data is used between audio HAL module and