1LOCAL_PATH:= $(call my-dir)
2
3ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
4# Any prebuilt files with default TAGS can use the below:
5
6include $(CLEAR_VARS)
7#LOCAL_SRC_FILES:= aplay.c alsa_pcm.c alsa_mixer.c
8LOCAL_SRC_FILES:= aplay.c
9LOCAL_MODULE:= aplay
10LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-LGPL
11LOCAL_LICENSE_CONDITIONS:= notice restricted
12LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf
13LOCAL_MODULE_TAGS:= debug
14include $(BUILD_EXECUTABLE)
15
16include $(CLEAR_VARS)
17#LOCAL_SRC_FILES:= arec.c alsa_pcm.c
18LOCAL_SRC_FILES:= arec.c
19LOCAL_MODULE:= arec
20LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-LGPL
21LOCAL_LICENSE_CONDITIONS:= notice restricted
22LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf
23LOCAL_MODULE_TAGS:= debug
24include $(BUILD_EXECUTABLE)
25
26include $(CLEAR_VARS)
27LOCAL_SRC_FILES:= amix.c
28LOCAL_MODULE:= amix
29LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-LGPL
30LOCAL_LICENSE_CONDITIONS:= notice restricted
31LOCAL_SHARED_LIBRARIES := libc libcutils libalsa-intf
32LOCAL_MODULE_TAGS:= debug
33include $(BUILD_EXECUTABLE)
34
35include $(CLEAR_VARS)
36LOCAL_SRC_FILES:= alsaucm_test.c
37LOCAL_MODULE:= alsaucm_test
38LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-LGPL
39LOCAL_LICENSE_CONDITIONS:= notice restricted
40LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf
41LOCAL_MODULE_TAGS:= debug
42include $(BUILD_EXECUTABLE)
43
44include $(CLEAR_VARS)
45LOCAL_COPY_HEADERS_TO   := mm-audio/libalsa-intf
46LOCAL_COPY_HEADERS      := alsa_audio.h
47LOCAL_COPY_HEADERS      += alsa_ucm.h
48LOCAL_COPY_HEADERS      += msm8960_use_cases.h
49LOCAL_SRC_FILES:= alsa_mixer.c alsa_pcm.c alsa_ucm.c
50LOCAL_MODULE:= libalsa-intf
51LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-LGPL
52LOCAL_LICENSE_CONDITIONS:= notice restricted
53LOCAL_MODULE_TAGS := optional
54LOCAL_SHARED_LIBRARIES:= libc libcutils #libutils #libmedia libhardware_legacy
55LOCAL_CFLAGS := -DQC_PROP -DCONFIG_DIR=\"/system/etc/snd_soc_msm/\"
56
57LOCAL_SHARED_LIBRARIES += libdl
58include $(BUILD_SHARED_LIBRARY)
59endif
60