init commit for camera hal

Signed-off-by: Max Liao <liaops@embedinfo.com>
hwcomposer: fix camera video play bug

When finish camera video record, then play the video just recorded.
after play finish, system will crash.

It is because when play video, heolayer will enableUserPtr, but after
play finish, android will goto camera preview, at this time, heolayer
will disableUserPtr. we change the logic to let buffer free normal.

Signed-off-by: LiuXin <liuxing@embedinfo.com>