blob: 12de12bb415398699bbde0a9d1d90de83f6ba65f [file] [log] [blame]
Dan Willemsenf51bf922016-07-12 22:29:13 -07001// Copyright (C) 2011 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// The default audio HAL module, which is a stub, that is loaded if no other
16// device specific modules are present. The exact load order can be seen in
17// libhardware/hardware.c
18//
19// The format of the name is audio.<type>.<hardware/etc>.so where the only
20// required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
Bob Badourd7984cc2021-02-12 20:51:13 -080021package {
22 // See: http://go/android-license-faq
23 // A large-scale-change added 'default_applicable_licenses' to import
24 // all of the 'license_kinds' from "hardware_libhardware_license"
25 // to get the below license kinds:
26 // SPDX-license-identifier-Apache-2.0
27 default_applicable_licenses: ["hardware_libhardware_license"],
28}
29
Dan Willemsenf51bf922016-07-12 22:29:13 -070030cc_library_shared {
31 name: "audio.primary.default",
32 relative_install_path: "hw",
Po-Chien Hsuehc535b2f2017-03-02 15:44:24 +080033 proprietary: true,
Dan Willemsenf51bf922016-07-12 22:29:13 -070034 srcs: ["audio_hw.c"],
Kevin Rocardc6ec9482018-01-24 06:04:27 +000035 header_libs: ["libhardware_headers"],
Dan Willemsenf51bf922016-07-12 22:29:13 -070036 shared_libs: [
37 "liblog",
Dan Willemsenf51bf922016-07-12 22:29:13 -070038 ],
Glenn Kasten2494cae2016-09-19 18:16:16 -070039 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
Dan Willemsenf51bf922016-07-12 22:29:13 -070040}
41
42// The stub audio HAL module, identical to the default audio hal, but with
43// different name to be loaded concurrently with other audio HALs if necessary.
44// This can also be used as skeleton for new implementations
45//
46// The format of the name is audio.<type>.<hardware/etc>.so where the only
47// required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
48cc_library_shared {
49 name: "audio.stub.default",
50 relative_install_path: "hw",
Po-Chien Hsuehc535b2f2017-03-02 15:44:24 +080051 proprietary: true,
Dan Willemsenf51bf922016-07-12 22:29:13 -070052 srcs: ["audio_hw.c"],
Kevin Rocardc6ec9482018-01-24 06:04:27 +000053 header_libs: ["libhardware_headers"],
54 shared_libs: [
55 "liblog",
Dan Willemsenf51bf922016-07-12 22:29:13 -070056 ],
Kevin Rocardc6ec9482018-01-24 06:04:27 +000057 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
58}
59
60// The stub audio policy HAL module that can be used as a skeleton for
61// new implementations.
62cc_library_shared {
63 name: "audio_policy.stub",
64 relative_install_path: "hw",
65 proprietary: true,
66 srcs: ["audio_policy.c"],
67 header_libs: ["libhardware_headers"],
Dan Willemsenf51bf922016-07-12 22:29:13 -070068 shared_libs: [
69 "liblog",
Dan Willemsenf51bf922016-07-12 22:29:13 -070070 ],
Glenn Kasten2494cae2016-09-19 18:16:16 -070071 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
Dan Willemsenf51bf922016-07-12 22:29:13 -070072}
Ethan Chena6ec9c82015-06-07 11:34:30 -070073
74// The stub audio amplifier HAL module that can be used as a skeleton for
75// new implementations.
76cc_library_shared {
77 name: "audio_amplifier.default",
78 relative_install_path: "hw",
79 proprietary: true,
80 srcs: ["audio_amplifier.c"],
81 header_libs: [
82 "libhardware_headers",
83 ],
84 shared_libs: [
85 "libcutils",
86 "liblog",
87 ],
88 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
89}