intel/decoder: add gen_spec_init method
authorSagar Ghuge <sagar.ghuge@intel.com>
Thu, 6 Sep 2018 04:05:21 +0000 (21:05 -0700)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 4 Oct 2018 09:01:56 +0000 (10:01 +0100)
commitba3304e7641e5e91b44b14131b4714d0a18c6d58
tree203884b4ff797ef0d7e9a2f3d190ecfcf205d6c3
parent2b34985d93e7914ead00227aa2842846df3c487f
intel/decoder: add gen_spec_init method

Initialize gen_spec instance properly when loading hardware xml
description from specifc directory to avoid segmentation fault.

v2: correct function definition (Lionel Landwerlin)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c