msm: camera: fix preview hang issue when recording is stopped

During stream off, user-space context turns off stream specific
write masters and waits for the ack triggered from next reg update.
But due to incorrect state maintenance this ack never reaches the
waiting context. Fix this by using proper state checks.

Change-Id: Iab98df7210aa0d1e8e662dc39b50383462043937
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
1 file changed