ALSA: Fix allocation size calculation in snd_dma_alloc_pages_fallback()
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 Jul 2008 13:13:33 +0000 (15:13 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 Aug 2008 07:57:19 +0000 (09:57 +0200)
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 <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/core/memalloc.c

Simple merge