msm: camera: Do stream deletion properly.

when mediaserver crashes we are getting error that
__msm_destroy_session_streams: Error: Destroyed
list is not empty.
The order of stream_id for normal camera close is
1,2,3,4,0.When mediaserver crashes stream id order
is 0,1,2,3,4.stream id 4 is coming in the last and
when pvdev->opened is 0 we are not deleting the
stream.Added stream_delete when pvdev->opened is 0.

Change-Id: I22eaa8bd485e19605b9b69e86644f68ce209e808
Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
This commit is contained in:
Manish Poddar 2015-10-09 16:26:50 +05:30 committed by David Keitel
parent e4d3720461
commit a1385afa7b

View file

@ -680,7 +680,7 @@ static int camera_v4l2_close(struct file *filep)
msm_post_event(&event, MSM_POST_EVT_TIMEOUT);
msm_delete_command_ack_q(pvdev->vdev->num, 0);
msm_delete_stream(pvdev->vdev->num, sp->stream_id);
mutex_unlock(&session->close_lock);
/* This should take care of both normal close
* and application crashes */