ASoC: SOF: Move the definition of enum snd_sof_fw_state to global header
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 23 Dec 2021 11:36:17 +0000 (13:36 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 23 Dec 2021 13:38:17 +0000 (13:38 +0000)
Move the enum snd_sof_fw_state to include/sound/sof.h to be accessible
outside of the core SOF stack.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Link: https://lore.kernel.org/r/20211223113628.18582-10-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof.h
sound/soc/sof/sof-priv.h

index 23b374311d16165540b43fa4a6173b53af2bd8ff..b9131c01eefd54297a140f76a7c4a20120e1fd0c 100644 (file)
 
 struct snd_sof_dsp_ops;
 
+/**
+ * enum snd_sof_fw_state - DSP firmware state definitions
+ * @SOF_FW_BOOT_NOT_STARTED:   firmware boot is not yet started
+ * @SOF_FW_BOOT_PREPARE:       preparing for boot (firmware loading for exaqmple)
+ * @SOF_FW_BOOT_IN_PROGRESS:   firmware boot is in progress
+ * @SOF_FW_BOOT_FAILED:                firmware boot failed
+ * @SOF_FW_BOOT_READY_FAILED:  firmware booted but fw_ready op failed
+ * @SOF_FW_BOOT_READY_OK:      firmware booted and fw_ready op passed
+ * @SOF_FW_BOOT_COMPLETE:      firmware is booted up and functional
+ * @SOF_FW_CRASHED:            firmware crashed after successful boot
+ */
+enum snd_sof_fw_state {
+       SOF_FW_BOOT_NOT_STARTED = 0,
+       SOF_FW_BOOT_PREPARE,
+       SOF_FW_BOOT_IN_PROGRESS,
+       SOF_FW_BOOT_FAILED,
+       SOF_FW_BOOT_READY_FAILED,
+       SOF_FW_BOOT_READY_OK,
+       SOF_FW_BOOT_COMPLETE,
+       SOF_FW_CRASHED,
+};
+
 /*
  * SOF Platform data.
  */
index c92103a028ff985ede72806fec965f23972dc3b4..a1ebc89b216a772853fad2aea120afc155c2f160 100644 (file)
@@ -375,17 +375,6 @@ struct snd_sof_ipc_msg {
        bool ipc_complete;
 };
 
-enum snd_sof_fw_state {
-       SOF_FW_BOOT_NOT_STARTED = 0,
-       SOF_FW_BOOT_PREPARE,
-       SOF_FW_BOOT_IN_PROGRESS,
-       SOF_FW_BOOT_FAILED,
-       SOF_FW_BOOT_READY_FAILED, /* firmware booted but fw_ready op failed */
-       SOF_FW_BOOT_READY_OK,
-       SOF_FW_BOOT_COMPLETE,
-       SOF_FW_CRASHED,
-};
-
 /*
  * SOF Device Level.
  */