Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
alsa.5967
0017-pcm-dshare-Fix-endless-playback-of-buffer....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0017-pcm-dshare-Fix-endless-playback-of-buffer.patch of Package alsa.5967
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor