- Backport upstream fixes (bsc#1012594): - A few PCM bugs have been fixed: * Stall of dmix and others in a wrong PCM state * Refactoring of PCM locking scheme * SHM initialization race fix * plug PCM memory leaks * Improvement of dshare/dmix delay calculation * Fix endless dshare draining * Fix semaphore discard race fix of direct plugins - UCM fixes and updates for DB410c and skylake-r5286 - Mixer code cleanup not to install bogus plugin codes - Documentation fixes / updates 0001-ucm-Add-ucm-files-for-DB410c-board.patch 0002-mixer-Fix-rounding-mode-documentation.patch 0003-pcm-Fix-shm-initialization-race-condition.patch 0004-pcm-Better-understandable-locking-code.patch 0005-ucm-fix-crash-when-calling-snd_use_case_geti-with-no.patch 0006-ucm-docs-typeset-lists-of-identifiers-explicitly.patch 0007-Update-include-sound-tlv.h-from-4.9-pre-kernel-uapi.patch 0008-test-use-actual-information-for-TLV-operation.patch 0009-ctl-improve-API-documentation-for-TLV-operation.patch 0010-ctl-improve-documentation-about-TLV-related-APIs.patch 0011-ctl-correct-documentation-about-TLV-feature.patch 0012-conf-ucm-skylake-add-skylake-rt286-conf-files.patch 0013-pcm_plug-Clear-plugins-on-all-error-conditions.patch 0014-mixer-Don-t-install-smixer-modules-unless-python-is-.patch 0015-pcm_dshare-Do-not-discard-slave-reported-delay-in-st.patch 0016-pcm-direct-Protect-from-freeing-semaphore-when-alrea.patch 0017-pcm-dshare-Fix-endless-playback-of-buffer.patch 0018-pcm-Add-the-PCM-state-checks-to-plugins.patch OBS-URL: https://build.opensuse.org/request/show/442719 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=202
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 876563c824bdecbf771a0e7bda472b0a1c19d900 Mon Sep 17 00:00:00 2001
|
|
From: Anant Agrawal <Anant_Agrawal@mentor.com>
|
|
Date: Fri, 25 Nov 2016 16:43:34 +0530
|
|
Subject: [PATCH] pcm: dshare: Fix endless playback of buffer
|
|
|
|
On snd_pcm_drain() the slave PCM driven via plugin DSHARE is not filled with
|
|
silence. Result is endless playback of buffer content until pcm is closed.
|
|
In ALSA pcm dshare plugin, called do_silence method to fix the issue.
|
|
|
|
Signed-off-by: Anant Agrawal <Anant_Agrawal@mentor.com>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
src/pcm/pcm_dshare.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/pcm/pcm_dshare.c b/src/pcm/pcm_dshare.c
|
|
index 01f5eed8f97a..29cd6c6da1d0 100644
|
|
--- a/src/pcm/pcm_dshare.c
|
|
+++ b/src/pcm/pcm_dshare.c
|
|
@@ -186,6 +186,7 @@ static int snd_pcm_dshare_sync_ptr0(snd_pcm_t *pcm, snd_pcm_uframes_t slave_hw_p
|
|
dshare->avail_max = avail;
|
|
if (avail >= pcm->stop_threshold) {
|
|
snd_timer_stop(dshare->timer);
|
|
+ do_silence(pcm);
|
|
gettimestamp(&dshare->trigger_tstamp, pcm->tstamp_type);
|
|
if (dshare->state == SND_PCM_STATE_RUNNING) {
|
|
dshare->state = SND_PCM_STATE_XRUN;
|
|
--
|
|
2.10.2
|
|
|