]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] pcm core: fix silence_start calculations
authorClemens Ladisch <clemens@ladisch.de>
Mon, 23 Oct 2006 14:26:57 +0000 (16:26 +0200)
committerJaroslav Kysela <perex@server.perex.cz>
Wed, 20 Dec 2006 07:55:43 +0000 (08:55 +0100)
commitfb85dbd0718c4a17a6d0793bba17a89f674cfeea
tree95740bc34b8face55eb7c989e550986e4136259d
parent7b6b8862baa15acdf294ce876cca7c1283c06ab5
[ALSA] pcm core: fix silence_start calculations

The case where silence_size < boundary was broken because different
parts of the snd_pcm_playback_silence() function disagreed about whether
silence_start should point to the start or to the end of the buffer part
to be silenced.
This patch changes the code to always use to the start, which also
simplifies several calculations.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/pcm_lib.c