Skip to content
Snippets Groups Projects
Commit 82c0f04e authored by Vadivel Thekkamalai's avatar Vadivel Thekkamalai
Browse files

FM: Fix compilation errors

Changes are made to fix the compilation errors

Change-Id: Ia543552ddcbf88a306e65a22e42d47dffaa5f14d
parent fdaa2e8f
No related branches found
No related tags found
No related merge requests found
ifeq ($(BOARD_HAVE_QCOM_FM),true)
ifneq (, $(filter aarch64 arm64, $(TARGET_ARCH)))
$(info TODOAArch64: $(LOCAL_PATH)/Android.mk: Enable build support for 64 bit)
else
ifneq (,$(filter $(QCOM_BOARD_PLATFORMS),$(TARGET_BOARD_PLATFORM)))
LOCAL_PATH:= $(call my-dir)
LOCAL_DIR_PATH:= $(call my-dir)
......@@ -22,5 +19,4 @@ include $(LOCAL_PATH)/fmapp2/Android.mk
LOCAL_PATH := $(LOCAL_DIR_PATH)
include $(LOCAL_PATH)/FMRecord/Android.mk
endif # is-vendor-board-platform
endif # TARGET_ARCH
endif # BOARD_HAVE_QCOM_FM
......@@ -1163,22 +1163,6 @@ public class FMTransmitterService extends Service
@Override
public void setEnabled(boolean enabled) {
}
@Override
public void updateFolderInfoBrowsedPlayer(String stringUri) {
}
@Override
public void updateNowPlayingContentChange() {
}
@Override
public void playItemResponse(boolean success) {
}
@Override
public void updateNowPlayingEntries(long[] playList) {
}
}
class Metadata {
......
......
......@@ -17,10 +17,6 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/types.h
LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/posix_types.h
LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/socket.h
LOCAL_MODULE := libqcomfm_jni
LOCAL_MODULE_TAGS := optional
......
......
......@@ -445,22 +445,22 @@ static jint android_hardware_fmradio_FmReceiverJNI_setMonoStereoNative
/* native interface */
static jint android_hardware_fmradio_FmReceiverJNI_getBufferNative
(JNIEnv * env, jobject thiz, jint fd, jbooleanArray buff, jint index)
(JNIEnv * env, jobject thiz, jint fd, jbyteArray buff, jint index)
{
int err;
jboolean isCopy;
jboolean *bool_buffer;
jbyte *byte_buffer;
if ((fd >= 0) && (index >= 0)) {
bool_buffer = env->GetBooleanArrayElements(buff, &isCopy);
byte_buffer = env->GetByteArrayElements(buff, &isCopy);
err = FmIoctlsInterface :: get_buffer(fd,
(char *)bool_buffer,
(char *)byte_buffer,
STD_BUF_SIZE,
index);
if (err < 0) {
err = FM_JNI_FAILURE;
}
env->ReleaseBooleanArrayElements(buff, bool_buffer, 0);
env->ReleaseByteArrayElements(buff, byte_buffer, 0);
} else {
err = FM_JNI_FAILURE;
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment