libril: add initial support for ss333 modem

zeroflte uses ss333

Change-Id: If3c9d34ea31c06ce23bd8d0236a9f2ddbab3ddc4
Signed-off-by: Say <sktjdgns1189@naver.com>
tirimbino
Say 9 years ago committed by Brandon McAnsh
parent 22da313eb2
commit d1052770c5
  1. 2
      ril/Android.mk
  2. 3
      ril/libril/Android.mk
  3. 19
      ril/libril/ril.cpp

@ -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

@ -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

@ -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;

Loading…
Cancel
Save