[PATCH 5/5] media: davinci: vpif_capture: fix the check on suspend/resume callbacks

2014-09-06 Thread Lad, Prabhakar
It is possible to call STREAMON without having any buffers queued. So vb2_is_streaming() can return true without start_streaming() having been called. Only after at least one buffer has been queued will start_streaming be called. The check vb2_is_streaming() is incorrect as this would start the

[PATCH 5/5] media: davinci: vpif_capture: fix the check on suspend/resume callbacks

2014-09-06 Thread Lad, Prabhakar
It is possible to call STREAMON without having any buffers queued. So vb2_is_streaming() can return true without start_streaming() having been called. Only after at least one buffer has been queued will start_streaming be called. The check vb2_is_streaming() is incorrect as this would start the