Camera: HAL: Optimize target check in HAL by enumerating targets
instead of comparing with the device string everytime.

Since HAL is common across all targets, there are some target
specific changes. Each of these changes were inside a strcmp
function. Changed it such that strcmp is done only once and
the target type is stored in an enum, which can be used for
further use.
Removed usage of pmem_camera and replaced it with pmem_adsp
since we dont have a partition pmem_camera.
Set mLastQueuedFrame to NULL before starting preview.
2 files changed