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 16cc_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", 20 vendor: true, 21} 22 23cc_library_shared { 24 name: "android.hardware.audio@6.0-impl.ranchu", 25 vendor: true, 26 vintf_fragments: ["android.hardware.audio@6.0-impl.ranchu.xml"], 27 relative_install_path: "hw", 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", 37 "device_port_source.cpp", 38 "device_port_sink.cpp", 39 "talsa.cpp", 40 "ring_buffer.cpp", 41 "audio_ops.cpp", 42 "util.cpp", 43 ], 44 shared_libs: [ 45 "android.hardware.audio@6.0", 46 "android.hardware.audio.common@6.0", 47 "android.hardware.audio.common@6.0-util", 48 "libaudioutils", 49 "libbase", 50 "libcutils", 51 "libhidlbase", 52 "liblog", 53 "libtinyalsa", 54 "libutils", 55 "libfmq", 56 "libprocessgroup", 57 ], 58 header_libs: [ 59 "libaudio_system_headers", 60 ], 61 cflags: [ 62 "-DLOG_TAG=\"android.hardware.audio@6.0-impl.ranchu\"", 63 ], 64 // a.h.audio@6.0-impl.ranchu (see above) loads a.h.audio.legacy@6.0-impl 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: [ 68 "android.hardware.audio.legacy@6.0-impl.ranchu", 69 "audio.r_submix.default", 70 ], 71} 72