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

Commit 341b6f0f authored by vivek mehta's avatar vivek mehta
Browse files

hal: post_proc: add volume based audio calibration support

- add new effect module to listen to volume and device change
- based on volume levels of all streams active over speaker
  compute gain based calibration level and communicate
  with audio HAL to send the same to ACDB loader

Change-Id: I27294dee3b757a3e7999a62f4f538b59d91c2e58
parent 78cc98d7
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -68,3 +68,32 @@ LOCAL_MODULE:= libhwacceffectswrapper

include $(BUILD_STATIC_LIBRARY)
endif


################################################################################

ifneq ($(filter msm8992 msm8994 msm8996 msm8952,$(TARGET_BOARD_PLATFORM)),)

include $(CLEAR_VARS)

LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/system/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"

LOCAL_SRC_FILES:= \
        volume_listener.c

LOCAL_CFLAGS+= -O2 -fvisibility=hidden

LOCAL_SHARED_LIBRARIES := \
        libcutils \
        liblog \
        libdl

LOCAL_MODULE_RELATIVE_PATH := soundfx
LOCAL_MODULE:= libvolumelistener

LOCAL_C_INCLUDES := \
        $(call include-path-for, audio-effects)

include $(BUILD_SHARED_LIBRARY)

endif
+769 −0

File added.

Preview size limit exceeded, changes collapsed.