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. 21package { 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 30cc_library_shared { 31 name: "audio.primary.default", 32 relative_install_path: "hw", 33 proprietary: true, 34 srcs: ["audio_hw.c"], 35 header_libs: ["libhardware_headers"], 36 shared_libs: [ 37 "liblog", 38 ], 39 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], 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. 48cc_library_shared { 49 name: "audio.stub.default", 50 relative_install_path: "hw", 51 proprietary: true, 52 srcs: ["audio_hw.c"], 53 header_libs: ["libhardware_headers"], 54 shared_libs: [ 55 "liblog", 56 ], 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. 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"], 68 shared_libs: [ 69 "liblog", 70 ], 71 cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"], 72} 73