summaryrefslogtreecommitdiff
path: root/debian/patches/0086-alsa-old-Make-sure-we-don-t-get-negative-latencies.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0086-alsa-old-Make-sure-we-don-t-get-negative-latencies.patch')
-rw-r--r--debian/patches/0086-alsa-old-Make-sure-we-don-t-get-negative-latencies.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/debian/patches/0086-alsa-old-Make-sure-we-don-t-get-negative-latencies.patch b/debian/patches/0086-alsa-old-Make-sure-we-don-t-get-negative-latencies.patch
deleted file mode 100644
index f44100497..000000000
--- a/debian/patches/0086-alsa-old-Make-sure-we-don-t-get-negative-latencies.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From fc5b73c1ab2d6d13990296d67506b172d129fc6b Mon Sep 17 00:00:00 2001
-From: Jyri Sarha <jyri.sarha@nokia.com>
-Date: Fri, 31 Jul 2009 15:45:17 +0300
-Subject: [PATCH] alsa-old: Make sure we don't get negative latencies
-
----
- src/modules/alsa/module-alsa-sink-old.c | 4 ++++
- 1 files changed, 4 insertions(+), 0 deletions(-)
-
-diff --git a/src/modules/alsa/module-alsa-sink-old.c b/src/modules/alsa/module-alsa-sink-old.c
-index 4475097..b3c7bbe 100644
---- a/src/modules/alsa/module-alsa-sink-old.c
-+++ b/src/modules/alsa/module-alsa-sink-old.c
-@@ -394,6 +394,10 @@ static int sink_get_latency_by_timestamps(struct userdata *u, pa_usec_t *d) {
- avail * u->frame_size, &u->sink->sample_spec);
- elapsed = pa_rtclock_now() - pa_timespec_load(&ts_dma);
-
-+ /* Make sure the latency values does not roll over */
-+ if (elapsed > buffered)
-+ return -1;
-+
- *d = buffered - elapsed;
-
- #if 0
---
-1.5.6.3
-