You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
3.6 KiB
95 lines
3.6 KiB
# 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.
|
|
|
|
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.<type>.<hardware/etc>.so where the only
|
|
# required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib/hw
|
|
LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64/hw
|
|
|
|
|
|
LOCAL_MODULE := audio.primary.huanglong
|
|
LOCAL_MULTILIB := 32
|
|
LOCAL_SRC_FILES := audio_hw.c
|
|
ifeq ($(strip $(PRODUCT_TYPE)),tv)
|
|
LOCAL_CFLAGS += -DTV_TYPE
|
|
endif
|
|
|
|
ifeq ($(strip $(PRODUCT_TYPE)),tv)
|
|
LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libuapi_securec libaudioutils libuapi_ai libuapi_ao libuapi_amp libuapi_common
|
|
else
|
|
LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libuapi_securec libaudioutils
|
|
endif
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_CFLAGS += -fno-common
|
|
|
|
ifeq ($(strip $(PRODUCT_TYPE)),tv)
|
|
LOCAL_C_INCLUDES += \
|
|
frameworks/av/media/libstagefright/foundation/include \
|
|
hardware/libhardware/include \
|
|
system/media/audio/include \
|
|
external/tinyalsa/include/tinyalsa \
|
|
$(LOCAL_PATH) \
|
|
vendor/platform/secure_c/include \
|
|
$(SOC_PLATFORM_PATH)/uapi/ao/include \
|
|
$(SOC_PLATFORM_PATH)/uapi/include/audio \
|
|
$(SOC_PLATFORM_PATH)/uapi/include/media \
|
|
$(SOC_PLATFORM_PATH)/linux/include/generic \
|
|
$(SOC_PLATFORM_PATH)/uapi/include/generic \
|
|
$(SOC_PLATFORM_PATH)/uapi/ai/include \
|
|
$(SOC_PLATFORM_PATH)/uapi/common/include \
|
|
$(SOC_PLATFORM_PATH)/uapi/amp/include
|
|
else
|
|
LOCAL_C_INCLUDES += \
|
|
frameworks/av/media/libstagefright/foundation/include \
|
|
hardware/libhardware/include \
|
|
system/media/audio/include \
|
|
external/tinyalsa/include/tinyalsa \
|
|
$(LOCAL_PATH) \
|
|
vendor/platform/secure_c/include
|
|
endif
|
|
|
|
ifeq ($(strip $(PRODUCT_TYPE)),tv)
|
|
LOCAL_SRC_FILES += audio_utils.c \
|
|
hpi.c \
|
|
hpo.c \
|
|
audio_custom.c \
|
|
hdo.c \
|
|
hci.c \
|
|
audio_setting.c \
|
|
audio_phone.c \
|
|
audio_out_avplay.c \
|
|
aiao_wrap.c \
|
|
audio_gain.c
|
|
else
|
|
LOCAL_SRC_FILES += audio_utils.c \
|
|
hpi.c \
|
|
hpo.c \
|
|
audio_custom.c \
|
|
audio_gain.c
|
|
endif
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH)) |