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", |
| 24 | srcs: ["audio_hw.c"], |
| 25 | shared_libs: [ |
| 26 | "liblog", |
| 27 | "libcutils", |
| 28 | ], |
| 29 | cflags: ["-Wno-unused-parameter"], |
| 30 | } |
| 31 | |
| 32 | // The stub audio HAL module, identical to the default audio hal, but with |
| 33 | // different name to be loaded concurrently with other audio HALs if necessary. |
| 34 | // This can also be used as skeleton for new implementations |
| 35 | // |
| 36 | // The format of the name is audio.<type>.<hardware/etc>.so where the only |
| 37 | // required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc. |
| 38 | cc_library_shared { |
| 39 | name: "audio.stub.default", |
| 40 | relative_install_path: "hw", |
| 41 | srcs: ["audio_hw.c"], |
| 42 | shared_libs: [ |
| 43 | "liblog", |
| 44 | "libcutils", |
| 45 | ], |
| 46 | cflags: ["-Wno-unused-parameter"], |
| 47 | } |
| 48 | |
| 49 | // The stub audio policy HAL module that can be used as a skeleton for |
| 50 | // new implementations. |
| 51 | cc_library_shared { |
| 52 | name: "audio_policy.stub", |
| 53 | relative_install_path: "hw", |
| 54 | srcs: ["audio_policy.c"], |
| 55 | shared_libs: [ |
| 56 | "liblog", |
| 57 | "libcutils", |
| 58 | ], |
| 59 | cflags: ["-Wno-unused-parameter"], |
| 60 | } |