14 Dec, 2018
1 commit
-
The V4L2_BUF_TYPE_META_OUTPUT mirrors the V4L2_BUF_TYPE_META_CAPTURE with
the exception that it is an OUTPUT type. The use case for this is to pass
buffers to the device that are not image data but metadata. The formats,
just as the metadata capture formats, are typically device specific and
highly structured.Signed-off-by: Sakari Ailus
Acked-by: Hans Verkuil
Reviewed-by: Tomasz Figa
Tested-by: Tian Shu Qiu
Signed-off-by: Mauro Carvalho Chehab
21 Nov, 2018
2 commits
-
Now vidioc_cropcap is only used to return the pixelaspect, so
rename it accordingly.Signed-off-by: Hans Verkuil
Reviewed-by: Niklas Söderlund
Tested-by: Niklas Söderlund
Acked-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab -
Now that all drivers have dropped vidioc_g/s_crop we can remove
support for them in the V4L2 core.Signed-off-by: Hans Verkuil
Reviewed-by: Niklas Söderlund
Acked-by: Sakari Ailus
Reviewed-by: Sylwester Nawrocki
Tested-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab
28 Jun, 2018
1 commit
-
Prepare for adding a new IOCTL VIDIOC_SUBDEV_ENUMSTD which would
enumerate the standards for a subdevice by breaking out the code which
could be shared between the video and subdevice versions of this IOCTL.Signed-off-by: Niklas Söderlund
Signed-off-by: Hans Verkuil
[hans.verkuil@cisco.com: fixed 'sdandard' typos in v4l2-ioctl.h]
Signed-off-by: Mauro Carvalho Chehab
29 May, 2018
1 commit
-
The ioctl serialization mutex (vdev->lock or q->lock for vb2 queues)
was taken at the highest level in v4l2-dev.c. This prevents more
fine-grained locking since at that level we cannot examine the ioctl
arguments, we can only do that after video_usercopy is called.So push the locking down to __video_do_ioctl() and subdev_do_ioctl_lock().
This also allows us to make a few functions in v4l2-ioctl.c static and
video_usercopy() is no longer exported.The locking scheme is not changed by this patch, just pushed down.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
02 Nov, 2017
1 commit
-
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.By default all files without license information are under the default
license of the kernel, which is GPL version 2.Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if
Reviewed-by: Philippe Ombredanne
Reviewed-by: Thomas Gleixner
Signed-off-by: Greg Kroah-Hartman
15 Apr, 2017
1 commit
-
The metadata buffer type is used to transfer metadata between userspace
and kernelspace through a V4L2 buffers queue. It comes with a new
metadata capture capability and format description.Signed-off-by: Laurent Pinchart
Tested-by: Guennadi Liakhovetski
Acked-by: Sakari Ailus
Acked-by: Hans Verkuil
[hans.verkuil@cisco.com: removed left-over 'experimental' note]
[hans.verkuil@cisco.com: add newline after _v4l2-meta-format label]Signed-off-by: Mauro Carvalho Chehab
02 Mar, 2017
1 commit
-
…hed.h> into <linux/sched/signal.h>
Fix up affected files that include this signal functionality via sched.h.
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
09 Sep, 2016
1 commit
-
There are several undocumented functions here; document them.
While here, make checkpatch.pl happy.
Signed-off-by: Mauro Carvalho Chehab
23 Jul, 2016
1 commit
-
This struct is mentioned at the kAPI docbook. So, let's document
it.Signed-off-by: Mauro Carvalho Chehab
21 Oct, 2015
1 commit
-
New IOCTL ops:
vidioc_enum_fmt_sdr_out
vidioc_g_fmt_sdr_out
vidioc_s_fmt_sdr_out
vidioc_try_fmt_sdr_outNew vb2 buffertype:
V4L2_BUF_TYPE_SDR_OUTPUTNew v4l2 capability:
V4L2_CAP_SDR_OUTPUTSigned-off-by: Antti Palosaari
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
03 Mar, 2015
1 commit
-
The handling of VIDIOC_G/S_PRIORITY is now entirely done by the V4L2
core, so we can drop the g/s_priority ioctl ops.We do have to make sure though that when S_PRIORITY is called we check
that the driver used struct v4l2_fh. This check can be removed once all
drivers are converted to that structure.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
23 Dec, 2014
1 commit
-
The old debug field is renamed to dev_debug to ensure that existing drivers
(including out-of-tree drivers) that try to use the old name will no longer
compile. A comment has also been added that makes it explicit that drivers
shouldn't use this field.Additional bits have been added to the debug flag to be more fine-grained
when debugging, especially when dealing with streaming ioctls and read,
write and poll. You want to enable those explicitly to prevent flooding
the log when streaming unless you actually want to do that.Signed-off-by: Hans Verkuil
Acked-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab
17 Jul, 2014
1 commit
-
Add the v4l2 core plumbing for the new VIDIOC_QUERY_EXT_CTRL ioctl.
Signed-off-by: Hans Verkuil
Reviewed-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab
11 Mar, 2014
1 commit
-
Support this ioctl as part of the v4l2 core. Use the new ioctl
name and struct v4l2_edid type in the existing core code.Signed-off-by: Hans Verkuil
Acked-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab
06 Mar, 2014
1 commit
-
Use own format ops for SDR data:
vidioc_enum_fmt_sdr_cap
vidioc_g_fmt_sdr_cap
vidioc_s_fmt_sdr_cap
vidioc_try_fmt_sdr_capSigned-off-by: Antti Palosaari
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
21 Jun, 2013
1 commit
-
This has been replaced by the new and much better VIDIOC_DBG_G_CHIP_INFO.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
15 Apr, 2013
2 commits
-
This ioctl will be extended to return more information than just the name.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Only enable this ioctl if the VIDEO_ADV_DEBUG config option is set. This
prevents abuse from both userspace and kernelspace (some bridge drivers
abuse DBG_G_CHIP_IDENT, lets prevent that from happening again with this
ioctl).Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
29 Mar, 2013
1 commit
-
ioctl's number is unsigned int. Fix it at vidioc_default.
Signed-off-by: Mauro Carvalho Chehab
25 Mar, 2013
2 commits
-
Simplify the debugging ioctls by creating the VIDIOC_DBG_G_CHIP_NAME ioctl.
This will eventually replace VIDIOC_DBG_G_CHIP_IDENT. Chip matching is done
by the name or index of subdevices or an index to a bridge chip. Most of this
can all be done automatically, so most drivers just need to provide get/set
register ops.
In particular, it is now possible to get/set subdev registers without
requiring assistance of the bridge driver.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
These ioctls are no longer used by any drivers, so remove them.
[mchehab@redhat.com: Fix merge conflict]
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
24 Mar, 2013
4 commits
-
This ioctl is defined as IOW, so pass the argument as const.
Signed-off-by: Hans Verkuil
Acked-by: Guennadi Liakhovetski
Acked-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab -
This ioctl is defined as IOW, so pass the argument by value instead of by
reference. I could have chosen to add const instead, but this is 1) easier
to handle in drivers and 2) consistent with the s_std subdev operation.Signed-off-by: Hans Verkuil
Acked-by: Laurent Pinchart
Acked-by: Jonathan Corbet
Acked-by: Guennadi Liakhovetski
Acked-by: Lad, Prabhakar
Signed-off-by: Mauro Carvalho Chehab -
This ioctl is defined as IOW, so pass the argument as const.
Signed-off-by: Hans Verkuil
Acked-by: Laurent Pinchart
Acked-by: Alexey Klimov
Signed-off-by: Mauro Carvalho Chehab -
This ioctl is defined as IOW, so pass the argument as const.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
26 Nov, 2012
1 commit
-
This patch adds extension to V4L2 api. A new ioctl VIDIOC_EXPBUF is added. The
ioctl is used to export an mmap buffer as a DMABUF file descriptor.Signed-off-by: Tomasz Stanislawski
Signed-off-by: Kyungmin Park
Acked-by: Hans Verkuil
Tested-by: Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab
26 Sep, 2012
9 commits
-
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_crop.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_modulator.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_audout.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_audio.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_(un)subscribe_event.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_freq_hw_seek.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_jpegcomp.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_fbuf.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
This buffer type isn't used at all, and since it is effectively undefined
what it should do it is deprecated. The define still exists, but any
internal support for such buffers is removed.
The decisions to deprecate this was taken during the 2012 Media Workshop.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
31 Jul, 2012
1 commit
-
This adds the usual core support code for this new ioctl.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
07 Jul, 2012
2 commits
-
This prepares struct video_device for easier integration with vb2.
It also introduces a new lock that protects the vb2_queue. It is up
to the driver to use it or not. And the driver can associate an owner
filehandle with the queue to check whether queuing requests are
permitted for the calling filehandle.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
v4l_i2c_print_ioctl wasn't used and v4l_print_ioctl could be replaced by
v4l_printk_ioctl.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
20 May, 2012
1 commit
-
Signed-off-by: Hans Verkuil
Reviewed-by: Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab