Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7064334b authored by Varun Balaraj's avatar Varun Balaraj Committed by Garmond Leung
Browse files

hdmi_in_test: Add support for Android

Add support for Android make file.
Fixed compiler warnings.

Change-Id: I7781cc16dc35f9b3498d02a3f60763cdd59b7e6f
parent d0ec32ef
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
SUBDIRS = hal post_proc

if QAHW_SUPPORT
SUBDIRS += qahw_api qahw_api/test hdmi_in_test
SUBDIRS += qahw_api qahw_api/test
endif

if AUDIO_HW_LOOPBACK
SUBDIRS += hdmi_in_test
endif

ACLOCAL_AMFLAGS = -I m4
+15 −0
Original line number Diff line number Diff line
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := hdmi_in_test
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_OWNER := qti

LOCAL_SRC_FILES := \
    src/hdmi_in_event_test.c

LOCAL_SHARED_LIBRARIES := \
    liblog \
    libcutils

include $(BUILD_EXECUTABLE)
+4 −3
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
#include <poll.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/socket.h>
@@ -157,7 +158,7 @@ int poll_event_init()
    return (soc > 0);
}

void listen_uevent(void *ptr)
void listen_uevent(void *ptr __unused)
{
    char buffer[64*1024];
    struct pollfd fds;