ASoC: Intel: Don't change offset of block allocator during fixed allocate
authorJie Yang <yang.jie@intel.com>
Sun, 4 Jan 2015 01:15:04 +0000 (09:15 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jan 2015 20:00:20 +0000 (20:00 +0000)
commitd83901e82010cb3b25e69a9bbe991e9fbd940725
treeb0b8e91a4a08d75f2b03d95a488a950a453ef7eb
parent25f97549b5a19a373922e07c3e0f0b0b56a49148
ASoC: Intel: Don't change offset of block allocator during fixed allocate

The offset of block allocator, ba->offset, should not be changed during
fixed address allocating, for the caller may treat it as the offset of
allocated memory and use it. In the case that we allocate more than 1
blocks, we should make sure this offset is correct.

Here introduces a temp allocator for the later continuous allocating.

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