blob: 7929c66cbba65b3dc2606c78921f41de2b03e0aa [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.
21cc_library_shared {
22 name: "audio.primary.default",
23 relative_install_path: "hw",
Po-Chien Hsuehc535b2f2017-03-02 15:44:24 +080024 proprietary: true,
Dan Willemsenf51bf922016-07-12 22:29:13 -070025 srcs: ["audio_hw.c"],
Kevin Rocardfc9e2122018-01-17 15:57:40 -080026 header_libs: [
27 "libhardware_headers",
28 "android.hardware.audio.common.legacy@2.0",
29 ],
Dan Willemsenf51bf922016-07-12 22:29:13 -070030 shared_libs: [
31 "liblog",
Dan Willemsenf51bf922016-07-12 22:29:13 -070032 ],
Glenn Kasten2494cae2016-09-19 18:16:16 -070033 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
Dan Willemsenf51bf922016-07-12 22:29:13 -070034}
35
36// The stub audio HAL module, identical to the default audio hal, but with
37// different name to be loaded concurrently with other audio HALs if necessary.
38// This can also be used as skeleton for new implementations
39//
40// The format of the name is audio.<type>.<hardware/etc>.so where the only
41// required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
42cc_library_shared {
43 name: "audio.stub.default",
44 relative_install_path: "hw",
Po-Chien Hsuehc535b2f2017-03-02 15:44:24 +080045 proprietary: true,
Dan Willemsenf51bf922016-07-12 22:29:13 -070046 srcs: ["audio_hw.c"],
Kevin Rocardfc9e2122018-01-17 15:57:40 -080047 header_libs: [
48 "libhardware_headers",
49 "android.hardware.audio.common.legacy@2.0",
Dan Willemsenf51bf922016-07-12 22:29:13 -070050 ],
Dan Willemsenf51bf922016-07-12 22:29:13 -070051 shared_libs: [
52 "liblog",
Dan Willemsenf51bf922016-07-12 22:29:13 -070053 ],
Glenn Kasten2494cae2016-09-19 18:16:16 -070054 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
Dan Willemsenf51bf922016-07-12 22:29:13 -070055}