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>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220210150525.30756-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Peter Ujfalusi 2022-02-10 17:05:18 +02:00 коммит произвёл Mark Brown
Родитель 2439a35508
Коммит 5fdc124245
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 24D68B725D5487D0
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -39,6 +39,14 @@ enum sof_fw_state {
SOF_FW_CRASHED, SOF_FW_CRASHED,
}; };
/* DSP power states */
enum sof_dsp_power_states {
SOF_DSP_PM_D0,
SOF_DSP_PM_D1,
SOF_DSP_PM_D2,
SOF_DSP_PM_D3,
};
/* /*
* SOF Platform data. * SOF Platform data.
*/ */

Просмотреть файл

@ -79,14 +79,6 @@ bool sof_debug_check_flag(int mask);
/* max number of DSP cores */ /* max number of DSP cores */
#define SOF_MAX_DSP_NUM_CORES 8 #define SOF_MAX_DSP_NUM_CORES 8
/* DSP power state */
enum sof_dsp_power_states {
SOF_DSP_PM_D0,
SOF_DSP_PM_D1,
SOF_DSP_PM_D2,
SOF_DSP_PM_D3,
};
struct sof_dsp_power_state { struct sof_dsp_power_state {
u32 state; u32 state;
u32 substate; /* platform-specific */ u32 substate; /* platform-specific */