linux/drivers/media
Sylwester Nawrocki 813f5c0ac5 [media] media: Change media device link_notify behaviour
Currently the media device link_notify callback is invoked before the
actual change of state of a link when the link is being enabled, and
after the actual change of state when the link is being disabled.
This doesn't allow a media device driver to perform any operations
on a full graph before a link is disabled, as well as performing
any tasks on a modified graph right after a link's state is changed.
This patch modifies signature of the link_notify callback. This
callback is now called always before and after a link's state change.
To distinguish the notifications a 'notification' argument is added
to the link_notify callback: MEDIA_DEV_NOTIFY_PRE_LINK_CH indicates
notification before link's state change and
MEDIA_DEV_NOTIFY_POST_LINK_CH corresponds to a notification after
link flags change.

[mchehab@redhat.com: whitespace cleanups]
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-06-12 22:16:27 -03:00
..
common [media] Missing break statement added in smsdvb-main.c 2013-05-21 13:24:44 -03:00
dvb-core [media] Add support for Crypto Redi PC50A device (rtl2832u + FC0012 tuner) 2013-06-08 21:59:59 -03:00
dvb-frontends [media] drxk_hard: Remove most 80-cols checkpatch warnings 2013-06-08 22:11:39 -03:00
firewire [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
i2c [media] s5c73m3: Do not ignore errors from regulator_enable() 2013-06-12 21:52:17 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] media: pci: remove duplicate checks for EPERM 2013-05-27 09:34:56 -03:00
platform [media] media: Change media device link_notify behaviour 2013-06-12 22:16:27 -03:00
radio [media] wl128x: do not call copy_to_user() while holding spinlocks 2013-05-21 08:23:31 -03:00
rc [media] rc: gpio-ir-recv: Remove redundant platform_set_drvdata() 2013-05-27 09:30:59 -03:00
tuners [media] r820t: do not double-free fe->tuner_priv in r820t_release() 2013-06-08 19:59:36 -03:00
usb [media] rtl28xxu: correct latest device name 2013-06-08 22:00:12 -03:00
v4l2-core [media] v4l: vb2: fix error return code in __vb2_init_fileio() 2013-05-27 08:51:36 -03:00
Kconfig Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: info leak in __media_device_enum_links() 2013-06-12 18:52:45 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Change media device link_notify behaviour 2013-06-12 22:16:27 -03:00