]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[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>
Mon, 18 Mar 2013 23:48:07 +0000 (20:48 -0300)
commitb52723a60e3fa2dfae520058f72114848b972334
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