Skip to content

Commit e52de07

Browse files
committed
ASoC: SOF: Move the definition of enum snd_sof_fw_state to global header
Move the enum snd_sof_fw_state to include/sound/sof.h for it to be accessible outside of the core SOF stack. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent b79934a commit e52de07

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

include/sound/sof.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
1717

1818
struct snd_sof_dsp_ops;
1919

20+
/**
21+
* enum snd_sof_fw_state - DSP firmware state definitions
22+
* @SOF_FW_BOOT_NOT_STARTED: firmware boot is not yet started
23+
* @SOF_FW_BOOT_PREPARE: preparing for boot (firmware loading for exaqmple)
24+
* @SOF_FW_BOOT_IN_PROGRESS: firmware boot is in progress
25+
* @SOF_FW_BOOT_FAILED: firmware boot failed
26+
* @SOF_FW_BOOT_READY_FAILED: firmware booted but fw_ready op failed
27+
* @SOF_FW_BOOT_COMPLETE: firmware is booted up and functional
28+
*/
29+
enum snd_sof_fw_state {
30+
SOF_FW_BOOT_NOT_STARTED = 0,
31+
SOF_FW_BOOT_PREPARE,
32+
SOF_FW_BOOT_IN_PROGRESS,
33+
SOF_FW_BOOT_FAILED,
34+
SOF_FW_BOOT_READY_FAILED,
35+
SOF_FW_BOOT_COMPLETE,
36+
};
37+
2038
/*
2139
* SOF Platform data.
2240
*/

sound/soc/sof/sof-priv.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -371,15 +371,6 @@ struct snd_sof_ipc_msg {
371371
bool ipc_complete;
372372
};
373373

374-
enum snd_sof_fw_state {
375-
SOF_FW_BOOT_NOT_STARTED = 0,
376-
SOF_FW_BOOT_PREPARE,
377-
SOF_FW_BOOT_IN_PROGRESS,
378-
SOF_FW_BOOT_FAILED,
379-
SOF_FW_BOOT_READY_FAILED, /* firmware booted but fw_ready op failed */
380-
SOF_FW_BOOT_COMPLETE,
381-
};
382-
383374
/*
384375
* SOF Device Level.
385376
*/

0 commit comments

Comments
 (0)