21 Oct, 2015
10 commits
-
Move v4l2-specific stuff from videobu2-core to videobuf2-v4l2
without doing any functional changes.Signed-off-by: Junghak Sung
Signed-off-by: Geunyoung Kim
Acked-by: Seung-Woo Kim
Acked-by: Inki Dae
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Prepare to divide videobuf2
- Separate vb2 trace events from v4l2 trace event.
- Make wrapper functions that will move to v4l2-side.
- Make vb2_core_* functions that will remain in core-side.
- Add a callback function table for buffer operation which makes vb2-core
to be able to invoke a v4l2-side functions.
- Rename internal functions as vb2_*.Signed-off-by: Junghak Sung
Signed-off-by: Geunyoung Kim
Acked-by: Seung-Woo Kim
Acked-by: Inki Dae
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Simple changes that replace v4l2-specific data with vb2 data
in videobuf2-core.enum v4l2_buf_type --> int
enum v4l2_memory --> enum vb2_memory
VIDEO_MAX_FRAME --> VB2_MAX_FRAME
VIDEO_MAX_PLANES --> VB2_MAX_PLANES
struct v4l2_fh *owner --> void *owner
V4L2_TYPE_IS_MULTIPLANAR() --> is_multiplanar
V4L2_TYPE_IS_OUTPUT() --> is_outputSigned-off-by: Junghak Sung
Signed-off-by: Geunyoung Kim
Acked-by: Seung-Woo Kim
Acked-by: Inki Dae
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Replace struct v4l2_format * with void * to make queue_setup()
for common use.
And then, modify all device drivers related with this change.Signed-off-by: Junghak Sung
Signed-off-by: Geunyoung Kim
Acked-by: Seung-Woo Kim
Acked-by: Inki Dae
Signed-off-by: Hans Verkuil
[hans.verkuil@cisco.com: fix missing const in fimc-lite.c]Signed-off-by: Mauro Carvalho Chehab
-
MFC driver never delivered EOS event to apps feeding constantly its capture
buffer with fresh buffers. The patch fixes it by marking last buffers
returned by MFC with MFC_BUF_FLAG_EOS flag and firing EOS event on
de-queuing such buffers.Signed-off-by: Andrzej Hajda
Signed-off-by: Kamil Debski
Signed-off-by: Mauro Carvalho Chehab -
MFC encoder supports end-of-stream handling for encoder
in version 5 of hardware. This patch adds it also for newer version.
It was successfully tested on MFC-v8.Signed-off-by: Andrzej Hajda
Signed-off-by: Kamil Debski
Signed-off-by: Mauro Carvalho Chehab -
This patch fixes spelling errors in mfc encoder.
inavild -> invaildSigned-off-by: Ingi Kim
Signed-off-by: Kamil Debski
Signed-off-by: Mauro Carvalho Chehab -
In videobuf2 dma-sg memory types the prepare and finish ops, instead
of passing the number of entries in the original scatterlist as the
"nents" parameter to dma_sync_sg_for_device() and dma_sync_sg_for_cpu(),
the value returned by dma_map_sg() was used. Albeit this has been
suggested in comments of some implementations (which have since been
corrected), this is wrong.Fixes: d790b7eda953 ("vb2-dma-sg: move dma_(un)map_sg here")
Cc: stable@vger.kernel.org # for v3.19 and up
Signed-off-by: Tiffany Lin
Signed-off-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab -
In videobuf2 dma-contig memory type the prepare and finish ops, instead of
passing the number of entries in the original scatterlist as the "nents"
parameter to dma_sync_sg_for_device() and dma_sync_sg_for_cpu(), the value
returned by dma_map_sg() was used. Albeit this has been suggested in
comments of some implementations (which have since been corrected), this
is wrong.Fixes: 199d101efdba ("v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator")
Cc: stable@vger.kernel.org # for v3.8 and up
Signed-off-by: Tiffany Lin
Signed-off-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab -
The I2C core always reports the MODALIAS uevent as "i2c:
Signed-off-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab
10 Oct, 2015
10 commits
-
Now that the Demux kABI is documented at device-drivers.xml,
remove it from the API docbook.Signed-off-by: Mauro Carvalho Chehab
-
There are several stuff at media's kdapi.xml that don't
belong there, as it documents the Kernel internal ABI, and
not the userspace API.Add the documentation here. The hole kdapi.xml will be
removed on a latter patch, after we finish documenting
what's there at the proper places.Signed-off-by: Mauro Carvalho Chehab
-
While we can't document #defines, documenting enums are
well supported by kernel-doc. So, convert the bitmap defines
into an enum.Signed-off-by: Mauro Carvalho Chehab
-
The usage of #define at the kABI is fine, but it doesn't
allow adding a proper description. As those defines deserve
a proper documentation, let's convert them into an enum and
document them at device-drivers DocBook.Signed-off-by: Mauro Carvalho Chehab
-
The dvb/kdapi.tmpl has already an extensive documentation about
this callback. Now that we've added function typedefs at kernel-doc,
add such documentation at demux.h, for it to appear at device-drivers
DocBook.Signed-off-by: Mauro Carvalho Chehab
-
The dvb/kdapi.tmpl has already an extensive documentation about
this callback. Now that we've added function typedefs at kernel-doc,
add such documentation at demux.h, for it to appear at device-drivers
DocBook.Signed-off-by: Mauro Carvalho Chehab
-
A typedef function looks more likely a function and not a
normal typedef. Change the code to use the output_function_*,
in order to properly parse the function prototype parameters.Signed-off-by: Mauro Carvalho Chehab
-
The current typedef parser only works for non-function typedefs.
As we need to also document some function typedefs, add a
parser for it.Signed-off-by: Mauro Carvalho Chehab
-
There are lots of CodingStyle violations here. Now that we're
touching a log on this header files, adding the documentation
here, make sure that this will follow the Kernel CodingStyle.Signed-off-by: Mauro Carvalho Chehab
-
Document the following data types:
struct dmx_ts_feed
struct dmx_section_filter
struct dmx_section_feed
enum dmx_frontend_source
struct dmx_frontendSigned-off-by: Mauro Carvalho Chehab
08 Oct, 2015
1 commit
-
The DVB core has a provision for other frontend sources, but no
drivers use it. The kdapi.xml contains provision for some other
frontend source types, but it is not in sync with the code.So, remove the unused types and sync both files.
Signed-off-by: Mauro Carvalho Chehab
07 Oct, 2015
7 commits
-
This enum is not actually used anymore. The only value used from
the enum is DMX_OK, passed as a parameter on two callbacks.Yet, this value is not used anywhere. So, just remove it.
Signed-off-by: Mauro Carvalho Chehab
-
There are two callbacks still not documented:
.//drivers/media/dvb-core/demux.h:422: warning: No description found for parameter 'get_pes_pids'
.//drivers/media/dvb-core/demux.h:422: warning: No description found for parameter 'get_stc'The purpose of first one is clear. The second one is used only
on the obsolete av7110 driver, and its purpose is not clear,
as it just returns a 64-bit word from the firmware to userspace.Let's document get_pes_pids and mark get_stc as private, adding
a comment to not use it, while this is not documented.Signed-off-by: Mauro Carvalho Chehab
-
There are two DVB demux callbacks and ioctls that aren't documented
and aren't used at all by the DVB core or by any DVB driver upstream.Let's comment out the code for those two ioctls and remove on some
future version.Signed-off-by: Mauro Carvalho Chehab
-
There are a few inconsistencies between the old documentation
that got imported into the header and the current status.Update them, and use the proper doc-nano nomenclature for
struct artuments "@", instead of foo().Signed-off-by: Mauro Carvalho Chehab
-
The DocBook/media/dvb/kdapi.xml contains the description of
the kABI for DVB. The problem is that, by being maintained
on a separate file and not being updated for years, it got
outdated. So, for example, some callback parameters were
changed, but the DocBook were still using the old stuff.As a first step to fix it, let's move the documentation of
struct dmx_demux into demux.h and fix the parameters used
there.For now, don't document any other field nor touch the
descriptions that got moved, letting this job to other
patches. That makes easier to review the patch.PS.: Please notice that an additional patch will be needed
in order to fix the return values (some uses non-existent
return codes) and to the functions and callbacks mentioned at
the descriptions.Signed-off-by: Mauro Carvalho Chehab
-
There are several CodingStyle violations at the DVB code. While
we won't be fixing them as a hole, let's fix at least the
headers, as we're touching on them already in order to properly
document them.No functional changes.
Signed-off-by: Mauro Carvalho Chehab
-
This struct is already documented at the header file, but it is
not using Kernel doc-nano format. Convert to it.Signed-off-by: Mauro Carvalho Chehab
06 Oct, 2015
3 commits
-
Remove warnings about bad whitespacing at function
struct parameters.Signed-off-by: Mauro Carvalho Chehab
-
The struct lirc_driver is already documented, but on some
internal format. Convert it to Kernel doc-nano format and
add documentation for some additional parameters that are
also present at the structure.Signed-off-by: Mauro Carvalho Chehab
-
This header declares the code and structures used to parse
Hauppauge eeproms. As this is part of the V4L2 common, and
used by several drivers, let's properly document it.Signed-off-by: Mauro Carvalho Chehab
05 Oct, 2015
6 commits
-
The digitizer* fields aren't used. Remove them.
Signed-off-by: Mauro Carvalho Chehab
-
The tuner-types.h is part of the V4L2 core and should be
touched for every new tuner added. So, it deserves to be
documented at the device-drivers DocBook.Add it to device-drivers.tmpl and add descriptions for
enum param_type and struct tuner_range.Signed-off-by: Mauro Carvalho Chehab
-
The struct tuner_params is almost fully documented, but
using a non-standard way. Convert it to doc-nano format,
and add descriptions for the parameters that aren't
documented yet.Signed-off-by: Mauro Carvalho Chehab
-
Remove some bad whitespaces before tabs and fix the initial
comment to be compliant with Kernel coding style.Now, the only complains are about long comment lines at the
defines. Those warnings should be ok to be kept.Signed-off-by: Mauro Carvalho Chehab
-
This is part of the V4L2 core, so its kABI should be
documented at device-drivers DocBook.Add the meta-tags for that.
Signed-off-by: Mauro Carvalho Chehab
-
Right now, "private:" tag should be lower-case, otherwise the
scripts/kernel-doc won't do the right thing.Also, no fields after "private:" should be documented. As we don't
want to strip the documentation, let's untag. This way, it will
be seen only at the file, and not at the DocBooks.Signed-off-by: Mauro Carvalho Chehab
03 Oct, 2015
3 commits
-
This saves a little .text and removes the sizeof(...) style
inconsistency. Use sizeof(*state) in accordance with CodingStyle.Signed-off-by: Rasmus Villemoes
Signed-off-by: Mauro Carvalho Chehab -
drivers/media/i2c/ml86v7667.c:430:3-8: No need to set .owner here. The core will do it.
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
CC: Geert Uytterhoeven
Signed-off-by: Fengguang Wu
Signed-off-by: Mauro Carvalho Chehab -
The vivid driver currently has a hard-coded limit of 64 devices,
however there's nothing that prevents the creation of even more devices.
This commit adds a new driver option (which defaults to 64) to
allow this maximum number to be configurable.Signed-off-by: Ezequiel Garcia
Signed-off-by: Mauro Carvalho Chehab