blob: c858d789dfad0d7ff5f57d3b1b87fc02adef798f [file] [log] [blame]
Christopher N. Hesse297a6362017-01-28 12:40:45 +01001# Copyright (C) 2017 The LineageOS Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15ifeq ($(TARGET_AUDIOHAL_VARIANT),samsung)
16
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_VARS)
20
21LOCAL_ARM_MODE := arm
22
23LOCAL_SRC_FILES := \
Christopher N. Hesse757ac412017-01-28 14:42:48 +010024 audio_hw.c \
25 compress_offload.c
Christopher N. Hesse297a6362017-01-28 12:40:45 +010026
27# TODO: remove resampler if possible when AudioFlinger supports downsampling from 48 to 8
28LOCAL_SHARED_LIBRARIES := \
29 liblog \
30 libcutils \
31 libaudioutils \
32 libtinyalsa \
33 libtinycompress \
34 libaudioroute \
35 libdl
36
37
38LOCAL_C_INCLUDES += \
Christopher N. Hessed23c6b52017-01-28 14:18:10 +010039 $(LOCAL_PATH)/include \
Christopher N. Hesse297a6362017-01-28 12:40:45 +010040 external/tinyalsa/include \
41 external/tinycompress/include \
42 $(call include-path-for, audio-utils) \
43 $(call include-path-for, audio-route) \
44 $(call include-path-for, audio-effects)
45
46#LOCAL_CFLAGS += -DPREPROCESSING_ENABLED
47#LOCAL_CFLAGS += -DHW_AEC_LOOPBACK
48
49LOCAL_MODULE := audio.primary.$(TARGET_BOOTLOADER_BOARD_NAME)
50
51LOCAL_MODULE_RELATIVE_PATH := hw
52
53LOCAL_MODULE_TAGS := optional
54
55include $(BUILD_SHARED_LIBRARY)
56
57endif