Skip to content

Commit 4c19030

Browse files
keyonjiebroonie
authored andcommitted
ASoC: SOF: add a field to store the current D0 substate of DSP
Add field d0_substate to struct snd_sof_dev to store the current DSP D0 sub-state(only meaningful when DSP in D0), which could be D0I0 or D0I3. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191025224122.7718-2-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5db8617 commit 4c19030

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎sound/soc/sof/sof-priv.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ extern int sof_core_debug;
6868

6969
#define DMA_CHAN_INVALID 0xFFFFFFFF
7070

71+
/* DSP D0ix sub-state */
72+
enum sof_d0_substate {
73+
SOF_DSP_D0I0 = 0, /* DSP default D0 substate */
74+
SOF_DSP_D0I3, /* DSP D0i3(low power) substate*/
75+
};
76+
7177
struct snd_sof_dev;
7278
struct snd_sof_ipc_msg;
7379
struct snd_sof_ipc;
@@ -387,6 +393,9 @@ struct snd_sof_dev {
387393
*/
388394
struct snd_soc_component_driver plat_drv;
389395

396+
/* power states related */
397+
enum sof_d0_substate d0_substate;
398+
390399
/* DSP firmware boot */
391400
wait_queue_head_t boot_wait;
392401
u32 boot_complete;

0 commit comments

Comments
 (0)