[linux] 01/01: media: uvcvideo: Disable hardware timestamps by default (Closes: #794327)

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sat Sep 26 15:02:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch jessie
in repository linux.

commit b49ca88bf33a9875f212b471ce33ce240f729b3e
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sat Sep 26 16:02:33 2015 +0100

    media: uvcvideo: Disable hardware timestamps by default (Closes: #794327)
---
 debian/changelog                                   |  1 +
 ...deo-disable-hardware-timestamps-by-defaul.patch | 60 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 62 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5f1bb0e..f2ccc22 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -364,6 +364,7 @@ linux (3.16.7-ckt17-1) UNRELEASED; urgency=medium
     - Update .gitignore files
     - debian/control: Update Vcs-* fields
     - README.Debian, README.source: Update references to svn
+  * media: uvcvideo: Disable hardware timestamps by default (Closes: #794327)
 
   [ Ian Campbell ]
   * [xen] xen-netback: return correct ethtool stats (Closes: #786936)
diff --git a/debian/patches/bugfix/all/media-uvcvideo-disable-hardware-timestamps-by-defaul.patch b/debian/patches/bugfix/all/media-uvcvideo-disable-hardware-timestamps-by-defaul.patch
new file mode 100644
index 0000000..7280d9c
--- /dev/null
+++ b/debian/patches/bugfix/all/media-uvcvideo-disable-hardware-timestamps-by-defaul.patch
@@ -0,0 +1,60 @@
+From: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
+Date: Mon, 27 Jul 2015 11:06:48 -0300
+Subject: [media] uvcvideo: Disable hardware timestamps by default
+Origin: http://git.linuxtv.org/cgit.cgi/media_tree.git/commit?id=5d0fd3c806b9e932010931ae67dbb482020e0882
+Bug-Debian: https://bugs.debian.org/794327
+
+The hardware timestamping implementation has been reported as not
+working correctly on at least the Logitech C920. Until this can be
+fixed, disable it by default.
+
+Reported-by: Peter Rabbitson <rabbit at rabbit.us>
+Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
+Signed-off-by: Mauro Carvalho Chehab <mchehab at osg.samsung.com>
+---
+ drivers/media/usb/uvc/uvc_driver.c | 3 +++
+ drivers/media/usb/uvc/uvc_video.c  | 3 +++
+ drivers/media/usb/uvc/uvcvideo.h   | 1 +
+ 3 files changed, 7 insertions(+)
+
+--- a/drivers/media/usb/uvc/uvc_driver.c
++++ b/drivers/media/usb/uvc/uvc_driver.c
+@@ -32,6 +32,7 @@
+ #define DRIVER_DESC		"USB Video Class driver"
+ 
+ unsigned int uvc_clock_param = CLOCK_MONOTONIC;
++unsigned int uvc_hw_timestamps_param;
+ unsigned int uvc_no_drop_param;
+ static unsigned int uvc_quirks_param = -1;
+ unsigned int uvc_trace_param;
+@@ -2064,6 +2065,8 @@ static int uvc_clock_param_set(const cha
+ module_param_call(clock, uvc_clock_param_set, uvc_clock_param_get,
+ 		  &uvc_clock_param, S_IRUGO|S_IWUSR);
+ MODULE_PARM_DESC(clock, "Video buffers timestamp clock");
++module_param_named(hwtimestamps, uvc_hw_timestamps_param, uint, S_IRUGO|S_IWUSR);
++MODULE_PARM_DESC(hwtimestamps, "Use hardware timestamps");
+ module_param_named(nodrop, uvc_no_drop_param, uint, S_IRUGO|S_IWUSR);
+ MODULE_PARM_DESC(nodrop, "Don't drop incomplete frames");
+ module_param_named(quirks, uvc_quirks_param, uint, S_IRUGO|S_IWUSR);
+--- a/drivers/media/usb/uvc/uvc_video.c
++++ b/drivers/media/usb/uvc/uvc_video.c
+@@ -615,6 +615,9 @@ void uvc_video_clock_update(struct uvc_s
+ 	u32 rem;
+ 	u64 y;
+ 
++	if (!uvc_hw_timestamps_param)
++		return;
++
+ 	spin_lock_irqsave(&clock->lock, flags);
+ 
+ 	if (clock->count < clock->size)
+--- a/drivers/media/usb/uvc/uvcvideo.h
++++ b/drivers/media/usb/uvc/uvcvideo.h
+@@ -593,6 +593,7 @@ extern unsigned int uvc_clock_param;
+ extern unsigned int uvc_no_drop_param;
+ extern unsigned int uvc_trace_param;
+ extern unsigned int uvc_timeout_param;
++extern unsigned int uvc_hw_timestamps_param;
+ 
+ #define uvc_trace(flag, msg...) \
+ 	do { \
diff --git a/debian/patches/series b/debian/patches/series
index 4de3e82..f18329a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -637,3 +637,4 @@ bugfix/all/namei-lift-open-coded-terminate_walk-in-follow_dotdo.patch
 bugfix/all/dcache-handle-escaped-paths-in-prepend_path.patch
 bugfix/all/vfs-test-for-and-handle-paths-that-are-unreachable-f.patch
 bugfix/x86/i2c-i801-Use-wait_event_timeout-to-wait-for-interrup.patch
+bugfix/all/media-uvcvideo-disable-hardware-timestamps-by-defaul.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list