QCamera2: fix bugs in HAL

- Add event handling for focus event in prepare_snapshot_state
- change to correct stream state when put_buf fails in case of
  daemon crash, to handle gracefully exit

Change-Id: I6eebd945c46e1d9c52476318ee3b70f8a2a748af
2 files changed