From: Jaroslav Kysela Date: Wed, 27 Jan 2010 17:10:13 +0000 (+0100) Subject: ALSA: pcm_native - fix runtime->boundary calculation X-Git-Tag: v2.6.34-rc1~243^2~2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7910b4a1db63fefc3d291853d33c34c5b6352e8e;p=pandora-kernel.git ALSA: pcm_native - fix runtime->boundary calculation The code in pcm_lib updating runtime->hw_ptr_interrupt expects that runtime->boundary is divisible with runtime->period_size. Thanks are going to Clemens Ladisch for the notice. Fix the runtime->boundary calculation using buffer_size * period_size as base and find a least common multiple for 32bit platforms when the expression might overflow. Signed-off-by: Jaroslav Kysela --- Reading git-diff-tree failed