Skip to content

Commit

Permalink
ags: Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Abhay Singh Gill <[email protected]>
  • Loading branch information
HELLBOY017 committed Jul 5, 2024
1 parent a72f3db commit 7dbbd8c
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 11 deletions.
8 changes: 3 additions & 5 deletions acdb/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/ats/fts/common/inc/ \
$(LOCAL_PATH)/ats/transports/diag/linux/actp/inc/ \
$(LOCAL_PATH)/ats/transports/diag/linux/audtp/inc/ \
$(LOCAL_PATH)/ats/transports/diag/linux/inc/ \
$(LOCAL_PATH)/ats/adie/common/inc \
$(LOCAL_PATH)/ats/adie/common/api \
$(LOCAL_PATH)/ats/api \
Expand Down Expand Up @@ -106,8 +107,6 @@ LOCAL_SRC_FILES := \
ats/transports/tcpip_server/src/tcpip_rtm_server.cpp \
ats/transports/tcpip_server/src/tcpip_socket_util.cpp

LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/diag/include

LOCAL_MODULE := libats
LOCAL_MODULE_OWNER := qti
LOCAL_MODULE_TAGS := optional
Expand All @@ -116,15 +115,14 @@ LOCAL_PROPRIETARY_MODULE := true
LOCAL_HEADER_LIBRARIES := \
libcutils_headers \
libutils_headers \
libdiag_headers \
vendor_common_inc

LOCAL_SHARED_LIBRARIES := \
liblx-osal\
libutils\
libcutils \
libdiag \
libar-gsl\
libar-gsl \
libar-acdb

LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/ats/api
Expand Down Expand Up @@ -173,4 +171,4 @@ LOCAL_SHARED_LIBRARIES := \

LOCAL_LDLIBS := -llog

include $(BUILD_EXECUTABLE)
include $(BUILD_EXECUTABLE)
15 changes: 15 additions & 0 deletions acdb/ats/transports/diag/linux/audtp/inc/comdef.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* \file comdef.h
* \brief
* for compatibility with diag
*
* \copyright
* Copyright (c) Qualcomm Innovation Center, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/

#ifndef COMDEF_H
#define PACK(__Declaration__) __Declaration__ __attribute__((__packed__))
#define word uint32_t
#define COMDEF_H
#endif
4 changes: 1 addition & 3 deletions ar_osal/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ LOCAL_CFLAGS := $(osal-def)
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
LOCAL_HEADER_LIBRARIES += libarosal_headers
LOCAL_HEADER_LIBRARIES += qti_audio_kernel_uapi
LOCAL_HEADER_LIBRARIES += libdiag_headers
LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libarosal_headers

include $(LIBION_HEADER_PATH_WRAPPER)
Expand Down Expand Up @@ -60,8 +59,7 @@ else
LOCAL_SRC_FILES += src/linux/qcom/ar_osal_shmem_db.c
endif

LOCAL_SHARED_LIBRARIES := liblog \
libdiag
LOCAL_SHARED_LIBRARIES := liblog

LOCAL_MODULE := liblx-osal
LOCAL_MODULE_OWNER := qti
Expand Down
15 changes: 15 additions & 0 deletions ar_osal/api/comdef.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* \file comdef.h
* \brief
* for compatibility with diag
*
* \copyright
* Copyright (c) Qualcomm Innovation Center, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/

#ifndef COMDEF_H
#define PACK(__Declaration__) __Declaration__ __attribute__((__packed__))
#define word uint32_t
#define COMDEF_H
#endif
7 changes: 4 additions & 3 deletions ar_osal/src/linux/qcom/ar_osal_servreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#ifdef AR_OSAL_USE_CUTILS
#include <cutils/properties.h>
#endif
#include <errno.h>

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -339,12 +340,12 @@ ar_osal_servreg_t ar_osal_servreg_register(_In_ ar_osal_client_type client_type
_In_ ar_osal_servreg_entry_type *domain,
_In_ ar_osal_servreg_entry_type *service)
{
#ifndef AR_OSAL_USE_PD_NOTIFIER
return 1;
#else
int32_t status = AR_EOK;
//ar_osal_servreg_t* handle = NULL;
ar_osal_service_node* srv_reg_handle = NULL;
#ifndef AR_OSAL_USE_PD_NOTIFIER
return (ar_osal_servreg_t)srv_reg_handle;
#else
enum pd_rcode pd_rc = PD_NOTIFIER_FAIL;
pd_state state = SERVREG_NOTIF_SERVICE_STATE_DOWN_V01;

Expand Down

0 comments on commit 7dbbd8c

Please sign in to comment.