[media] v4l2-mem2mem: drop rdy_queue on STREAMOFF
authorJohn Sheu <sheu@chromium.org>
Wed, 6 Feb 2013 23:03:01 +0000 (20:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Mar 2013 18:13:33 +0000 (15:13 -0300)
commit401f6a2729988c7229c3a78bba0d2f73851e3f51
tree03f0331a3557b262fd508a769cf48673c3f39e1c
parentf1a0569be680a1bfb9d624cc4893cba0c6ad4172
[media] v4l2-mem2mem: drop rdy_queue on STREAMOFF

When a v4l2-mem2mem context gets a STREAMOFF call on either its CAPTURE
or OUTPUT queues, we should:
* Drop the corresponding rdy_queue, since a subsequent STREAMON expects
  an empty queue.
* Deschedule the context, as it now has at least one empty queue and
  cannot run.

Signed-off-by: John Sheu <sheu@google.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-mem2mem.c