Christopher N. Hesse | 297a636 | 2017-01-28 12:40:45 +0100 | [diff] [blame^] | 1 | # 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 | |
| 15 | ifeq ($(TARGET_AUDIOHAL_VARIANT),samsung) |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | |
| 21 | LOCAL_ARM_MODE := arm |
| 22 | |
| 23 | LOCAL_SRC_FILES := \ |
| 24 | audio_hw.c |
| 25 | |
| 26 | # TODO: remove resampler if possible when AudioFlinger supports downsampling from 48 to 8 |
| 27 | LOCAL_SHARED_LIBRARIES := \ |
| 28 | liblog \ |
| 29 | libcutils \ |
| 30 | libaudioutils \ |
| 31 | libtinyalsa \ |
| 32 | libtinycompress \ |
| 33 | libaudioroute \ |
| 34 | libdl |
| 35 | |
| 36 | |
| 37 | LOCAL_C_INCLUDES += \ |
| 38 | external/tinyalsa/include \ |
| 39 | external/tinycompress/include \ |
| 40 | $(call include-path-for, audio-utils) \ |
| 41 | $(call include-path-for, audio-route) \ |
| 42 | $(call include-path-for, audio-effects) |
| 43 | |
| 44 | #LOCAL_CFLAGS += -DPREPROCESSING_ENABLED |
| 45 | #LOCAL_CFLAGS += -DHW_AEC_LOOPBACK |
| 46 | |
| 47 | LOCAL_MODULE := audio.primary.$(TARGET_BOOTLOADER_BOARD_NAME) |
| 48 | |
| 49 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 50 | |
| 51 | LOCAL_MODULE_TAGS := optional |
| 52 | |
| 53 | include $(BUILD_SHARED_LIBRARY) |
| 54 | |
| 55 | endif |