linux_dsm_epyc7002/sound/soc/sof/intel
Ranjani Sridharan 61e285caf4
ASoC: SOF: Move DSP power state transitions to platform-specific ops
The DSP device substates such as D0I0/D0I3
are platform-specific. Therefore, the d0_substate
field of struct snd_sof_dev is replaced
with the dsp_power_state field which represents the current
state of the DSP. This field holds both the device state
and the platform-specific substate values.

With the DSP device substates being platform-specific,
the DSP power state transitions need to be performed in
the platform-specific suspend/resume ops as well.

In order to achieve this, the ops signature has to be
modified to pass the target device state as an
argument. The target substate will be determined by
the platform-specific ops before performing the transition.
For example, in the case of the system suspending to S0IX,
the top-level SOF device suspend callback needs to
only determine if the DSP will be entering
D3 or remain in D0. The target substate in case the device
needs to remain in D0 (D0I0 or D0I3) will be determined
by the platform-specific suspend op.

With the addition of the extended set of power states for the DSP,
the set_power_state op for HDA platforms has to be extended
to handle only the appropriate state transitions. So, the
implementation for the Intel HDA platforms is also modified.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200129220726.31792-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-02-11 11:48:05 +00:00
..
apl.c ASoC: SOF: move arch_ops under ops 2019-12-18 20:02:02 +00:00
bdw.c ASoC: SOF: Intel: add namespace for XTENSA 2019-12-18 20:02:21 +00:00
byt.c ASoC: SOF: Intel: add namespace for XTENSA 2019-12-18 20:02:21 +00:00
cnl.c ASoC: SOF: move arch_ops under ops 2019-12-18 20:02:02 +00:00
hda-bus.c ASoC: SOF: Intel: Add missing include file hdac_hda.h 2019-08-09 13:24:20 +01:00
hda-codec.c ASoC: SOF: Intel: refactor i915_get/put functions 2020-01-27 17:51:27 +00:00
hda-ctrl.c ASoC: SOF: Intel: add codec_mask module parameter 2019-12-10 13:13:38 +00:00
hda-dai.c ASoC: SOF: Intel: hda-dai: fix compilation warning in pcm_prepare 2020-01-14 15:26:59 +00:00
hda-dsp.c ASoC: SOF: Move DSP power state transitions to platform-specific ops 2020-02-11 11:48:05 +00:00
hda-ipc.c ASoC: SOF: Intel: hda: solve MSI issues by merging ipc and stream irq handlers 2019-12-09 18:35:56 +00:00
hda-ipc.h ASoC: SOF: Intel: HDA: add cAVS specific compact IPC header file 2019-10-28 14:43:58 +00:00
hda-loader.c ASoC: Fixes for v5.5 2020-01-17 15:38:56 +00:00
hda-pcm.c ASoC: SOF: partition audio-related parts from SOF core 2019-12-09 18:38:57 +00:00
hda-stream.c ASoC: SOF: partition audio-related parts from SOF core 2019-12-09 18:38:57 +00:00
hda-trace.c ASoC: SOF: Intel: Add Intel specific HDA trace operations 2019-04-28 02:51:23 +09:00
hda.c ASoC: SOF: Intel: do not disable i915 power during probe 2020-01-27 17:51:43 +00:00
hda.h ASoC: SOF: Move DSP power state transitions to platform-specific ops 2020-02-11 11:48:05 +00:00
intel-ipc.c ASoC: SOF: Intel: add module namespace for legacy IPC 2019-12-18 19:50:53 +00:00
Kconfig ASoC: SOF: Intel: make common HDMI driver default 2019-12-09 18:32:40 +00:00
Makefile ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
shim.h ASoC: SOF: remove references to Haswell 2019-12-18 19:51:40 +00:00