linux/drivers/media/usb/uvc
Olivier Langlois 3b35fc81e7 [media] uvcvideo: Fix clock param realtime setting
timestamps in v4l2 buffers returned to userspace are updated in
uvc_video_clock_update() which uses timestamps fetched from
uvc_video_clock_decode() by calling unconditionally ktime_get_ts().

Hence setting the module clock param to realtime has no effect before
this patch.

This has been tested with ffmpeg:

ffmpeg -y -f v4l2 -input_format yuyv422 -video_size 640x480 -framerate 30 -i /dev/video0 \
 -f alsa -acodec pcm_s16le -ar 16000 -ac 1 -i default \
 -c:v libx264 -preset ultrafast \
 -c:a libfdk_aac \
 out.mkv

and inspecting the v4l2 input starting timestamp.

Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-05-23 11:27:37 -03:00
..
Kconfig [media] uvc: Depend on VIDEO_V4L2 2013-06-24 22:54:40 -03:00
Makefile
uvc_ctrl.c [media] uvcvideo: Fix data type for pan/tilt control 2013-10-17 06:55:29 -03:00
uvc_debugfs.c
uvc_driver.c [media] uvcvideo: Add bayer 8-bit patterns to uvcvideo 2014-03-05 16:58:21 -03:00
uvc_entity.c [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00
uvc_isight.c
uvc_queue.c [media] vb2: call buf_finish from __queue_cancel 2014-03-11 06:56:39 -03:00
uvc_status.c [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
uvc_v4l2.c [media] uvcvideo: Enable VIDIOC_CREATE_BUFS 2014-02-28 13:24:32 -03:00
uvc_video.c [media] uvcvideo: Fix clock param realtime setting 2014-05-23 11:27:37 -03:00
uvcvideo.h [media] uvcvideo: Add bayer 8-bit patterns to uvcvideo 2014-03-05 16:58:21 -03:00