ASoC: Intel: Baytrail: Fix stream restore after aborted suspend
Status from this message: Applied all, thanks. It'd have been helpful if the commit messages for
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ASoC: Intel: Merge Baytrail ADSP suspend_noirq into suspend_latesound/ sound/ sound/ | +1 | 0 replies | |
| 2/3 | ASoC: Intel: Wait Baytrail ADSP boot at resume_early stagesound/ | +4 | 0 replies | |
| 3/3 | ASoC: Intel: Restore Baytrail ADSP streams only when ADSP was in resetsound/ | +11 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Borun Fu |
|---|---|
| 1/3 | T-b |
| 2/3 | T-b |
| 3/3 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] ASoC: Intel: Baytrail: Fix stream restore after aborted suspend
It was found that resuming active stream fails on Baytrail ADSP in case of aborted suspend or when testing only partial suspend. Reason for this is that in those cases ADSP doesn't reach reset even though resume path is expecting so and fails to restart stream.
This revealed that suspend and resume phases do not go together:
Operating state is not the same after returning certain resume phase than it was prior entering into corresponding suspend phase. Also we unload firmware in suspend_late before putting ADSP into reset in suspend_noirq when ADSP is actually already powered down.
Fix these by first rearranging and simplifying suspend/resume: Put ADSP into reset in suspend_late and bring it back in resume_late. Now only these will take care of ADSP reset and reboot and SNDRV_PCM_TRIGGER_SUSPEND/SNDRV_PCM_TRIGGER_RESUME callbacks will take care of stream stop/restart during suspend and resume phases.
Then modify stream resume so that full stream reallocation and restart is done only if suspend_late was reached. Otherwise resume it by using the IPC that resumes paused stream.
Jarkko Nikula (3):
ASoC: Intel: Merge Baytrail ADSP suspend_noirq into suspend_late
ASoC: Intel: Wait Baytrail ADSP boot at resume_early stage
ASoC: Intel: Restore Baytrail ADSP streams only when ADSP was in reset
sound/soc/intel/sst-baytrail-ipc.c | 10 +-------- sound/soc/intel/sst-baytrail-ipc.h | 1 - sound/soc/intel/sst-baytrail-pcm.c | 43 +++++++++++++------------------------- 3 files changed, 16 insertions(+), 38 deletions(-)
Signature · 1 line
2.0.1