for (i = 0; i < VPBE_DISPLAY_MAX_DEVICES; i++) {
                layer = disp_dev->dev[i];
-               /* If streaming is started in this layer */
-               if (!layer->started)
+
+               if (!vb2_start_streaming_called(&layer->buffer_queue))
                        continue;
 
                if (layer->layer_first_int) {
         * if request format is yuv420 semiplanar, need to
         * enable both video windows
         */
-       layer->started = 1;
        layer->layer_first_int = 1;
 
        return ret;
                        "VIDIOC_S_FMT, layer id = %d\n",
                        layer->device_id);
 
-       /* If streaming is started, return error */
-       if (layer->started) {
-               v4l2_err(&vpbe_dev->v4l2_dev, "Streaming is started\n");
+       if (vb2_is_busy(&layer->buffer_queue))
                return -EBUSY;
-       }
+
        if (V4L2_BUF_TYPE_VIDEO_OUTPUT != fmt->type) {
                v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "invalid type\n");
                return -EINVAL;
 
        v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_STD\n");
 
-       /* If streaming is started, return error */
-       if (layer->started) {
-               v4l2_err(&vpbe_dev->v4l2_dev, "Streaming is started\n");
+       if (vb2_is_busy(&layer->buffer_queue))
                return -EBUSY;
-       }
+
        if (NULL != vpbe_dev->ops.s_std) {
                ret = vpbe_dev->ops.s_std(vpbe_dev, std_id);
                if (ret) {
        int ret;
 
        v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_OUTPUT\n");
-       /* If streaming is started, return error */
-       if (layer->started) {
-               v4l2_err(&vpbe_dev->v4l2_dev, "Streaming is started\n");
+
+       if (vb2_is_busy(&layer->buffer_queue))
                return -EBUSY;
-       }
+
        if (NULL == vpbe_dev->ops.set_output)
                return -EINVAL;
 
 
        v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_DV_TIMINGS\n");
 
-
-       /* If streaming is started, return error */
-       if (layer->started) {
-               v4l2_err(&vpbe_dev->v4l2_dev, "Streaming is started\n");
+       if (vb2_is_busy(&layer->buffer_queue))
                return -EBUSY;
-       }
 
        /* Set the given standard in the encoder */
        if (!vpbe_dev->ops.s_dv_timings)
        v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_display_release\n");
 
        mutex_lock(&layer->opslock);
-       /* Reset io_usrs member of layer object */
-       layer->io_usrs = 0;
 
        osd_device->ops.disable_layer(osd_device,
                        layer->layer_info.id);
-       layer->started = 0;
-
        /* Decrement layer usrs counter */
        layer->usrs--;
        /* If this file handle has initialize encoder device, reset it */