[alsa-devel] [PATCH 1/3] ALSA: compress_core: Update calc_avail to use cumulative values
Charles Keepax
ckeepax at opensource.wolfsonmicro.com
Wed Apr 10 12:01:04 CEST 2013
On Tue, Apr 09, 2013 at 08:59:48PM -0700, Pierre-Louis Bossart wrote:
> the question was whether we need these offsets at all. Can't we just use
> cumulative values everywhere?
> -Pierre
>
Removing them does introduce a modulus operation which is not
very nice given we are dealing with all 64-bit values. Although
limiting the buffer size to 32-bit would make that slightly
neater.
Aside from that the change is trivial to make and does match how
the PCM interface is handled.
Charles
More information about the Alsa-devel
mailing list