diff options
author | Jeeja KP <jeeja.kp@intel.com> | 2016-03-28 19:41:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-28 12:38:00 +0300 |
commit | d643678b9a4e432a574b2ec601216afd720c69b6 (patch) | |
tree | 9a5d2d7ae2710da4c6c7656c6ead275fb73467b3 /sound/soc/intel/skylake/skl-topology.h | |
parent | c3efb42b207e22991dee86ca15861ede11a419fc (diff) | |
download | linux-d643678b9a4e432a574b2ec601216afd720c69b6.tar.xz |
ASoC: Intel: Skylake: Fix for unloading module only when it is loaded
Module needs to be unloaded only when it is loaded successfully.
To fix this, first correct the module state sequence and set module
state to LOADED if module is loaded successfully.
When unloading the module check if module state is not in UNINIT,
then unload it.
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl-topology.h')
-rw-r--r-- | sound/soc/intel/skylake/skl-topology.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.h b/sound/soc/intel/skylake/skl-topology.h index de3c401284d9..d2d923002d5c 100644 --- a/sound/soc/intel/skylake/skl-topology.h +++ b/sound/soc/intel/skylake/skl-topology.h @@ -274,10 +274,10 @@ struct skl_pipe { enum skl_module_state { SKL_MODULE_UNINIT = 0, - SKL_MODULE_INIT_DONE = 1, - SKL_MODULE_LOADED = 2, - SKL_MODULE_UNLOADED = 3, - SKL_MODULE_BIND_DONE = 4 + SKL_MODULE_LOADED = 1, + SKL_MODULE_INIT_DONE = 2, + SKL_MODULE_BIND_DONE = 3, + SKL_MODULE_UNLOADED = 4, }; struct skl_module_cfg { |