The Advanced Linux Sound Architecture (ALSA) - library
Find a file
Alexander E. Patrakov 9a43dc15b2 pcm: express the rewind size limitation logic better
There are a few places where the argument of the .rewind or .forward
callback is checked against the same value as returned by .rewindable or
.forwardable. Express this "don't rewind more than rewindable" logic
explicitly, so that the future fixes to the rewindable size can go to
one function instead of two.

While at it, take advantage of the fact that snd_pcm_mmap_avail() cannot
return negative values (except due to integer overflow, which is AFAICS
impossible given the current boundary choice).

Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-09-13 21:04:13 +02:00
alsalisp autotools: update style 2014-02-26 08:16:22 +01:00
aserver autotools: update style 2014-02-26 08:16:22 +01:00
doc autotools: update style 2014-02-26 08:16:22 +01:00
include pcm: add new 32-bit DSD sample format 2014-09-10 09:10:50 +02:00
m4 Add the attributes.m4 macro file from xine/lscube. 2008-11-21 13:04:19 +01:00
modules autotools: update style 2014-02-26 08:16:22 +01:00
src pcm: express the rewind size limitation logic better 2014-09-13 21:04:13 +02:00
test test/audio_time: Set timestamp type explicitly 2014-07-14 18:12:49 +02:00
utils autotools: update style 2014-02-26 08:16:22 +01:00
.gitignore Update .gitignore 2012-09-22 09:39:12 +02:00
acinclude.m4 fixed for the recent autoconf. 2004-01-26 15:52:17 +00:00
ChangeLog * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
configure.ac Release v1.0.28 2014-06-17 14:34:19 +02:00
COPYING Updated GNU GPL license (address). 2001-12-30 09:22:54 +00:00
gitcompile Introduce --with-pkgconfdir, add 64-bit defaults to gitcompile 2012-01-20 16:14:44 +01:00
INSTALL doc: fix cross-compiling example 2014-08-25 14:12:38 +02:00
Makefile.am autotools: update style 2014-02-26 08:16:22 +01:00
MEMORY-LEAK Initial version 2003-02-04 14:56:07 +00:00
NOTES Change assert condition in error message handler 2007-10-24 12:53:08 +02:00
TODO Added snd_config_load_override(). 2002-01-09 21:28:15 +00:00