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 16package { 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 33cc_library_shared { 34 name: "android.hardware.audio.legacy@7.0-impl.ranchu", 35 defaults: ["android.hardware.audio@7.0-impl_default"], 36 relative_install_path: "hw", 37 vendor: true, 38} 39 40cc_defaults { 41 name: "android.hardware.audio@7.x-impl.ranchu_default", 42 vendor: true, 43 relative_install_path: "hw", 44 defaults: ["hidl_defaults"], 45 srcs: [ 46 "entry.cpp", 47 "device_factory.cpp", 48 "primary_device.cpp", 49 "stream_common.cpp", 50 "stream_in.cpp", 51 "stream_out.cpp", 52 "io_thread.cpp", 53 "device_port_source.cpp", 54 "device_port_sink.cpp", 55 "talsa.cpp", 56 "ring_buffer.cpp", 57 "audio_ops.cpp", 58 "util.cpp", 59 ], 60 shared_libs: [ 61 "android.hardware.audio@7.0", 62 "android.hardware.audio@7.0-util", 63 "android.hardware.audio.common@7.0", 64 "android.hardware.audio.common@7.0-util", 65 "libaudioutils", 66 "libbase", 67 "libcutils", 68 "libhidlbase", 69 "liblog", 70 "libtinyalsav2", 71 "libutils", 72 "libfmq", 73 "libprocessgroup", 74 ], 75 header_libs: [ 76 "android.hardware.audio.common.util@all-versions", 77 "libaudio_system_headers", 78 ], 79 cflags: [ 80 "-include common/all-versions/VersionMacro.h", 81 ], 82} 83 84cc_library_shared { 85 name: "android.hardware.audio@7.0-impl.ranchu", 86 defaults: ["android.hardware.audio@7.x-impl.ranchu_default"], 87 vintf_fragments: ["android.hardware.audio@7.0-impl.ranchu.xml"], 88 shared_libs: [ 89 "android.hardware.audio.common@7.0-enums", 90 ], 91 cflags: [ 92 "-DLOG_TAG=\"android.hardware.audio@7.0-impl.ranchu\"", 93 "-DMAJOR_VERSION=7", 94 "-DMINOR_VERSION=0", 95 "-include common/all-versions/VersionMacro.h", 96 ], 97 // a.h.audio@X.0-impl.ranchu (see above) loads a.h.audio.legacy@X.0-impl 98 // which loads: 99 // - audio.r_submix.default which provides the r_submix device (b/161485545) 100 // - audio.a2dp.default which provides the a2dp device (b/228804498) 101 // - audio.bluetooth.default which provides the bluetooth device (b/228804498) 102 // This should be retired once we don't need to load the 103 // deprecated libhardware modules listed above. 104 // 105 // audio.a2dp.default is not part of the required list as it's already in the 106 // generic system image 107 required: [ 108 "android.hardware.audio.legacy@7.0-impl.ranchu", 109 "audio.r_submix.default", 110 "audio.bluetooth.default", 111 ], 112} 113 114cc_library_shared { 115 name: "android.hardware.audio.legacy@7.1-impl.ranchu", 116 defaults: ["android.hardware.audio@7.1-impl_default"], 117 relative_install_path: "hw", 118 vendor: true, 119} 120 121cc_library_shared { 122 name: "android.hardware.audio@7.1-impl.ranchu", 123 defaults: ["android.hardware.audio@7.x-impl.ranchu_default"], 124 vintf_fragments: ["android.hardware.audio@7.1-impl.ranchu.xml"], 125 shared_libs: [ 126 "android.hardware.audio@7.1", 127 "android.hardware.audio.common@7.1-enums", 128 ], 129 cflags: [ 130 "-DLOG_TAG=\"android.hardware.audio@7.1-impl.ranchu\"", 131 "-DMAJOR_VERSION=7", 132 "-DMINOR_VERSION=1", 133 "-DCOMMON_TYPES_MINOR_VERSION=0", 134 "-DCORE_TYPES_MINOR_VERSION=0", 135 ], 136 // a.h.audio@X.0-impl.ranchu (see above) loads a.h.audio.legacy@X.0-impl 137 // which loads: 138 // - audio.r_submix.default which provides the r_submix device (b/161485545) 139 // - audio.a2dp.default which provides the a2dp device (b/228804498) 140 // - audio.bluetooth.default which provides the bluetooth device (b/228804498) 141 // This should be retired once we don't need to load the 142 // deprecated libhardware modules listed above. 143 // 144 // audio.a2dp.default is not part of the required list as it's already in the 145 // generic system image 146 required: [ 147 "android.hardware.audio.legacy@7.1-impl.ranchu", 148 "audio.r_submix.default", 149 "audio.bluetooth.default", 150 ], 151} 152