summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2022-06-22 10:31:44 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-11-25 07:39:46 +0000
commita10b215325740376ed551814a37d1f8e9d6b1ced (patch)
tree2c0f345e5012b738848cf740aedc4e1386e7e977 /drivers/gpio
parente9305a003ffeb2adfdd860a659fc65ec82320acc (diff)
downloadlinux-stable-a10b215325740376ed551814a37d1f8e9d6b1ced.tar.gz
linux-stable-a10b215325740376ed551814a37d1f8e9d6b1ced.tar.bz2
linux-stable-a10b215325740376ed551814a37d1f8e9d6b1ced.zip
media: vb2: add (un)prepare_streaming queue ops
When userspace called VIDIOC_STREAMON, then you want to claim any streaming resources needed and validate the video pipeline. Waiting for start_streaming to be called is too late, since that can be postponed until the required minimum of buffers is queued. So add a prepare_streaming op (optional) that can be used for that purpose, and a matching unprepare_streaming op (optional) that can release any claimed resources. The unprepare_streaming op is called when VIDIOC_STREAMOFF is called and q->streaming is 1, or when the filehandle is closed while q->streaming is 1. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions