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

Commit 7a544b44 authored by Eric Laurent's avatar Eric Laurent
Browse files

Add support for treble sound trigger HAL

First implementation of Treble HAL in sound trigger hardware service.

If ENABLE_TREBLE build option is true, the treble HAL and HW
sevice is used. Otherwise the legacy HW module is loaded.

Bug: 30222631

Change-Id: Ibe5be680b7b7a3b261dd62913869e0bb412f438b
parent 2103044b
Loading
Loading
Loading
Loading
+21 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)


ifeq ($(SOUND_TRIGGER_USE_STUB_MODULE), 1)
    LOCAL_CFLAGS += -DSOUND_TRIGGER_USE_STUB_MODULE
endif
@@ -35,12 +34,32 @@ LOCAL_SHARED_LIBRARIES:= \
    libmedia \
    libserviceutility


ifeq ($(ENABLE_TREBLE),true)
# Treble configuration
LOCAL_CFLAGS += -DENABLE_TREBLE
LOCAL_SRC_FILES +=               \
    SoundTriggerHalHidl.cpp

LOCAL_SHARED_LIBRARIES += \
		libhwbinder \
		libhidl \
		libbase \
		android.hardware.soundtrigger@2.0 \
		android.hardware.audio.common@2.0
else
# libhardware configuration
LOCAL_SRC_FILES +=               \
    SoundTriggerHalLegacy.cpp
endif


LOCAL_C_INCLUDES += \
    $(TOPDIR)frameworks/av/services/audioflinger

LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)

LOCAL_CFLAGS := -Wall -Werror
LOCAL_CFLAGS += -Wall -Werror

LOCAL_MODULE:= libsoundtriggerservice

+628 −0

File added.

Preview size limit exceeded, changes collapsed.

+167 −0

File added.

Preview size limit exceeded, changes collapsed.

+80 −0

File added.

Preview size limit exceeded, changes collapsed.

+127 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading