Steve Longerbeam
b47d7ff1ae
media: v4l2: async: Add v4l2_async_notifier_add_subdev
...
v4l2_async_notifier_add_subdev() adds an asd to the notifier. It checks
that no other equivalent asd's have already been added to this notifier's
asd list, or to other registered notifier's waiting or done lists, and
increments num_subdevs.
v4l2_async_notifier_add_subdev() does not make use of the notifier subdevs
array, otherwise it would have to re-allocate the array every time the
function was called. In place of the subdevs array, the function adds
the newly allocated asd to a new master asd_list. The function will
return error with a WARN() if it is ever called with the subdevs array
allocated.
Drivers are now required to call a v4l2_async_notifier_init(), before the
first call to v4l2_async_notifier_add_subdev(), in order to initialize
the asd_list.
In v4l2_async_notifier_has_async_subdev(), __v4l2_async_notifier_register(),
and v4l2_async_notifier_cleanup(), maintain backward compatibility with
the subdevs array, by alternatively operate on the subdevs array or a
non-empty notifier->asd_list.
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-10-04 15:17:33 -04:00
..
davinci
drv-intf
media: include: media: Add Renesas CEU driver interface
2018-02-26 08:59:41 -05:00
i2c
media: i2c: lm3560: add support for lm3559 chip
2018-06-28 07:10:01 -04:00
tpg
media: include/(uapi/)media: add SPDX license info
2018-02-14 13:23:51 -05:00
cec-notifier.h
media: cec-notifier: Get notifier by device and connector name
2018-07-13 08:44:16 +01:00
cec-pin.h
media: cec: add support for 5V signal testing
2018-07-25 07:11:48 -04:00
cec.h
media: cec/v4l2: move V4L2 specific CEC functions to V4L2
2018-09-24 09:11:04 -04:00
demux.h
media: dvb: update buffer mmaped flags and frame counter
2018-02-23 11:44:08 -05:00
dmxdev.h
media: dmxdev: Fix the logic that enables DMA mmap support
2018-02-23 05:27:10 -05:00
dvb-usb-ids.h
media: dvb: add alternative USB PID for Hauppauge WinTV-soloHD
2018-05-04 14:20:55 -04:00
dvb_ca_en50221.h
media: move dvb kAPI headers to include/media
2017-12-28 13:16:01 -05:00
dvb_demux.h
media: dvb: update buffer mmaped flags and frame counter
2018-02-23 11:44:08 -05:00
dvb_frontend.h
media: dvb: represent min/max/step/tolerance freqs in Hz
2018-08-02 18:10:48 -04:00
dvb_math.h
media: move dvb kAPI headers to include/media
2017-12-28 13:16:01 -05:00
dvb_net.h
media: move dvb kAPI headers to include/media
2017-12-28 13:16:01 -05:00
dvb_ringbuffer.h
media: move dvb kAPI headers to include/media
2017-12-28 13:16:01 -05:00
dvb_vb2.h
media: dvb: update buffer mmaped flags and frame counter
2018-02-23 11:44:08 -05:00
dvbdev.h
media: dvbdev: add a mutex protecting the "mdev" pointer
2018-05-11 12:09:59 -04:00
imx.h
media-device.h
media-devnode.h
media-entity.h
media: v4l2-mc: switch it to use the new approach to setup pipelines
2018-09-17 13:16:19 -04:00
rc-core.h
media: rc: Remove init_ir_raw_event and DEFINE_IR_RAW_EVENT macros
2018-10-04 14:22:27 -04:00
rc-map.h
media: rc: add new imon protocol decoder and encoder
2018-03-21 11:12:29 -04:00
rcar-fcp.h
media: rcar-fcp: convert to SPDX identifiers
2018-09-12 09:29:03 -04:00
soc_camera.h
tuner-types.h
tuner.h
tveeprom.h
v4l2-async.h
media: v4l2: async: Add v4l2_async_notifier_add_subdev
2018-10-04 15:17:33 -04:00
v4l2-clk.h
v4l2-common.h
media: v4l2-common: fix typo in documentation for v4l_bound_align_image()
2018-09-24 09:36:18 -04:00
v4l2-ctrls.h
media: v4l2-ctrls.h: fix v4l2_ctrl field description typos
2018-07-25 08:36:05 -04:00
v4l2-dev.h
media: v4l2-core: push taking ioctl mutex down to ioctl handler
2018-05-28 16:31:44 -04:00
v4l2-device.h
media: v4l2-device.h: always expose mdev
2018-05-11 11:26:56 -04:00
v4l2-dv-timings.h
media: cec/v4l2: move V4L2 specific CEC functions to V4L2
2018-09-24 09:11:04 -04:00
v4l2-event.h
media: fix usage of whitespaces and on indentation
2018-01-04 13:12:01 -05:00
v4l2-fh.h
media: v4l2_fh.h: add missing kconfig.h include
2018-02-26 08:05:10 -05:00
v4l2-flash-led-class.h
v4l2-fwnode.h
media: v4l: fwnode: Fix comment incorrectly mentioning v4l2_fwnode_parse_endpoint
2018-04-23 17:20:07 -04:00
v4l2-image-sizes.h
v4l2-ioctl.h
media: v4l2-ioctl: create helper to fill in v4l2_standard for ENUMSTD
2018-06-28 07:29:24 -04:00
v4l2-mc.h
media: v4l2-mc: get rid of global pad indexes
2018-09-17 13:16:19 -04:00
v4l2-mediabus.h
media: v4l2-fwnode: parse 'data-enable-active' prop
2018-07-24 14:57:38 -04:00
v4l2-mem2mem.h
media: v4l2-mem2mem: add v4l2_m2m_last_buf()
2018-07-25 08:10:31 -04:00
v4l2-rect.h
media: v4l2-rect.h: add position and equal helpers
2018-09-17 13:25:41 -04:00
v4l2-subdev.h
media: add tuner standby op, use where needed
2018-03-21 12:05:39 -04:00
videobuf-core.h
MAINTAINERS & files: Canonize the e-mails I use at files
2018-05-04 06:21:06 -04:00
videobuf-dma-contig.h
videobuf-dma-sg.h
MAINTAINERS & files: Canonize the e-mails I use at files
2018-05-04 06:21:06 -04:00
videobuf-vmalloc.h
MAINTAINERS & files: Canonize the e-mails I use at files
2018-05-04 06:21:06 -04:00
videobuf2-core.h
media: vb2-core: vb2_ops: document non-interrupt-context calling
2018-03-21 12:01:21 -04:00
videobuf2-dma-contig.h
videobuf2-dma-sg.h
videobuf2-dvb.h
media: move dvb kAPI headers to include/media
2017-12-28 13:16:01 -05:00
videobuf2-memops.h
videobuf2-v4l2.h
media updates for v4.16-rc1
2018-02-06 11:27:48 -08:00
videobuf2-vmalloc.h
vsp1.h
media: vsp1: Fix YCbCr planar formats pitch calculation
2018-09-17 14:51:43 -04:00