linux/sound/soc/sof
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
..
intel ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
xtensa ASoC: SOF: Add xtensa support 2019-04-28 02:49:31 +09:00
control.c
core.c
debug.c ASoC: SOF: Add driver debug support. 2019-04-28 02:47:54 +09:00
ipc.c ASoC: SOF: ipc: use snd_sof_pcm_period_elapsed 2019-05-03 14:59:59 +09:00
Kconfig ASoC: SOF: add Kconfig option for strict ABI checks 2019-05-03 14:55:52 +09:00
loader.c ASoC: SOF: Add firmware loader support 2019-04-28 02:48:21 +09:00
Makefile ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
nocodec.c ASoC: SOF: Add Nocodec machine driver support 2019-04-28 02:49:26 +09:00
ops.c ASoC: SOF: Add DSP HW abstraction operations 2019-04-28 02:48:15 +09:00
ops.h ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
pcm.c ASoC: SOF: PCM: add period_elapsed work to fix race condition in interrupt context 2019-05-03 14:59:11 +09:00
pm.c ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
sof-acpi-dev.c ASoC: SOF: Add ACPI device support 2019-04-28 02:51:01 +09:00
sof-pci-dev.c ASoC: SOF: Add PCI device support 2019-04-28 02:51:05 +09:00
sof-priv.h ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
topology.c ASoC: SOF: topology: add support for stricter ABI checks 2019-05-03 14:56:31 +09:00
trace.c ASoC: SOF: Add DSP firmware logger support 2019-04-28 02:48:10 +09:00
utils.c ASoC: SOF: Add utils 2019-04-28 02:49:47 +09:00