audio: fix control flow

1. Audio HAL should notified STHAL before sending
   audio calibration of audio usecase to kernel.

2. Fix the condition logic of pcm_capture, the
   stream.out and stream.in are union, so we can't
   check if it's NULL.

Bug: 129111371
Test: manual
Change-Id: I39676410555f7f528c0705059c312a1250d489f0
Signed-off-by: Carter Hsu <carterhsu@google.com>
1 file changed
tree: bdb71fdd3ba0ab8cb5c75cda4a76e49f7a7eefaf
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk
  7. OWNERS