Revert "Revert "hal: Notify soundtrigger HAL on stream updates""

This reverts commit 9fc06a06405277a54a56859fd68ea9c9b8e3786d.

Instead of sending device enable/disable events, send use case
enable/disable events with use case type to sound trigger hal.
Playback (on speaker) and capture stream events are updated
to soundtrigger hal.

Sound trigger hal can decide to support concurrent sountrigger
sessions based on the audio use case.

Also avoid compilation dependency on sound trigger hal proprietary
interface header file by maintaining the interface APIs locally.

Bug: 63939932
Test: "ok google" from lock screen on marlin, sailfish, walleye,
      taimen,
      music iq on walleye and taimen

Change-Id: I16422b85b929774373f7000f5b6167086340a6df
7 files changed
tree: 06f47cf4a34f3f945be90889c960d32ae268c834
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk