hal : Fix for stability offload issues.

-Disable and enable the device seperately from
 check_usecases_codec_backend function.
-Acquire device lock for pcm close. This prevents crash during
 headset device switch and fast forward.
-hw free is getting called from compress framework while runtime
 update is going on. The front end list could be cleared during
 runtime update and concurrent access of front end list could
 result a crash.

CRs-Fixed: 568710
Change-Id: Iccc2b9d3c175a5421cfc4d070b0af3906d9080c5
1 file changed
tree: e1cb50d6a194f45ae7101347722df773cf0b5867
  1. hal/
  2. legacy/
  3. mm-audio/
  4. policy_hal/
  5. visualizer/
  6. voice_processing/
  7. Android.mk