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 | |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 16 | cc_library_shared { |
| 17 | name: "android.hardware.audio.legacy@6.0-impl.ranchu", |
| 18 | defaults: ["android.hardware.audio@6.0-impl_default"], |
| 19 | relative_install_path: "hw", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 20 | vendor: true, |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | cc_library_shared { |
| 24 | name: "android.hardware.audio@6.0-impl.ranchu", |
| 25 | vendor: true, |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 26 | vintf_fragments: ["android.hardware.audio@6.0-impl.ranchu.xml"], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 27 | relative_install_path: "hw", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 28 | defaults: ["hidl_defaults"], |
| 29 | srcs: [ |
| 30 | "entry.cpp", |
| 31 | "device_factory.cpp", |
| 32 | "primary_device.cpp", |
| 33 | "stream_common.cpp", |
| 34 | "stream_in.cpp", |
| 35 | "stream_out.cpp", |
| 36 | "io_thread.cpp", |
Roman Kiryanov | 2146e1c | 2020-06-19 11:20:45 -0700 | [diff] [blame] | 37 | "device_port_source.cpp", |
| 38 | "device_port_sink.cpp", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 39 | "talsa.cpp", |
Roman Kiryanov | 95467ad | 2020-07-22 16:43:37 -0700 | [diff] [blame^] | 40 | "ring_buffer.cpp", |
Roman Kiryanov | 2ab979a | 2020-07-17 19:07:03 -0700 | [diff] [blame] | 41 | "audio_ops.cpp", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 42 | "util.cpp", |
| 43 | ], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 44 | shared_libs: [ |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 45 | "android.hardware.audio@6.0", |
| 46 | "android.hardware.audio.common@6.0", |
| 47 | "android.hardware.audio.common@6.0-util", |
Roman Kiryanov | 76e8279 | 2020-06-19 12:24:34 -0700 | [diff] [blame] | 48 | "libaudioutils", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 49 | "libbase", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 50 | "libcutils", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 51 | "libhidlbase", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 52 | "liblog", |
| 53 | "libtinyalsa", |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 54 | "libutils", |
| 55 | "libfmq", |
Roman Kiryanov | b9a904c | 2020-06-22 10:50:55 -0700 | [diff] [blame] | 56 | "libprocessgroup", |
Roman Kiryanov | e05b512 | 2020-05-20 13:27:40 -0700 | [diff] [blame] | 57 | ], |
| 58 | header_libs: [ |
Roman Kiryanov | 9e6e2cb | 2020-05-21 11:37:32 -0700 | [diff] [blame] | 59 | "libaudio_system_headers", |
Roman Kiryanov | e05b512 | 2020-05-20 13:27:40 -0700 | [diff] [blame] | 60 | ], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 61 | cflags: [ |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 62 | "-DLOG_TAG=\"android.hardware.audio@6.0-impl.ranchu\"", |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 63 | ], |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 64 | // a.h.audio@6.0-impl.ranchu (see above) loads a.h.audio.legacy@6.0-impl |
Roman Kiryanov | bc4287b | 2020-07-18 19:05:12 -0700 | [diff] [blame] | 65 | // which loads audio.r_submix.default which provides the r_submix device, |
| 66 | // see b/161485545. Should be retired once a better r_submix is available. |
| 67 | required: [ |
Roman Kiryanov | 8a67b30 | 2020-07-18 20:23:07 -0700 | [diff] [blame] | 68 | "android.hardware.audio.legacy@6.0-impl.ranchu", |
Roman Kiryanov | bc4287b | 2020-07-18 19:05:12 -0700 | [diff] [blame] | 69 | "audio.r_submix.default", |
| 70 | ], |
Roman Kiryanov | fc01208 | 2020-04-21 17:44:06 -0700 | [diff] [blame] | 71 | } |