Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 1 | // 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 Badour | d7984cc | 2021-02-12 20:51:13 -0800 | [diff] [blame] | 21 | package { |
| 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 Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 30 | cc_library_shared { |
| 31 | name: "audio.primary.default", |
| 32 | relative_install_path: "hw", |
Po-Chien Hsueh | c535b2f | 2017-03-02 15:44:24 +0800 | [diff] [blame] | 33 | proprietary: true, |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 34 | srcs: ["audio_hw.c"], |
Kevin Rocard | c6ec948 | 2018-01-24 06:04:27 +0000 | [diff] [blame] | 35 | header_libs: ["libhardware_headers"], |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 36 | shared_libs: [ |
| 37 | "liblog", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 38 | ], |
Glenn Kasten | 2494cae | 2016-09-19 18:16:16 -0700 | [diff] [blame] | 39 | cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 40 | } |
| 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. |
| 48 | cc_library_shared { |
| 49 | name: "audio.stub.default", |
| 50 | relative_install_path: "hw", |
Po-Chien Hsueh | c535b2f | 2017-03-02 15:44:24 +0800 | [diff] [blame] | 51 | proprietary: true, |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 52 | srcs: ["audio_hw.c"], |
Kevin Rocard | c6ec948 | 2018-01-24 06:04:27 +0000 | [diff] [blame] | 53 | header_libs: ["libhardware_headers"], |
| 54 | shared_libs: [ |
| 55 | "liblog", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 56 | ], |
Kevin Rocard | c6ec948 | 2018-01-24 06:04:27 +0000 | [diff] [blame] | 57 | 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. |
| 62 | cc_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 Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 68 | shared_libs: [ |
| 69 | "liblog", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 70 | ], |
Glenn Kasten | 2494cae | 2016-09-19 18:16:16 -0700 | [diff] [blame] | 71 | cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 72 | } |
Ethan Chen | a6ec9c8 | 2015-06-07 11:34:30 -0700 | [diff] [blame] | 73 | |
| 74 | // The stub audio amplifier HAL module that can be used as a skeleton for |
| 75 | // new implementations. |
| 76 | cc_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 | } |