Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 1 | // |
| 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 Badour | 45a6031 | 2021-03-28 19:57:16 -0700 | [diff] [blame] | 16 | package { |
| 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 |
| 22 | license { |
| 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 Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 33 | cc_library_shared { |
Roman Kiryanov | 682a45d | 2021-08-20 23:25:15 -0700 | [diff] [blame] | 34 | name: "android.hardware.audio.legacy@7.0-impl.ranchu", |
| 35 | defaults: ["android.hardware.audio@7.0-impl_default"], |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 36 | relative_install_path: "hw", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 37 | vendor: true, |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | cc_library_shared { |
Roman Kiryanov | 682a45d | 2021-08-20 23:25:15 -0700 | [diff] [blame] | 41 | name: "android.hardware.audio@7.0-impl.ranchu", |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 42 | vendor: true, |
Roman Kiryanov | 682a45d | 2021-08-20 23:25:15 -0700 | [diff] [blame] | 43 | vintf_fragments: ["android.hardware.audio@7.0-impl.ranchu.xml"], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 44 | relative_install_path: "hw", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 45 | 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 Kiryanov | 2146e1c | 2020-06-19 11:20:45 -0700 | [diff] [blame] | 54 | "device_port_source.cpp", |
| 55 | "device_port_sink.cpp", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 56 | "talsa.cpp", |
Roman Kiryanov | 95467ad | 2020-07-22 16:43:37 -0700 | [diff] [blame] | 57 | "ring_buffer.cpp", |
Roman Kiryanov | 2ab979a | 2020-07-17 19:07:03 -0700 | [diff] [blame] | 58 | "audio_ops.cpp", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 59 | "util.cpp", |
| 60 | ], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 61 | shared_libs: [ |
Roman Kiryanov | 682a45d | 2021-08-20 23:25:15 -0700 | [diff] [blame] | 62 | "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 Kiryanov | 76e8279 | 2020-06-19 12:24:34 -0700 | [diff] [blame] | 66 | "libaudioutils", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 67 | "libbase", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 68 | "libcutils", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 69 | "libhidlbase", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 70 | "liblog", |
| 71 | "libtinyalsa", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 72 | "libutils", |
| 73 | "libfmq", |
Roman Kiryanov | b9a904c | 2020-06-22 10:50:55 -0700 | [diff] [blame] | 74 | "libprocessgroup", |
Roman Kiryanov | e05b512 | 2020-05-20 13:27:40 -0700 | [diff] [blame] | 75 | ], |
| 76 | header_libs: [ |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 77 | "libaudio_system_headers", |
Roman Kiryanov | e05b512 | 2020-05-20 13:27:40 -0700 | [diff] [blame] | 78 | ], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 79 | cflags: [ |
Roman Kiryanov | 682a45d | 2021-08-20 23:25:15 -0700 | [diff] [blame] | 80 | "-DLOG_TAG=\"android.hardware.audio@7.0-impl.ranchu\"", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 81 | ], |
Roman Kiryanov | 682a45d | 2021-08-20 23:25:15 -0700 | [diff] [blame] | 82 | // a.h.audio@X.0-impl.ranchu (see above) loads a.h.audio.legacy@X.0-impl |
Roman Kiryanov | bc4287b | 2020-07-18 19:05:12 -0700 | [diff] [blame] | 83 | // 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 Kiryanov | 682a45d | 2021-08-20 23:25:15 -0700 | [diff] [blame] | 86 | "android.hardware.audio.legacy@7.0-impl.ranchu", |
Roman Kiryanov | bc4287b | 2020-07-18 19:05:12 -0700 | [diff] [blame] | 87 | "audio.r_submix.default", |
| 88 | ], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 89 | } |