linux_dsm_epyc7002/sound/soc/intel
Jarkko Nikula b80d19c166 ASoC: Intel: Restore Baytrail ADSP streams only when ADSP was in reset
There is no need to restore and restart PCM streams in case ADSP didn't
reach reset and power off state during system suspend/resume cycle. In that
case stream is still active but paused and firmware doesn't allow allocating
a new stream before paused stream is freed.

ADSP remains active in case suspend sequence didn't go to suspend_late
stage. This can happen when either suspend sequence is aborted by a wakeup
or by letting only devices suspend by "echo devices >/sys/power/pm_test".

Currently stream restoring fails in these suspend cases. Fix this by adding
a flag that indicates is complete stream reinitialization needed or is it
enough to resume paused stream. Flag is set when we know that ADSP reached
suspend_late.

Initial fix to this issue came from Fang Yang. I modified it a little and
forward ported it to top of two other suspend/resume patches from me.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Borun Fu <borun.fu@intel.com>
Cc: yang fang <yang.a.fang@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-08-11 13:40:24 +01:00
..
byt-max98090.c ASoC: Intel: byt-max98090: Do not enable MAX98090 microphone detection 2014-06-24 16:20:43 +01:00
byt-rt5640.c Merge remote-tracking branches 'asoc/topic/gpio' and 'asoc/topic/intel' into asoc-next 2014-06-03 10:39:50 +01:00
haswell.c Merge remote-tracking branches 'asoc/topic/gpio' and 'asoc/topic/intel' into asoc-next 2014-06-03 10:39:50 +01:00
Kconfig ASoC: intel: The Baytrail/MAX98090 driver depends on I2C 2014-06-01 20:12:05 +01:00
Makefile ASoC: Intel: Add Baytrail byt-max98090 machine driver 2014-06-01 11:44:49 +01:00
mfld_machine.c ASoC: mfld_machine: Fix compile error 2014-03-21 19:33:36 +00:00
sst-acpi.c ASoC: Intel: Update Baytrail ADSP firmware name 2014-08-06 20:36:13 +01:00
sst-baytrail-dsp.c Merge branch 'fix/intel' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel 2014-05-13 18:23:56 +01:00
sst-baytrail-ipc.c ASoC: Intel: Merge Baytrail ADSP suspend_noirq into suspend_late 2014-08-11 13:40:23 +01:00
sst-baytrail-ipc.h ASoC: Intel: Merge Baytrail ADSP suspend_noirq into suspend_late 2014-08-11 13:40:23 +01:00
sst-baytrail-pcm.c ASoC: Intel: Restore Baytrail ADSP streams only when ADSP was in reset 2014-08-11 13:40:24 +01:00
sst-dsp-priv.h Merge branch 'fix/intel' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel 2014-05-13 18:23:56 +01:00
sst-dsp.c ASoC: Intel: Fix Audio DSP usage when IOMMU is enabled. 2014-05-02 09:53:02 -07:00
sst-dsp.h ASoC: Intel: Fix Audio DSP usage when IOMMU is enabled. 2014-05-02 09:53:02 -07:00
sst-firmware.c Merge branch 'fix/intel' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel 2014-05-13 18:23:56 +01:00
sst-haswell-dsp.c ASoC: Intel: Add dummy read for SRAM block enable 2014-07-14 19:11:27 +01:00
sst-haswell-ipc.c ASoC: Intel: remove duplicate headers 2014-06-01 11:50:45 +01:00
sst-haswell-ipc.h ASoC: Intel: Fix stream position pointer. 2014-05-02 09:54:05 -07:00
sst-haswell-pcm.c ASoC: Intel: Cleanup HSW pcm format support 2014-07-14 19:09:05 +01:00
sst-mfld-dsp.h ASoC: Intel: remove codec memeber from codec structs 2014-05-16 19:46:06 +01:00
sst-mfld-platform-compress.c ASoC: Intel: remove codec memeber from codec structs 2014-05-16 19:46:06 +01:00
sst-mfld-platform-pcm.c ASoC: Intel: remove codec memeber from codec structs 2014-05-16 19:46:06 +01:00
sst-mfld-platform.h ASoC: Intel: add drain_notify support 2014-05-16 19:46:06 +01:00