23 Feb, 2017
2 commits
-
This reverts commit 5cf6f7f327c95f09be859889be39e78950516556.
-
This reverts commit b71c99801e18eb172ae34851daf25044a3bf644a.
Signed-off-by: Oliver Brown
(cherry picked from commit 5c74966c0e7deb0ac84b3fa8a84c6c942e7d434f)Conflicts:
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
include/media/v4l2-subdev.h
06 Oct, 2016
1 commit
-
Linux 4.8
* tag 'v4.8': (1761 commits)
Linux 4.8
ARM: 8618/1: decompressor: reset ttbcr fields to use TTBR0 on ARMv7
MIPS: CM: Fix mips_cm_max_vp_width for non-MT kernels on MT systems
include/linux/property.h: fix typo/compile error
ocfs2: fix deadlock on mmapped page in ocfs2_write_begin_nolock()
mm: workingset: fix crash in shadow node shrinker caused by replace_page_cache_page()
MAINTAINERS: Switch to kernel.org email address for Javi Merino
x86/entry/64: Fix context tracking state warning when load_gs_index fails
x86/boot: Initialize FPU and X86_FEATURE_ALWAYS even if we don't have CPUID
x86/vdso: Fix building on big endian host
x86/boot: Fix another __read_cr4() case on 486
sctp: fix the issue sctp_diag uses lock_sock in rcu_read_lock
sctp: change to check peer prsctp_capable when using prsctp polices
sctp: remove prsctp_param from sctp_chunk
sctp: move sent_count to the memory hole in sctp_chunk
tg3: Avoid NULL pointer dereference in tg3_io_error_detected()
x86/init: Fix cr4_init_shadow() on CR4-less machines
MIPS: Fix detection of unsupported highmem with cache aliases
MIPS: Malta: Fix IOCU disable switch read for MIPS64
MIPS: Fix BUILD_ROLLBACK_PROLOGUE for microMIPS
...
22 Sep, 2016
2 commits
-
Currently we do not know what variant (bit length) of the nec protocol
is used, other than from guessing from the length of the scancode. Now
nec will be handled the same way as the sony protocol or the rc6 protocol;
one variant per bit length.In the future we might want to expose the rc protocol type to userspace
and we don't want to be introducing this world of pain into userspace
too.Signed-off-by: Sean Young
Signed-off-by: Mauro Carvalho Chehab -
As warned by linuxdoc[1] tool, using:
$ for i in $(git grep kernel-doc Documentation/media/kapi/|cut -d: -f4); do kernel-lintdoc --sloppy $i; done
include/media/v4l2-dev.h:118 :WARN: function name from comment differs: v4l2_prio_close v4l2_prio_check
include/media/v4l2-mc.h:56 [kernel-doc WARN] : enum name from comment differs: if_vid_dec_index if_vid_dec_pad_index
include/media/v4l2-mc.h:71 [kernel-doc WARN] : enum name from comment differs: if_aud_dec_index if_aud_dec_pad_index
include/media/v4l2-mem2mem.h:396 [kernel-doc WARN] : function name from comment differs: v4l2_m2m_num_src_bufs_ready v4l2_m2m_num_dst_bufs_ready
drivers/media/dvb-core/dvb_math.h:28 [kernel-doc WARN] : function name from comment differs: cintlog2 intlog2
include/media/v4l2-subdev.h:215 [kernel-doc WARN] : struct name from comment differs: s_radio v4l2_subdev_tuner_ops
include/media/v4l2-subdev.h:890 [kernel-doc WARN] : function name from comment differs: v4l2_set_subdevdata v4l2_set_subdev_hostdata
include/media/v4l2-subdev.h:901 [kernel-doc WARN] : function name from comment differs: v4l2_get_subdevdata v4l2_get_subdev_hostdata
drivers/media/dvb-core/dvb_ringbuffer.h:196 [kernel-doc WARN] : function name from comment differs: dvb_ringbuffer_writeuser dvb_ringbuffer_write_user
include/media/videobuf2-core.h:399 [kernel-doc WARN] : struct name from comment differs: vb2_ops vb2_buf_ops
include/media/media-entity.h:132 [kernel-doc ERROR] : duplicate parameter definition 'source'
include/media/media-entity.h:477 [kernel-doc WARN] : function name from comment differs: media_entity_enum_test media_entity_enum_test_and_set
include/media/media-entity.h:535 [kernel-doc WARN] : function name from comment differs: gobj_to_entity gobj_to_pad
include/media/media-entity.h:544 [kernel-doc WARN] : function name from comment differs: gobj_to_entity gobj_to_link
include/media/media-entity.h:553 [kernel-doc WARN] : function name from comment differs: gobj_to_entity gobj_to_intf
include/media/media-entity.h:562 [kernel-doc WARN] : function name from comment differs: gobj_to_entity intf_to_devnode
include/media/rc-core.h:234 [kernel-doc WARN] : function name from comment differs: rc_open rc_close
include/media/v4l2-ctrls.h:397 [kernel-doc WARN] : missing initial short description of 'v4l2_ctrl_handler_init'
include/media/v4l2-dev.h:118 [kernel-doc WARN] : function name from comment differs: v4l2_prio_close v4l2_prio_check
include/media/v4l2-event.h:225 [kernel-doc WARN] : missing initial short description of 'v4l2_src_change_event_subscribe'[1] https://return42.github.io/linuxdoc/linux.html
The above are real issues at the documentation. On several cases,
caused by cut-and-paste.Fix them.
Signed-off-by: Mauro Carvalho Chehab
09 Sep, 2016
28 commits
-
The vsp1 driver supports tri-planar formats, but the DRM API only passes
two memory addresses. Add a third one.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
The rcar_fcp_enable() function immediately returns successfully when the
FCP device pointer is NULL to avoid forcing the users to check the FCP
device manually before every call. However, the stub version of the
function used when the FCP driver is disabled returns -ENOSYS
unconditionally, resulting in a different API contract for the two
versions of the function.As a user that requires FCP support will fail at probe time when calling
rcar_fcp_get() if the FCP driver is disabled, the stub version of the
rcar_fcp_enable() function will only be called with a NULL FCP device.
We can thus return 0 unconditionally to align the behaviour with the
normal version of the function.Reported-by: Sergei Shtylyov
Signed-off-by: Laurent Pinchart
Reviewed-by: Geert Uytterhoeven
Signed-off-by: Mauro Carvalho Chehab -
This will allow adding new operations without increasing the
media_device structure size for drivers that don't implement any media
device operation.Signed-off-by: Laurent Pinchart
Signed-off-by: Sakari Ailus
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
One struct at the comment was not written well.
Fix it.
Signed-off-by: Mauro Carvalho Chehab
-
There is a warning there, because it was pointing to a different
name. Fix it.While here, use struct &foo, instead of &struct foo.
Signed-off-by: Mauro Carvalho Chehab
-
Fix this warning:
./include/media/v4l2-flash-led-class.h:103: WARNING: c:type reference target not found: v4l2_flash_opsSigned-off-by: Mauro Carvalho Chehab
-
Document vb2_ops_wait_prepare() and vb2_ops_wait_finish(),
in order to fix those two warnings:
Documentation/media/kapi/v4l2-dev.rst:166: WARNING: c:func reference target not found: vb2_ops_wait_prepare
Documentation/media/kapi/v4l2-dev.rst:166: WARNING: c:func reference target not found: vb2_ops_wait_finishSigned-off-by: Mauro Carvalho Chehab
-
There are a few issues at the documentation: fields not documented,
bad cross refrences, etc.Fix them.
Signed-off-by: Mauro Carvalho Chehab
-
There are several functions documented at the C file. Move
them to the header, as this is the one used to build the
media books.Signed-off-by: Mauro Carvalho Chehab
-
There are several small issues with the documentation. Fix them,
in order to avoid producing warnings.While here, also make checkpatch.pl happy.
Signed-off-by: Mauro Carvalho Chehab
-
This enum was not documented. Document it.
Signed-off-by: Mauro Carvalho Chehab
-
There are several functions that were documented at the .c
file. As we only include the headers, we need to move them to
there, in order to have documentation.Signed-off-by: Mauro Carvalho Chehab
-
The kernel-doc C parser doesn't like opaque structures. So,
document it on another way.This should get rid of this warning:
./include/media/v4l2-mem2mem.h:62: error: Cannot parse struct or union!Signed-off-by: Mauro Carvalho Chehab
-
Most structures here are not documented. Add a documentation
for them.Signed-off-by: Mauro Carvalho Chehab
-
There are lots of troubles with the function arguments on this
file. Fix them.Signed-off-by: Mauro Carvalho Chehab
-
Several routines are somewhat documented at v4l2-mem2mem.c
file. Move what's there to the header file.Signed-off-by: Mauro Carvalho Chehab
-
Fix this warning:
Documentation/media/kapi/mc-core.rst:97: WARNING: c:func reference target not found: media_devnode_releaseThe media_device_release() is a function internal to media-devnode.c,
and not exported elsewhere. So, we can't cross-reference it here.
Make it explicit at the documentation.Signed-off-by: Mauro Carvalho Chehab
-
./include/media/rc-map.h:121: WARNING: Inline emphasis start-string without end-string.
Signed-off-by: Mauro Carvalho Chehab
-
One markup tag is wrong here.
Signed-off-by: Mauro Carvalho Chehab
-
Now that scripts/kernel-doc was fixed to parse the typedef
argument used here, let it produce documentation.Signed-off-by: Mauro Carvalho Chehab
-
Fix some minor issues at the documentation tags on this file,
adding cross-references where needed, and fixing some broken
ones.While here, fix a few spaces before tabs to make Checkpatch happier.
Signed-off-by: Mauro Carvalho Chehab
-
There are several undocumented functions here; document them.
While here, make checkpatch.pl happy.
Signed-off-by: Mauro Carvalho Chehab
-
Now that the uAPI is using c:type, let's use it here too.
Signed-off-by: Mauro Carvalho Chehab
-
Change the parse-headers.pl and the corresponding files to use
the C domain for enum references.Signed-off-by: Mauro Carvalho Chehab
-
The prepare_ext_ctrls() function is actually internal to the
v4l2-ctrls.c implementation, so it doesn't have a declaration
for the kAPI header to reference it.Signed-off-by: Mauro Carvalho Chehab
-
The typedefs and a macro are not defined. While here, improve a
few bits on the documentation.Signed-off-by: Mauro Carvalho Chehab
-
There are some structs/enums that aren't documented via
kernel-doc markup. Add documentation for them.Fix those warnings:
./include/media/rc-map.h:103: WARNING: c:type reference target not found: rc_map_list
./include/media/rc-map.h:110: WARNING: c:type reference target not found: rc_map_list
./include/media/rc-map.h:117: WARNING: c:type reference target not found: rc_mapSigned-off-by: Mauro Carvalho Chehab
-
There are several issues on the documentation:
- the media.h header were not properly referenced;
- verbatim expressions were not properly marked as such;
- struct member references were wrong;
- some notes were not using the right markup;
- a comment that were moved to the kernel-doc markup were
duplicated as a comment inside the struct media_entity;
- some args were not pointing to the struct they're using;
- macros weren't documented.Signed-off-by: Mauro Carvalho Chehab
06 Sep, 2016
3 commits
-
The clock framework is generally so well supported that there's no reason
to keep this one around.Signed-off-by: Sakari Ailus
Reviewed-by: Sebastian Reichel
Signed-off-by: Mauro Carvalho Chehab -
Switch from the old gpio API to the new descriptor based gpiod API.
Signed-off-by: Sakari Ailus
Reviewed-by: Sebastian Reichel
Signed-off-by: Mauro Carvalho Chehab -
This is really configuration to the driver originating from DT or
elsewhere. Do not call it platform data.Signed-off-by: Sakari Ailus
Reviewed-by: Sebastian Reichel
Signed-off-by: Mauro Carvalho Chehab
25 Aug, 2016
4 commits
-
The v4l2_subdev_core_ops .registered_async callback was added to notify
a subdev when its entity has been registered with the media device, to
allow for example to modify the media graph (i.e: adding entities/links).But that's not needed since there is already a .registered callback in
struct v4l2_subdev_internal_ops that's called after the entity has been
registered with the media device in v4l2_device_register_subdev().Suggested-by: Sakari Ailus
Signed-off-by: Javier Martinez Canillas
Signed-off-by: Mauro Carvalho Chehab -
The macro gobj_to_pad() is defined twice in media-entity.h.
Let's remove one.Signed-off-by: Liu Ying
Signed-off-by: Mauro Carvalho Chehab -
The function media_entity_enum_empty() returns true when the bitmap
of the input parameter media entity enumeration is empty instead of marked.
This patch corrects the return value description of the function.Signed-off-by: Liu Ying
Signed-off-by: Mauro Carvalho Chehab -
The macro gobj_to_link() is defined twice in media-entity.h.
Let's remove one.Signed-off-by: Liu Ying
Signed-off-by: Mauro Carvalho Chehab