linux/drivers/staging/media
Hans Verkuil 980e0b36b5 [media] cec: split the timestamp into an rx and tx timestamp
When transmitting a message and waiting for a reply it would be good
to know the time between when the message was transmitted and when
the reply arrived. With only one timestamp field it was set to when
the reply arrived and the original transmit time was overwritten.

Just taking the timestamp in userspace right before CEC_TRANSMIT is
called is not reliable, since the actual transmit can be delayed if
the CEC bus is busy. Only the driver can fill this in accurately.

So split up the ts field into an rx_ts and a tx_ts. Also move the
status fields to after the 'reply' field: they were placed in a
strange position and make much more sense when grouped with the
other status-related fields.

This patch also makes sure that the timestamp is taken as soon as
possible.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-13 07:59:30 -03:00
..
bcm2048 [media] Staging: media: bcm2048: defined region_configs[] array as const array 2016-04-20 16:05:35 -03:00
cec [media] cec: split the timestamp into an rx and tx timestamp 2016-07-13 07:59:30 -03:00
cxd2099 staging: Remove <linux/moduleparam.h> header. 2015-03-01 17:09:52 -08:00
davinci_vpfe [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
lirc [media] Staging: media/lirc: lirc_zilog.c : fixed a string split in multi-line issue 2016-03-03 14:33:15 -03:00
omap4iss [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
pulse8-cec [media] pulse8-cec: declare function as static 2016-07-12 13:46:20 -03:00
s5p-cec [media] s5p_cec: mark suspend/resume as __maybe_unused 2016-07-08 18:32:23 -03:00
tw686x-kh [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
Kconfig [media] pulse8-cec: new driver for the Pulse-Eight USB-CEC Adapter 2016-07-12 13:43:14 -03:00
Makefile [media] pulse8-cec: new driver for the Pulse-Eight USB-CEC Adapter 2016-07-12 13:43:14 -03:00