summaryrefslogtreecommitdiff
path: root/soundtrigger/2.0/default/SoundTriggerHalImpl.cpp
AgeCommit message (Collapse)Author
2018-01-17soundtrigger: Refactor the default implementation to be extensibleMikhail Naganov
Introduce an inner "trampoline" class that implements ISoundTriggerHw. This allows minor uprev implementation to inherit from SoundTriggerHalImpl and reuse its functionality. Split SoundModelClient into an abstract common part and version-specific part. This allows the client to be redefined for the types used in callback interface extensions. Split the impl library into "core" part and the part implementing HIDL_FETCH_ISoundTriggerHw function to avoid clash with the same function introduced in minor uprev implementation. Bug: 68823037 Change-Id: Ibec647f1aa7bc6a2a0bdfd1c9f9a066e4779a1bf Test: make
2018-01-17soundtrigger: Apply clang-format to 2.0 default implementationMikhail Naganov
The implementation needs to be updated to become extensible. The current coding style is not consistent with the style required for hardware/interfaces. Reformatted with: clang-format -style=file -i <...>/SoundTriggerHalImpl.* No manual changes. Bug: 68823037 Change-Id: I5f5cbb599190a515dec8afe9026ca835b8fd20fa Test: make
2017-09-07sound trigger: fix array overflow in HAL wrapperEric Laurent
Bug: 65383689 Test: make Change-Id: I9d62eb9be096222bcc3e1734a21f6ade0005b180
2017-04-14soundtrigger: Use "default" instance name for HAL serviceMikhail Naganov
"default" implies using "primary" legacy device module. This doesn't change anything for binderized mode, because the server was only registering itself as "sound_trigger.primary", so it was the only possibility anyways. Usage of "stub" (debugging) module is still possible if audioflinger and corresponding services are built with USE_LEGACY_LOCAL_AUDIO_HAL=true (added makefile check to ensure that). Test: "Ok Google" from screen off state on sailfish Bug: 36570720 Change-Id: I88f1ebd4c1efd0f91e37458746c336a4beef33ae
2017-03-14Fix log format specifier.Bryan Eyler
size() returns size_t. Change-Id: I015b407e26e2be9933558e9f8e2f6c02eba6568a
2017-01-13soundtrigger: initialize mHwDevice member in constructorThierry Strudel
audioserver crashes when sound_trigger legacy HAL does not exist on the device, as mHwDevice is not initialized to NULL. Bug: 32022304 Change-Id: I47642927e91c03817508d462cfcc58370e89b184 Signed-off-by: Thierry Strudel <tstrudel@google.com>
2016-12-01Update to use the correct logging library.Yifan Hong
Test: mma compiles Change-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
2016-10-19audio: add audio HAL service and sound trigger HAL implementationEric Laurent
Audio HAL service is common to audio, audio effect, sound trigger and bradcast radio HALs. Bug: 32022304 Change-Id: I3952b9c6de3a6b34e757942120320cf8ae036ed5