]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: dshare: enable silence
authorAlexander Jahn <ajahn@de.adit-jv.com>
Fri, 30 Dec 2016 06:29:11 +0000 (11:59 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2017 13:50:34 +0000 (14:50 +0100)
commit8eeee1ab7d7db3110b7b3bb31cfb989304dced94
tree9bff28e11e52b0f1335e7e194a334177bfc217d9
parent0a61c796810fcec8b386e5311e871b1744b45a67
pcm: dshare: enable silence

This issue depends on system load - if the process using dshare is
scheduled fast enough, then there is no noise. A delay of e.g >~2ms
produces hearable noise.

Reproduction with instrumented aplay(sleep every 100th period for a
given time):
During the sleep time of 2000000us (2s) the hardware plays old samples
in a loop before xrun is detected and recovered after the sleep.
This is resolved by placing it in silence, in case of dshare plugin.

Signed-off-by: Alexander Jahn <ajahn@de.adit-jv.com>
Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_direct.c