WORKAROUND: Revert "staging: bcm2835-codec: Format changed should trigger drain"
[platform/kernel/linux-rpi.git] / drivers / staging / vc04_services / bcm2835-codec / bcm2835-v4l2-codec.c
index 472d97d..d917188 100644 (file)
@@ -1007,7 +1007,6 @@ static void handle_fmt_changed(struct bcm2835_codec_ctx *ctx,
                (struct mmal_msg_event_format_changed *)mmal_buf->buffer;
        struct mmal_parameter_video_interlace_type interlace;
        int interlace_size = sizeof(interlace);
-       struct vb2_queue *vq;
        int ret;
 
        v4l2_dbg(1, debug, &ctx->dev->v4l2_dev, "%s: Format changed: buff size min %u, rec %u, buff num min %u, rec %u\n",
@@ -1077,10 +1076,6 @@ static void handle_fmt_changed(struct bcm2835_codec_ctx *ctx,
                q_data->field = V4L2_FIELD_NONE;
        }
 
-       vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE);
-       if (vq->streaming)
-               vq->last_buffer_dequeued = true;
-
        queue_res_chg_event(ctx);
 }