mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
libsecril-client: add support for P libsec-ril.so
* From P onward samsung changed the socket name in libsec-ril.so from
Multiclient to VND_Multiclient.
* In order to not break compatibility with older RIL stack guard this
behind TARGET_USES_VND_SECRIL.
* This is mostly relevant when using P (or newer) prebuilt ril stack
coupled with OSS audio hal from hw/samsung, which depends on OSS
libsecril-client to provide connection to the RIL daemon.
Change-Id: Iab5d07f2301d33216bbdf3e18f844522e32fadce
(cherry picked from commit 6d6c0500f3
)
This commit is contained in:
parent
e69adfd993
commit
4beff11d33
2 changed files with 10 additions and 1 deletions
|
@ -22,6 +22,10 @@ ifneq ($(filter m7450 mdm9x35 ss333 xmm7260,$(BOARD_MODEM_TYPE)),)
|
|||
LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_USES_VND_SECRIL), true)
|
||||
LOCAL_CFLAGS += -DUSES_VND_SECRIL
|
||||
endif
|
||||
|
||||
LOCAL_MODULE:= libsecril-client
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
|
|
|
@ -35,9 +35,14 @@ namespace android {
|
|||
// Defines
|
||||
//---------------------------------------------------------------------------
|
||||
#define RILD_PORT 7777
|
||||
#ifdef USES_VND_SECRIL
|
||||
#define MULTI_CLIENT_SOCKET_NAME "VND_Multiclient"
|
||||
#define MULTI_CLIENT_SOCKET_NAME_2 "VND_Multiclient2"
|
||||
#else
|
||||
#define MULTI_CLIENT_SOCKET_NAME "Multiclient"
|
||||
#define MULTI_CLIENT_Q_SOCKET_NAME "QMulticlient"
|
||||
#define MULTI_CLIENT_SOCKET_NAME_2 "Multiclient2"
|
||||
#endif
|
||||
#define MULTI_CLIENT_Q_SOCKET_NAME "QMulticlient"
|
||||
|
||||
#define MAX_COMMAND_BYTES (8 * 1024)
|
||||
#define REQ_POOL_SIZE 32
|
||||
|
|
Loading…
Reference in a new issue