]> 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)
commit440f97ba43d0fe66b1acdaa345f7a079413b012f
treeb5154fd08d25e99429438c5250db49bee016335e
parent3351f1fcf3b2a5df0a668367b93f57a73ac99153
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