Initial Android target definition for lito.
Initial Android target definition for lito.
Change-Id: I3ec264577ecef549bb7c3c355cea40b68161bed7
diff --git a/hal/Android.mk b/hal/Android.mk
index 53a2247..6883a9c 100644
--- a/hal/Android.mk
+++ b/hal/Android.mk
@@ -9,7 +9,7 @@
AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
-ifneq ($(filter msm8974 msm8226 msm8084 msm8610 apq8084 msm8994 msm8992 msm8996 msm8998 apq8098_latv sdm845 sdm710 qcs605 msmnile kona $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM)),)
+ifneq ($(filter msm8974 msm8226 msm8084 msm8610 apq8084 msm8994 msm8992 msm8996 msm8998 apq8098_latv sdm845 sdm710 qcs605 msmnile kona $(MSMSTEPPE) $(TRINKET) lito,$(TARGET_BOARD_PLATFORM)),)
# B-family platform uses msm8974 code base
AUDIO_PLATFORM = msm8974
MULTIPLE_HW_VARIANTS_ENABLED := true
@@ -79,6 +79,9 @@
ifneq ($(filter $(TRINKET) ,$(TARGET_BOARD_PLATFORM)),)
LOCAL_CFLAGS := -DPLATFORM_TRINKET
endif
+ifneq ($(filter lito,$(TARGET_BOARD_PLATFORM)),)
+ LOCAL_CFLAGS := -DPLATFORM_LITO
+endif
endif
ifneq ($(filter msm8916 msm8909 msm8952 msm8937 thorium msm8953 msmgold sdm660,$(TARGET_BOARD_PLATFORM)),)
diff --git a/hal/audio_extn/hfp.c b/hal/audio_extn/hfp.c
index 957e431..c82e875 100644
--- a/hal/audio_extn/hfp.c
+++ b/hal/audio_extn/hfp.c
@@ -66,7 +66,8 @@
defined (PLATFORM_SDM845) || defined (PLATFORM_SDM710) || \
defined (PLATFORM_QCS605) || defined (PLATFORM_MSMNILE) || \
defined (PLATFORM_KONA) || defined (PLATFORM_MSMSTEPPE) || \
- defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET)
+ defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET) || \
+ defined (PLATFORM_LITO)
#define HFP_RX_VOLUME "SLIMBUS_7 LOOPBACK Volume"
#else
#define HFP_RX_VOLUME "Internal HFP RX Volume"
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index a609de1..442ed0b 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -87,7 +87,8 @@
#if defined (PLATFORM_MSM8998) || (PLATFORM_SDM845) || (PLATFORM_SDM710) || \
defined (PLATFORM_QCS605) || defined (PLATFORM_MSMNILE) || \
defined (PLATFORM_KONA) || defined (PLATFORM_MSMSTEPPE) || \
- defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET)
+ defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET) || \
+ defined (PLATFORM_LITO)
#include <sound/devdep_params.h>
#endif
@@ -9324,7 +9325,8 @@
#if defined (PLATFORM_MSM8998) || (PLATFORM_SDM845) || (PLATFORM_SDM710) || \
defined (PLATFORM_QCS605) || defined (PLATFORM_MSMNILE) || \
defined (PLATFORM_KONA) || defined (PLATFORM_MSMSTEPPE) || \
- defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET)
+ defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET) || \
+ defined (PLATFORM_LITO)
int platform_get_mmap_data_fd(void *platform, int fe_dev, int dir, int *fd,
uint32_t *size)
{
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h
index e19c2e0..e7d6044 100644
--- a/hal/msm8974/platform.h
+++ b/hal/msm8974/platform.h
@@ -431,7 +431,7 @@
defined (PLATFORM_QCS605) ||defined (PLATFORM_SDX24) || \
defined (PLATFORM_MSMNILE) || defined (PLATFORM_KONA) || \
defined (PLATFORM_MSMSTEPPE) || defined (PLATFORM_QCS405) || \
- defined (PLATFORM_TRINKET)
+ defined (PLATFORM_TRINKET) || defined (PLATFORM_LITO)
#define PLAYBACK_OFFLOAD_DEVICE2 17
#endif
@@ -440,7 +440,8 @@
defined (PLATFORM_SDM710) || defined(PLATFORM_QCS605) || \
defined (PLATFORM_SDX24) || defined (PLATFORM_MSMNILE) || \
defined (PLATFORM_KONA) || defined (PLATFORM_MSMSTEPPE) || \
- defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET)
+ defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET) || \
+ defined (PLATFORM_LITO)
#define PLAYBACK_OFFLOAD_DEVICE3 18
#define PLAYBACK_OFFLOAD_DEVICE4 34
#define PLAYBACK_OFFLOAD_DEVICE5 35
@@ -570,7 +571,7 @@
#define FM_RX_VOLUME "Quat MI2S FM RX Volume"
#elif PLATFORM_MSM8994
#define FM_RX_VOLUME "PRI MI2S LOOPBACK Volume"
-#elif defined (PLATFORM_MSM8996) || defined (PLATFORM_KONA)
+#elif defined (PLATFORM_MSM8996) || defined (PLATFORM_KONA) || defined (PLATFORM_LITO)
#define FM_RX_VOLUME "Tert MI2S LOOPBACK Volume"
#elif defined (PLATFORM_MSM8998) || defined (PLATFORM_SDM845) || defined (PLATFORM_MSMFALCON) || defined (PLATFORM_SDM710) || defined (PLATFORM_QCS605) || defined (PLATFORM_MSMNILE) || defined (PLATFORM_MSMSTEPPE) || defined (PLATFORM_QCS405) || defined (PLATFORM_TRINKET)
#define FM_RX_VOLUME "SLIMBUS_8 LOOPBACK Volume"