• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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@6.0-impl.ranchu",
35    defaults: ["android.hardware.audio@6.0-impl_default"],
36    relative_install_path: "hw",
37    vendor: true,
38}
39
40cc_library_shared {
41    name: "android.hardware.audio@6.0-impl.ranchu",
42    vendor: true,
43    vintf_fragments: ["android.hardware.audio@6.0-impl.ranchu.xml"],
44    relative_install_path: "hw",
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",
54        "device_port_source.cpp",
55        "device_port_sink.cpp",
56        "talsa.cpp",
57        "ring_buffer.cpp",
58        "audio_ops.cpp",
59        "util.cpp",
60    ],
61    shared_libs: [
62        "android.hardware.audio@6.0",
63        "android.hardware.audio.common@6.0",
64        "android.hardware.audio.common@6.0-util",
65        "libaudioutils",
66        "libbase",
67        "libcutils",
68        "libhidlbase",
69        "liblog",
70        "libtinyalsa",
71        "libutils",
72        "libfmq",
73        "libprocessgroup",
74    ],
75    header_libs: [
76        "libaudio_system_headers",
77    ],
78    cflags: [
79        "-DLOG_TAG=\"android.hardware.audio@6.0-impl.ranchu\"",
80    ],
81    // a.h.audio@6.0-impl.ranchu (see above) loads a.h.audio.legacy@6.0-impl
82    // which loads audio.r_submix.default which provides the r_submix device,
83    // see b/161485545. Should be retired once a better r_submix is available.
84    required: [
85        "android.hardware.audio.legacy@6.0-impl.ranchu",
86        "audio.r_submix.default",
87    ],
88}
89