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. |
| 21 | cc_library_shared { |
| 22 | name: "audio.primary.default", |
| 23 | relative_install_path: "hw", |
Po-Chien Hsueh | c535b2f | 2017-03-02 15:44:24 +0800 | [diff] [blame] | 24 | proprietary: true, |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 25 | srcs: ["audio_hw.c"], |
Kevin Rocard | c6ec948 | 2018-01-24 06:04:27 +0000 | [diff] [blame^] | 26 | header_libs: ["libhardware_headers"], |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 27 | shared_libs: [ |
| 28 | "liblog", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 29 | ], |
Glenn Kasten | 2494cae | 2016-09-19 18:16:16 -0700 | [diff] [blame] | 30 | cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | // The stub audio HAL module, identical to the default audio hal, but with |
| 34 | // different name to be loaded concurrently with other audio HALs if necessary. |
| 35 | // This can also be used as skeleton for new implementations |
| 36 | // |
| 37 | // The format of the name is audio.<type>.<hardware/etc>.so where the only |
| 38 | // required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc. |
| 39 | cc_library_shared { |
| 40 | name: "audio.stub.default", |
| 41 | relative_install_path: "hw", |
Po-Chien Hsueh | c535b2f | 2017-03-02 15:44:24 +0800 | [diff] [blame] | 42 | proprietary: true, |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 43 | srcs: ["audio_hw.c"], |
Kevin Rocard | c6ec948 | 2018-01-24 06:04:27 +0000 | [diff] [blame^] | 44 | header_libs: ["libhardware_headers"], |
| 45 | shared_libs: [ |
| 46 | "liblog", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 47 | ], |
Kevin Rocard | c6ec948 | 2018-01-24 06:04:27 +0000 | [diff] [blame^] | 48 | cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], |
| 49 | } |
| 50 | |
| 51 | // The stub audio policy HAL module that can be used as a skeleton for |
| 52 | // new implementations. |
| 53 | cc_library_shared { |
| 54 | name: "audio_policy.stub", |
| 55 | relative_install_path: "hw", |
| 56 | proprietary: true, |
| 57 | srcs: ["audio_policy.c"], |
| 58 | header_libs: ["libhardware_headers"], |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 59 | shared_libs: [ |
| 60 | "liblog", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 61 | ], |
Glenn Kasten | 2494cae | 2016-09-19 18:16:16 -0700 | [diff] [blame] | 62 | cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 63 | } |