# Copyright (C) 2011 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ifeq ($(strip $(BOARD_ALSA_AUDIO)),tiny) LOCAL_PATH := $(call my-dir) # The default audio HAL module, which is a stub, that is loaded if no other # device specific modules are present. The exact load order can be seen in # libhardware/hardware.c # # The format of the name is audio...so where the only # required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc. include $(CLEAR_VARS) LOCAL_MODULE := audio.primary.amlogic ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) LOCAL_PROPRIETARY_MODULE := true endif LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_SRC_FILES := \ audio_hw.c \ audio_virtual_effect.c \ libTVaudio/audio/audio_effect_control.c \ audio_hw_utils.c \ audio_hwsync.c \ spdifenc_wrap.cpp \ audio_hw_profile.c LOCAL_C_INCLUDES += \ external/tinyalsa/include \ system/media/audio_utils/include \ system/media/audio_effects/include \ system/media/audio_route/include \ frameworks/av/media/libeffects/lvm/lib/StereoWidening/lib \ frameworks/av/media/libeffects/lvm/lib/StereoWidening/src \ frameworks/av/media/libeffects/lvm/lib/Common/lib \ frameworks/av/media/libeffects/lvm/lib/Common/src \ libTVaudio/audio LOCAL_STATIC_LIBRARIES += libmusicbundle LOCAL_LDFLAGS_arm += $(LOCAL_PATH)/rcaudio/audio.bt.remote-arm.a LOCAL_LDFLAGS_arm64 += $(LOCAL_PATH)/rcaudio/audio.bt.remote-arm64.a LOCAL_SHARED_LIBRARIES := \ liblog libcutils libtinyalsa \ libaudioutils libdl libaudioroute libutils \ libaudiospdif LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY) #build for USB audio ifeq ($(strip $(BOARD_USE_USB_AUDIO)),true) include $(CLEAR_VARS) LOCAL_MODULE := audio.usb.amlogic ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) LOCAL_PROPRIETARY_MODULE := true endif LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_SRC_FILES := \ usb_audio_hw.c \ audio_resampler.c LOCAL_C_INCLUDES += \ external/tinyalsa/include \ system/media/audio_utils/include LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libaudioutils libutils LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY) endif # BOARD_USE_USB_AUDIO #build for hdmi audio HAL ifeq ($(strip $(BOARD_USE_HDMI_HAL)),true) include $(CLEAR_VARS) LOCAL_MODULE := audio.hdmi.amlogic ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) LOCAL_PROPRIETARY_MODULE := true endif LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_SRC_FILES := \ hdmi_audio_hw.c LOCAL_C_INCLUDES += \ external/tinyalsa/include \ system/media/audio_effects/include \ system/media/audio_utils/include LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libaudioutils libutils #ifdef DOLBY_UDC_PASSTHROUGH_HDMI_PACK LOCAL_SRC_FILES += spdifenc_wrap.cpp LOCAL_C_INCLUDES += \ $(call include-path-for, audio-utils) LOCAL_SHARED_LIBRARIES += \ libaudiospdif #endif # DOLBY_UDC_PASSTHROUGH_HDMI_PACK ifdef DOLBY_EAC3_TO_AC3_CONVERTER LOCAL_SHARED_LIBRARIES += \ libdlb_converter endif # DOLBY_EAC3_TO_AC3_CONVERTER LOCAL_SRC_FILES += audio_hw_profile.c LOCAL_SRC_FILES += audio_hw_utils.c LOCAL_SRC_FILES += audio_hwsync.c LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY) endif # BOARD_USE_HDMI_HAL endif # BOARD_ALSA_AUDIO ######################################################### # Audio Policy Manager ifeq ($(USE_CUSTOM_AUDIO_POLICY),1) include $(CLEAR_VARS) LOCAL_SRC_FILES := \ DLGAudioPolicyManager.cpp LOCAL_SHARED_LIBRARIES := \ libcutils \ liblog \ libutils \ libmedia \ libbinder \ libaudiopolicymanagerdefault \ libutils \ libaudioclient \ libmedia_helper LOCAL_C_INCLUDES := \ external/tinyalsa/include \ $(TOPDIR)frameworks/av/services/audiopolicy \ $(TOPDIR)frameworks/av/services/audiopolicy/managerdefault \ $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ $(TOPDIR)frameworks/av/services/audiopolicy/common/managerdefinitions/include \ $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ $(TOPDIR)frameworks/av/media/libaudioclient/include LOCAL_MODULE := libaudiopolicymanager LOCAL_MODULE_TAGS := optional ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) LOCAL_PROPRIETARY_MODULE := true endif include $(BUILD_SHARED_LIBRARY) endif # USE_CUSTOM_AUDIO_POLICY include $(call all-makefiles-under,$(LOCAL_PATH))