- Update alsa-info.sh to match dmesg with snd_ - Run spec-cleaner - Add missing Loopback.conf manually - Upstream fixes: minor clean ups, 2.1 PCM channel config support, portability improvements, PCM float format conversion fix, fix for ioplug 32bit hwptr wrap, etc. 0020-minor-malloc-changes.patch 0021-alsa-lib-minor-typo-in-pcm-doc.patch 0022-control_hw-fix-potential-memory-leak.patch 0023-pcm-initialize-pcm_dmix-monotonic-field.patch 0024-pcm-initialize-monotonic-field-for-dshare-and-dsnoop.patch 0025-pcm-use-CLOCK_REALTIME-for-non-monotonic-ts.patch 0026-alsa-lib-heavy-pcm-atomics-cleanup.patch 0027-conf-Add-basic-infrastructure-for-2.1-surround-sound.patch 0028-conf-Add-surround-2.1-support-to-all-cards.patch 0029-Portability-fix-look-for-sys-endian.h-as-well-as-end.patch 0030-autotools-update-style.patch 0031-pcm-Insert-linear-to-float-conversion-when-rate-or-c.patch 0032-pcm-route-Allow-chmap-syntax-for-slave-channels-in-t.patch 0033-pcm-route-Select-slave-chmap-based-on-ttable-informa.patch 0034-conf-Allow-2.1-surround-to-use-different-number-of-c.patch 0035-pcm-Wrap-hw_ptr-to-boundary-in-pcm_ioplug.patch 0036-src-conf-cards-Add-missing-entry-for-Loopback.conf.patch OBS-URL: https://build.opensuse.org/request/show/225572 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=152
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 688004a6acf7d1d568a660546816a092b6cc32ed Mon Sep 17 00:00:00 2001
|
|
From: "MONTANARO Luciano (MM)" <luciano.montanaro@magnetimarelli.com>
|
|
Date: Tue, 4 Mar 2014 12:51:36 +0100
|
|
Subject: [PATCH] pcm: Wrap hw_ptr to boundary in pcm_ioplug
|
|
|
|
The function snd_pcm_ioplug_hw_ptr_update() always increased the hw_ptr
|
|
by delta, without wrapping it to the boundary. This would lead to
|
|
problems when after many hours, the hw_ptr would overflow.
|
|
|
|
Signed-off-by: Luciano Montanaro <luciano.montanaro@magnetimarelli.com>
|
|
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
|
---
|
|
src/pcm/pcm_ioplug.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/pcm/pcm_ioplug.c b/src/pcm/pcm_ioplug.c
|
|
index a90c844598bd..c1c3a9835d47 100644
|
|
--- a/src/pcm/pcm_ioplug.c
|
|
+++ b/src/pcm/pcm_ioplug.c
|
|
@@ -60,7 +60,7 @@ static void snd_pcm_ioplug_hw_ptr_update(snd_pcm_t *pcm)
|
|
delta = hw - io->last_hw;
|
|
else
|
|
delta = pcm->buffer_size + hw - io->last_hw;
|
|
- io->data->hw_ptr += delta;
|
|
+ snd_pcm_mmap_hw_forward(io->data->pcm, delta);
|
|
io->last_hw = hw;
|
|
} else
|
|
io->data->state = SNDRV_PCM_STATE_XRUN;
|
|
--
|
|
1.9.0
|
|
|