From: Takashi Iwai Date: Wed, 30 Jul 2008 13:13:33 +0000 (+0200) Subject: ALSA: Fix allocation size calculation in snd_dma_alloc_pages_fallback() X-Git-Tag: v2.6.28-rc1~720^2~167 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e184f8fc06411f35fdcf4b9bc6187c857bf7214;p=pandora-kernel.git ALSA: Fix allocation size calculation in snd_dma_alloc_pages_fallback() snd_dma_alloc_pages_fallback() always tries to reduce the size in a half, but it's not good when the given size isn't a power-of-two. Check it first then try to align. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- Reading git-diff-tree failed