linux_dsm_epyc7002/drivers/media/platform/vivid
Arnd Bergmann aad2fa4c8b media: vivid: use ktime_t for timestamp calculation
timespec is generally deprecated because of the y2038 overflow.
In vivid, the usage is fine, since we are dealing with monotonic
timestamps, but we can also simplify the code by going to ktime_t.

Using ktime_divns() should be roughly as efficient as the old code,
since the constant 64-bit division gets turned into a multiplication
on modern platforms, and we save multiple 32-bit divisions that can be
expensive e.g. on ARMv7.

Tested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-08 11:26:24 -05:00
..
Kconfig [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vivid-cec.c media: vivid: add CEC pin monitoring emulation 2017-08-26 08:35:49 -04:00
vivid-cec.h [media] cec: pass parent device in register(), not allocate() 2016-11-29 12:07:17 -02:00
vivid-core.c media: vivid: use ktime_t for timestamp calculation 2017-12-08 11:26:24 -05:00
vivid-core.h media: vivid: use ktime_t for timestamp calculation 2017-12-08 11:26:24 -05:00
vivid-ctrls.c [media] vivid: Add support for HSV encoding 2016-10-21 15:54:16 -02:00
vivid-ctrls.h
vivid-kthread-cap.c [media] vivid: add CEC emulation 2016-06-28 11:31:16 -03:00
vivid-kthread-cap.h [media] vivid: add the kthread code that controls the video rate 2014-09-02 17:41:54 -03:00
vivid-kthread-out.c [media] media: videobuf2: Move timestamp to vb2_buffer 2015-12-18 13:53:31 -02:00
vivid-kthread-out.h [media] vivid: add the kthread code that controls the video rate 2014-09-02 17:41:54 -03:00
vivid-osd.c [media] media: platform: vivid: vivid-osd: Remove unnecessary cast to kfree 2016-02-10 09:29:02 -02:00
vivid-osd.h [media] vivid: add a simple framebuffer device for overlay testing 2014-09-02 17:42:53 -03:00
vivid-radio-common.c [media] vivid: add support for radio receivers and transmitters 2014-09-02 17:47:03 -03:00
vivid-radio-common.h [media] vivid: add support for radio receivers and transmitters 2014-09-02 17:47:03 -03:00
vivid-radio-rx.c media: vivid: use ktime_t for timestamp calculation 2017-12-08 11:26:24 -05:00
vivid-radio-rx.h [media] vivid: add support for radio receivers and transmitters 2014-09-02 17:47:03 -03:00
vivid-radio-tx.c media: vivid: use ktime_t for timestamp calculation 2017-12-08 11:26:24 -05:00
vivid-radio-tx.h [media] vivid: add support for radio receivers and transmitters 2014-09-02 17:47:03 -03:00
vivid-rds-gen.c media: vivid: print time in y2038-safe way 2017-12-08 11:13:16 -05:00
vivid-rds-gen.h media: vivid: use ktime_t for timestamp calculation 2017-12-08 11:26:24 -05:00
vivid-sdr-cap.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
vivid-sdr-cap.h [media] vivid: SDR cap add 'CU08' Complex U8 format 2015-05-30 11:40:38 -03:00
vivid-vbi-cap.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
vivid-vbi-cap.h [media] vivid: add VBI capture and output code 2014-09-02 17:19:27 -03:00
vivid-vbi-gen.c media: vivid: print time in y2038-safe way 2017-12-08 11:13:16 -05:00
vivid-vbi-gen.h [media] vivid: add teletext support to VBI capture 2014-09-21 20:40:05 -03:00
vivid-vbi-out.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
vivid-vbi-out.h [media] vivid: add VBI capture and output code 2014-09-02 17:19:27 -03:00
vivid-vid-cap.c [media] vivid: fix try_fmt behavior 2017-03-22 10:16:17 -03:00
vivid-vid-cap.h [media] vivid: add the video capture and output parts 2014-09-02 17:15:26 -03:00
vivid-vid-common.c [media] vivid: add support for Y10 and Y12 2017-10-04 16:59:07 -03:00
vivid-vid-common.h [media] vivid: use new v4l2-rect.h header 2016-04-20 16:13:31 -03:00
vivid-vid-out.c [media] vivid: fix try_fmt behavior 2017-03-22 10:16:17 -03:00
vivid-vid-out.h [media] vivid: remove duplicate and unused g/s_edid functions 2014-09-08 10:00:57 -03:00