atomisp: fix gdc table handling
authorJozef Kruger <jozef.kruger@intel.com>
Thu, 29 Mar 2012 21:51:57 +0000 (14:51 -0700)
committerbuildbot <buildbot@intel.com>
Mon, 2 Apr 2012 00:38:56 +0000 (17:38 -0700)
commit2fdfd9e2c7f270e880104f7cad9df267f0ef9bb5
tree2c47c344665451550a4fc37a8e90212491109c7e
parent1aa3aad2b4bce395b14a54e83558e11293926a2f
atomisp: fix gdc table handling

BZ: 29626, 29628

This patch fixes the incorrect freeing of the morphing table when GDC_CAC
is enabled. When it gets enabled, we need to set the current morphing table
into the CSS again, not free it. Freeing the table that the CSS was still
using caused memory corruption which luckily only resulted in the table
being rejected but could have also lead to a corrupted table being used.

Change-Id: I67177757f32c6b4f35dd176999c59bd719586d9d
Signed-off-by: Jozef Kruger <jozef.kruger@intel.com>
Reviewed-on: http://android.intel.com:8080/41714
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/atomisp/atomisp_cmd.c