libril: add initial support for ss333 modem
authorSay <sktjdgns1189@naver.com>
Sun, 13 Dec 2015 08:25:01 +0000 (17:25 +0900)
committerBrandon McAnsh <brandon.mcansh@gmail.com>
Tue, 9 Feb 2016 21:46:09 +0000 (16:46 -0500)
zeroflte uses ss333

Change-Id: If3c9d34ea31c06ce23bd8d0236a9f2ddbab3ddc4
Signed-off-by: Say <sktjdgns1189@naver.com>
ril/Android.mk
ril/libril/Android.mk
ril/libril/ril.cpp

index 8008ace1b1e1d1ca21d3bce84f365f495714ac31..de33c11deb2abd01a57098805f9a4b5f8dc60972 100644 (file)
@@ -20,7 +20,7 @@ ifeq ($(BOARD_VENDOR),samsung)
 
 # libril
 ifeq ($(BOARD_PROVIDES_LIBRIL),true)
-ifneq ($(filter xmm6260 xmm6262 xmm6360 xmm7260 m7450,$(BOARD_MODEM_TYPE)),)
+ifneq ($(filter xmm6260 xmm6262 xmm6360 xmm7260 m7450 ss333,$(BOARD_MODEM_TYPE)),)
 include $(RIL_PATH)/libril/Android.mk
 endif
 endif
index 3eaf2fe0ee86169e9c8a663ff873c2da568c2609..f3d5545ace93400b015b94c3e07532fa6fa867e4 100644 (file)
@@ -34,6 +34,9 @@ endif
 ifeq ($(BOARD_MODEM_TYPE),m7450)
 LOCAL_CFLAGS := -DMODEM_TYPE_M7450
 endif
+ifeq ($(BOARD_MODEM_TYPE),ss333)
+LOCAL_CFLAGS := -DMODEM_TYPE_SS333
+endif
 
 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADER)/librilutils
 LOCAL_C_INCLUDES += external/nanopb-c
index 8df3e512cf58362656ab07c5ae67f5cb61984482..beae8295656bb1d4cb245c779230e2b44674ea24 100644 (file)
@@ -789,7 +789,7 @@ dispatchDial (Parcel &p, RequestInfo *pRI) {
     int32_t sizeOfDial;
     int32_t t;
     int32_t uusPresent;
-#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450)
+#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450) || defined(MODEM_TYPE_SS333)
     char *csv;
 #endif
     status_t status;
@@ -806,7 +806,7 @@ dispatchDial (Parcel &p, RequestInfo *pRI) {
         goto invalid;
     }
 
-#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450)
+#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450) || defined(MODEM_TYPE_SS333)
     /* CallDetails.call_type */
     status = p.readInt32(&t);
     if (status != NO_ERROR) {
@@ -836,7 +836,8 @@ dispatchDial (Parcel &p, RequestInfo *pRI) {
         }
 
         if (uusPresent == 0) {
-#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450)
+#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM7260) \
+ || defined(MODEM_TYPE_M7450) || defined(MODEM_TYPE_SS333)
             dial.uusInfo = NULL;
 #elif defined(MODEM_TYPE_XMM6260)
             /* Samsung hack */
@@ -2386,8 +2387,10 @@ static int responseCallList(Parcel &p, void *response, size_t responselen) {
         p.writeInt32(p_cur->als);
         p.writeInt32(p_cur->isVoice);
 
-#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450)
+#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450) || defined(MODEM_TYPE_SS333)
+#ifndef MODEM_TYPE_SS333
         p.writeInt32(p_cur->isVideo);
+#endif
 
         /* Pass CallDetails */
         p.writeInt32(0);
@@ -2423,7 +2426,7 @@ static int responseCallList(Parcel &p, void *response, size_t responselen) {
             p_cur->als,
             (p_cur->isVoice)?"voc":"nonvoc",
             (p_cur->isVoicePrivacy)?"evp":"noevp");
-#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450)
+#if defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450) || defined(MODEM_TYPE_SS333)
         appendPrintBuf("%s,%s,",
             printBuf,
             (p_cur->isVideo) ? "vid" : "novid");
@@ -3026,7 +3029,8 @@ static int responseRilSignalStrength(Parcel &p,
 
         p.writeInt32(p_cur->GW_SignalStrength.bitErrorRate);
 
-#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450)
+#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM7260) \
+ || defined(MODEM_TYPE_M7450) || defined(MODEM_TYPE_SS333)
         cdmaDbm = p_cur->CDMA_SignalStrength.dbm & 0xFF;
         if (cdmaDbm < 0) {
             cdmaDbm = 99;
@@ -3039,7 +3043,8 @@ static int responseRilSignalStrength(Parcel &p,
         p.writeInt32(cdmaDbm);
         p.writeInt32(p_cur->CDMA_SignalStrength.ecio);
 
-#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM7260) || defined(MODEM_TYPE_M7450)
+#if defined(MODEM_TYPE_XMM6262) || defined(MODEM_TYPE_XMM7260) \
+ || defined(MODEM_TYPE_M7450) || defined(MODEM_TYPE_SS333)
         evdoDbm = p_cur->EVDO_SignalStrength.dbm & 0xFF;
         if (evdoDbm < 0) {
             evdoDbm = 99;