OpenCloudOS-Kernel/sound/soc/sof/intel
Ranjani Sridharan ed3baacd76
ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream
The prepare() ioctl for BE dai link gets called both
when the stream is started and when it is resumed from
suspend. SOF uses this ioctl to set the hw params
again only if the stream has been suspended.

When the stream is started, the hw_params ioctl gets called
before prepare() and hw_params is set for the BE dai link.
So the prepare call does not need to do anything further.

When the stream resumes after system suspend, SOF requires
that the hw_params be set again for the BE dai. In order
to determine which streams should set the hw params
during prepare(), an internal flag called "hw_params_upon_resume"
is introduced in struct sof_intel_hda_stream. The flag is set
for hda streams when the sof device suspends and is
cleared after hw_params is set.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-03 15:01:45 +09:00
..
Kconfig ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
Makefile ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
apl.c ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
bdw.c ASoC: SOF: Intel: Add BDW HW DSP support 2019-04-28 02:50:37 +09:00
byt.c
cnl.c ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
hda-bus.c ASoC: SOF: Intel: hda: set bus->idx as 0 2019-05-03 14:58:35 +09:00
hda-codec.c ASoC: SOF: Intel: Add support for HDAudio codecs 2019-04-28 02:51:27 +09:00
hda-ctrl.c ASoC: SOF: Intel: Add HDA controller for Intel DSP 2019-04-28 02:50:49 +09:00
hda-dai.c ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
hda-dsp.c ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
hda-ipc.c ASoC: SOF: Intel: hda-ipc: simplify handling of IPC IRQ 2019-05-03 15:00:32 +09:00
hda-loader.c ASoC: SOF: Intel: hda: set I2S slave before enabling DSP 2019-05-03 14:58:11 +09:00
hda-pcm.c ASoC: SOF: Intel: hda-pcm: remove useless dependency on hdac_ext 2019-05-03 14:58:48 +09:00
hda-stream.c ASoC: SOF: Intel: hda-stream: handle real stream interrupts only 2019-05-03 15:01:26 +09: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: fix spelling mistake "incompatble" -> "incompatible" 2019-05-02 11:10:59 +09:00
hda.h ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
intel-ipc.c ASoC: SOF: Intel: Add legacy IPC support 2019-04-28 02:50:40 +09:00
shim.h ASoC: SOF: Intel: hda: add SSP info to the chip info struct 2019-05-03 14:57:39 +09:00