diff options
author | Ricardo Garcia <rago@google.com> | 2015-02-23 15:42:26 -0800 |
---|---|---|
committer | Ricardo Garcia <rago@google.com> | 2015-03-17 15:50:05 -0700 |
commit | 37cd77257b07d6f078763e9435487698dfb353c4 (patch) | |
tree | b8836a7a62ee8671acbe2124928d1efdb431ca5d /modules/audio/Android.mk | |
parent | 2ae2ec9c937193109a086513584e892581760ab5 (diff) | |
download | hardware_libhardware-37cd77257b07d6f078763e9435487698dfb353c4.zip hardware_libhardware-37cd77257b07d6f078763e9435487698dfb353c4.tar.gz hardware_libhardware-37cd77257b07d6f078763e9435487698dfb353c4.tar.bz2 |
Creating audio.stub.default for default HAL audio output
Creating a simple "stub" audio HAL to be used in systems with no
hardware output. This stub HAL allows systems to run CTS tests and
other audio system calls without crashing or unexpected behavior.
The stub can be used also as a starting point for creating a new HAL.
This is needed for audio_output feature support.
bug: 19439530
Change-Id: I9e8e06e5b7fea7c7f3ff1de303db015b51e8acde
Diffstat (limited to 'modules/audio/Android.mk')
-rw-r--r-- | modules/audio/Android.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/audio/Android.mk b/modules/audio/Android.mk index a31c85f..ef4b8f5 100644 --- a/modules/audio/Android.mk +++ b/modules/audio/Android.mk @@ -31,6 +31,23 @@ LOCAL_CFLAGS := -Wno-unused-parameter include $(BUILD_SHARED_LIBRARY) +# The stub audio HAL module, identical to the default audio hal, but with +# different name to be loaded concurrently with other audio HALs if necessary. +# This can also be used as skeleton for new implementations +# +# The format of the name is audio.<type>.<hardware/etc>.so where the only +# required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc. +include $(CLEAR_VARS) + +LOCAL_MODULE := audio.stub.default +LOCAL_MODULE_RELATIVE_PATH := hw +LOCAL_SRC_FILES := audio_hw.c +LOCAL_SHARED_LIBRARIES := liblog libcutils +LOCAL_MODULE_TAGS := optional +LOCAL_CFLAGS := -Wno-unused-parameter + +include $(BUILD_SHARED_LIBRARY) + # The stub audio policy HAL module that can be used as a skeleton for # new implementations. include $(CLEAR_VARS) |