]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: correct the fixed free block allocation
authorJie Yang <yang.jie@intel.com>
Tue, 23 Dec 2014 01:12:45 +0000 (09:12 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Dec 2014 12:14:06 +0000 (12:14 +0000)
commita2993b88bc0ec5937b2479062bf95beed758fc2f
treeb5154fd08d25e99429438c5250db49bee016335e
parent83e2b8a4345ffb9017b56057ee6db6734c620861
ASoC: Intel: correct the fixed free block allocation

For block span more than 1 section, when allocate it from
a free block, we need allocate the remain buffers within
the block, and then continue alloc the rest of needed
size buffer.

Here also make sure this free block is moved from free
list to used list, and add it to block_list which may
be used for power gating disabling later.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst-firmware.c