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 := \ |
Christopher N. Hesse | 0fdef0c | 2017-02-25 01:37:56 +0100 | [diff] [blame] | 24 | audience.c \ |
Christopher N. Hesse | 757ac41 | 2017-01-28 14:42:48 +0100 | [diff] [blame] | 25 | audio_hw.c \ |
Christopher N. Hesse | bc52af5 | 2017-02-10 21:20:30 +0100 | [diff] [blame] | 26 | compress_offload.c \ |
Christopher N. Hesse | 41c9f3d | 2017-02-02 20:48:56 +0100 | [diff] [blame] | 27 | ril_interface.c \ |
| 28 | voice.c |
Christopher N. Hesse | 297a636 | 2017-01-28 12:40:45 +0100 | [diff] [blame] | 29 | |
| 30 | # TODO: remove resampler if possible when AudioFlinger supports downsampling from 48 to 8 |
| 31 | LOCAL_SHARED_LIBRARIES := \ |
| 32 | liblog \ |
| 33 | libcutils \ |
| 34 | libaudioutils \ |
Christopher N. Hesse | 6a2a307 | 2017-08-04 21:17:55 +0200 | [diff] [blame] | 35 | libhardware \ |
Suren Baghdasaryan | 7915231 | 2018-12-21 15:07:18 -0800 | [diff] [blame] | 36 | libprocessgroup \ |
Christopher N. Hesse | 297a636 | 2017-01-28 12:40:45 +0100 | [diff] [blame] | 37 | libtinyalsa \ |
| 38 | libtinycompress \ |
| 39 | libaudioroute \ |
Christopher N. Hesse | bc52af5 | 2017-02-10 21:20:30 +0100 | [diff] [blame] | 40 | libdl \ |
| 41 | libsecril-client |
Christopher N. Hesse | 297a636 | 2017-01-28 12:40:45 +0100 | [diff] [blame] | 42 | |
| 43 | |
| 44 | LOCAL_C_INCLUDES += \ |
Christopher N. Hesse | d23c6b5 | 2017-01-28 14:18:10 +0100 | [diff] [blame] | 45 | $(LOCAL_PATH)/include \ |
Christopher N. Hesse | 297a636 | 2017-01-28 12:40:45 +0100 | [diff] [blame] | 46 | external/tinyalsa/include \ |
| 47 | external/tinycompress/include \ |
Christopher N. Hesse | 6a2a307 | 2017-08-04 21:17:55 +0200 | [diff] [blame] | 48 | hardware/libhardware/include \ |
Christopher N. Hesse | bc52af5 | 2017-02-10 21:20:30 +0100 | [diff] [blame] | 49 | hardware/samsung/ril/libsecril-client \ |
Christopher N. Hesse | 297a636 | 2017-01-28 12:40:45 +0100 | [diff] [blame] | 50 | $(call include-path-for, audio-utils) \ |
| 51 | $(call include-path-for, audio-route) \ |
| 52 | $(call include-path-for, audio-effects) |
| 53 | |
Andreas Schneider | 5a2f100 | 2017-02-09 10:59:04 +0100 | [diff] [blame] | 54 | LOCAL_CFLAGS := -Werror -Wall |
Basil Gello | efdfdba | 2018-05-21 18:29:12 +0300 | [diff] [blame] | 55 | LOCAL_CFLAGS += -DPREPROCESSING_ENABLED |
Christopher N. Hesse | 297a636 | 2017-01-28 12:40:45 +0100 | [diff] [blame] | 56 | |
| 57 | LOCAL_MODULE := audio.primary.$(TARGET_BOOTLOADER_BOARD_NAME) |
| 58 | |
| 59 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 60 | |
| 61 | LOCAL_MODULE_TAGS := optional |
| 62 | |
| 63 | include $(BUILD_SHARED_LIBRARY) |
| 64 | |
| 65 | endif |