blob: 5bb712d4c57c4ed3ef7f3a4865c7e9838d9cb03a [file] [log] [blame]
wei.du06ada4c2021-06-24 04:04:01 -04001//#################################
2// Audio bluetooth RC HAL
3//#################################
4
5// The default audio HAL module, which is a stub, that is loaded if no other
6// device specific modules are present. The exact load order can be seen in
7// libhardware/hardware.c
8//
9// The format of the name is audio.<type>.<hardware/etc>.so where the only
10// required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
11
12cc_library_shared {
13
14 name: "libamlaudiorc",
15
16 proprietary: true,
17
18 srcs: [
19 "audio_hal_thunks.cpp",
20 "AudioHardwareInput.cpp",
21 "AudioStreamIn.cpp",
22 "AudioHotplugThread.cpp",
23 "hidraw/AudioHidrawStreamIn.cpp",
24 "soundcard/AudioSoundCardStreamIn.cpp",
25 ],
26
27 include_dirs: [
28 "external/tinyalsa/include",
29 "hardware/amlogic/audio/aml_resampler/include",
30 "hardware/amlogic/audio/aml_adecs/include",
31 "hardware/amlogic/audio/aml_parser/include",
32 "hardware/amlogic/audio/aml_speed/include",
33 ],
34 local_include_dirs: [
35 "hidraw",
36 "soundcard",
37 ],
38
39 header_libs: ["libhardware_headers", "libhardware_legacy_headers", "libaudioclient_headers"],
40
41 static_libs: ["audio.bt.remote.static", "libmedia_helper"],
42
43 arch: {
44 x86: {
45 enabled: false,
46 },
47 x86_64: {
48 enabled: false,
49 },
50 },
51
52 shared_libs: [
53 "libcutils",
54 "liblog",
55 "libutils",
56 "libtinyalsa",
57 "libaudioutils",
58 "libamaudioutils",
59 ],
60}
61
62cc_prebuilt_library_static {
63 name: "audio.bt.remote.static",
64 proprietary: true,
65 arch: {
66 arm: {
67 srcs: ["hidraw/audio.bt.remote-arm.a"],
68 },
69 arm64: {
70 srcs: ["hidraw/audio.bt.remote-arm64.a"],
71 },
72 x86: {
73 enabled: false,
74 },
75 x86_64: {
76 enabled: false,
77 },
78 },
79}
80