Skip to content

Commit 5952651

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

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

include/sound/sof.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ enum sof_fw_state {
3939
SOF_FW_CRASHED,
4040
};
4141

42+
/* DSP power states */
43+
enum sof_dsp_power_states {
44+
SOF_DSP_PM_D0,
45+
SOF_DSP_PM_D1,
46+
SOF_DSP_PM_D2,
47+
SOF_DSP_PM_D3,
48+
};
49+
4250
/*
4351
* SOF Platform data.
4452
*/

sound/soc/sof/sof-priv.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ bool sof_debug_check_flag(int mask);
7777
/* max number of DSP cores */
7878
#define SOF_MAX_DSP_NUM_CORES 8
7979

80-
/* DSP power state */
81-
enum sof_dsp_power_states {
82-
SOF_DSP_PM_D0,
83-
SOF_DSP_PM_D1,
84-
SOF_DSP_PM_D2,
85-
SOF_DSP_PM_D3,
86-
};
87-
8880
struct sof_dsp_power_state {
8981
u32 state;
9082
u32 substate; /* platform-specific */

0 commit comments

Comments
 (0)