From: Charles Keepax Date: Thu, 18 Apr 2013 09:59:23 +0000 (+0100) Subject: ALSA: compress_core: Update calc_avail to use cumulative values X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~52^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c28e32d6c4da1d2bc92d3062690e770c18493e6;p=pandora-kernel.git ALSA: compress_core: Update calc_avail to use cumulative values The app_pointer is managed locally by the compress core for memory mapped DSPs but for DSPs that are not memory mapped this would have to be manually updated from within the DSP driver itself, which is hardly very idiomatic. This patch switches to using the cumulative values to calculate the available buffer space because these are already gracefully passed out of the DSP driver to the compress core and otherwise should be functionally equivalent. Signed-off-by: Charles Keepax Signed-off-by: Richard Fitzgerald Acked-by: Vinod Koul Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed