summaryrefslogtreecommitdiff
path: root/soundtrigger/2.0/default/SoundTriggerHalImpl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Adding getModelState to soundtrigger with build fix."Michael Dooley2018-09-281-1/+1
| | | | | | | | This reverts commit 0320d560eaaaaf88ca84dfd6b22b1792904d986c. Reason for revert: broke build Change-Id: I69cda44f90985b57e69455a8d04cec71f2675831
* Adding getModelState to soundtrigger with build fix.mike dooley2018-09-271-1/+1
| | | | | | | | original cl was ag/4879522 Bug: 70206501 Test: Built android Change-Id: I11f164d8ade66cd7e56f1fa4e46dafa1d56db8cd
* Revert "Adding getModelState API to sound trigger"Michael Dooley2018-09-141-1/+1
| | | | | | | | This reverts commit 73e63e662c4638091f0cd0efb11dce47341f817d. Reason for revert: fix build breakage Change-Id: I37d33bd2536f1917ced8a1ba816f336e7c9bb4e8
* Adding getModelState API to sound triggermike dooley2018-09-121-1/+1
| | | | | | Test: built android Bug-Id: 70206501 Change-Id: I8f45fd86bc14544c676c94daeea71a0ecebdbe03
* soundtrigger: Refactor the default implementation to be extensibleMikhail Naganov2018-01-171-90/+70
| | | | | | | | | | | | | | | | | | 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
* soundtrigger: Apply clang-format to 2.0 default implementationMikhail Naganov2018-01-171-147/+100
| | | | | | | | | | | | | | 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
* sound trigger: fix array overflow in HAL wrapperEric Laurent2017-09-071-2/+4
| | | | | | Bug: 65383689 Test: make Change-Id: I9d62eb9be096222bcc3e1734a21f6ade0005b180
* soundtrigger: Use "default" instance name for HAL serviceMikhail Naganov2017-04-141-18/+4
| | | | | | | | | | | | | | | | "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
* Fix log format specifier.Bryan Eyler2017-03-141-1/+1
| | | | | | size() returns size_t. Change-Id: I015b407e26e2be9933558e9f8e2f6c02eba6568a
* soundtrigger: initialize mHwDevice member in constructorThierry Strudel2017-01-131-1/+1
| | | | | | | | | 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>
* Update to use the correct logging library.Yifan Hong2016-12-011-1/+1
| | | | | Test: mma compiles Change-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
* audio: add audio HAL service and sound trigger HAL implementationEric Laurent2016-10-191-0/+595
Audio HAL service is common to audio, audio effect, sound trigger and bradcast radio HALs. Bug: 32022304 Change-Id: I3952b9c6de3a6b34e757942120320cf8ae036ed5