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)
commit25f97549b5a19a373922e07c3e0f0b0b56a49148
treeb5154fd08d25e99429438c5250db49bee016335e
parentc6905d62269cdf66e179c579c1bd4b1b8baa02fe
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