hal: update error handling for pcm_prepare failures

Return any errors from pcm_prepare in start input
or output streams and ensure the pcm device is closed.

Change-Id: I7d8d5ab967e514fc9df6dc8d7ae3374ad963f3df
1 file changed
tree: be2acd6aa4d83cab9559e1146d379c9fcd2d1f55
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk