[media] stk-webcam: implement support for count == 0 when calling REQBUFS
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 10 Feb 2013 17:37:58 +0000 (14:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 17:44:17 +0000 (14:44 -0300)
commit9776e17189d33b0ac9235597460d6a22cf1bc6a7
treecbb7255e0bc5f361aa7e6f0ddd64d9e721e72d1c
parentf81e372a5d11694b86fc35ded379a441c209b920
[media] stk-webcam: implement support for count == 0 when calling REQBUFS

The spec specifies that setting count to 0 in v4l2_requestbuffers
should result in releasing any streaming resources and the stream
ownership. Implement this.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/stkwebcam/stk-webcam.c