blob: cdbf7e8a7df9f9ae95bbcfabd622b8e269600ccf [file] [log] [blame]
Roman Kiryanovfc012082020-04-21 17:44:06 -07001//
2// Copyright (C) 2011 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
Bob Badour45a60312021-03-28 19:57:16 -070016package {
17 default_applicable_licenses: ["device_generic_goldfish_audio_license"],
18}
19
20// Added automatically by a large-scale-change
21// See: http://go/android-license-faq
22license {
23 name: "device_generic_goldfish_audio_license",
24 visibility: [":__subpackages__"],
25 license_kinds: [
26 "SPDX-license-identifier-Apache-2.0",
27 ],
28 license_text: [
29 "NOTICE",
30 ],
31}
32
Roman Kiryanov8a67b302020-07-18 20:23:07 -070033cc_library_shared {
Roman Kiryanov682a45d2021-08-20 23:25:15 -070034 name: "android.hardware.audio.legacy@7.0-impl.ranchu",
35 defaults: ["android.hardware.audio@7.0-impl_default"],
Roman Kiryanov8a67b302020-07-18 20:23:07 -070036 relative_install_path: "hw",
Roman Kiryanovfc012082020-04-21 17:44:06 -070037 vendor: true,
Roman Kiryanov8a67b302020-07-18 20:23:07 -070038}
39
40cc_library_shared {
Roman Kiryanov682a45d2021-08-20 23:25:15 -070041 name: "android.hardware.audio@7.0-impl.ranchu",
Roman Kiryanov8a67b302020-07-18 20:23:07 -070042 vendor: true,
Roman Kiryanov682a45d2021-08-20 23:25:15 -070043 vintf_fragments: ["android.hardware.audio@7.0-impl.ranchu.xml"],
Roman Kiryanovfc012082020-04-21 17:44:06 -070044 relative_install_path: "hw",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070045 defaults: ["hidl_defaults"],
46 srcs: [
47 "entry.cpp",
48 "device_factory.cpp",
49 "primary_device.cpp",
50 "stream_common.cpp",
51 "stream_in.cpp",
52 "stream_out.cpp",
53 "io_thread.cpp",
Roman Kiryanov2146e1c2020-06-19 11:20:45 -070054 "device_port_source.cpp",
55 "device_port_sink.cpp",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070056 "talsa.cpp",
Roman Kiryanov95467ad2020-07-22 16:43:37 -070057 "ring_buffer.cpp",
Roman Kiryanov2ab979a2020-07-17 19:07:03 -070058 "audio_ops.cpp",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070059 "util.cpp",
60 ],
Roman Kiryanovfc012082020-04-21 17:44:06 -070061 shared_libs: [
Roman Kiryanov682a45d2021-08-20 23:25:15 -070062 "android.hardware.audio@7.0",
63 "android.hardware.audio.common@7.0",
64 "android.hardware.audio.common@7.0-enums",
65 "android.hardware.audio.common@7.0-util",
Roman Kiryanov76e82792020-06-19 12:24:34 -070066 "libaudioutils",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070067 "libbase",
Roman Kiryanovfc012082020-04-21 17:44:06 -070068 "libcutils",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070069 "libhidlbase",
Roman Kiryanovfc012082020-04-21 17:44:06 -070070 "liblog",
71 "libtinyalsa",
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070072 "libutils",
73 "libfmq",
Roman Kiryanovb9a904c2020-06-22 10:50:55 -070074 "libprocessgroup",
Roman Kiryanove05b5122020-05-20 13:27:40 -070075 ],
76 header_libs: [
Roman Kiryanov9e6e2cb2020-05-21 11:37:32 -070077 "libaudio_system_headers",
Roman Kiryanove05b5122020-05-20 13:27:40 -070078 ],
Roman Kiryanovfc012082020-04-21 17:44:06 -070079 cflags: [
Roman Kiryanov682a45d2021-08-20 23:25:15 -070080 "-DLOG_TAG=\"android.hardware.audio@7.0-impl.ranchu\"",
Roman Kiryanovfc012082020-04-21 17:44:06 -070081 ],
Roman Kiryanov682a45d2021-08-20 23:25:15 -070082 // a.h.audio@X.0-impl.ranchu (see above) loads a.h.audio.legacy@X.0-impl
Roman Kiryanovbc4287b2020-07-18 19:05:12 -070083 // which loads audio.r_submix.default which provides the r_submix device,
84 // see b/161485545. Should be retired once a better r_submix is available.
85 required: [
Roman Kiryanov682a45d2021-08-20 23:25:15 -070086 "android.hardware.audio.legacy@7.0-impl.ranchu",
Roman Kiryanovbc4287b2020-07-18 19:05:12 -070087 "audio.r_submix.default",
88 ],
Roman Kiryanovfc012082020-04-21 17:44:06 -070089}