Commit 93eb3418 authored by Hans de Goede's avatar Hans de Goede Committed by chrome-bot
Browse files

UPSTREAM: ASoC: Intel: sst: Free streams on suspend, re-alloc on resume



The Bay Trail SST-DSP firmware version looses track of all streams over a
suspend/resume, failing any attempts to resume and/or free streams, with
a SST_ERR_INVALID_STREAM_ID error.

This commit adds support for free-ing the streams on suspend and
re-allocating them on resume, fixing suspend/resume issues on devices
using this firmware version.

This new behavior gets triggered by a new flag in sst_platform_info which
only gets set on Bay Trail platforms.

This has been tested on the following devices:
-Asus T100TA,    Bay Trail    + ALC5642 codec
-Ployer MOMO7W,  Bay Trail CR + ALC5652 codec

Tested-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
(cherry picked from commit bf642bf5)
Signed-off-by: default avatarSamaga Prasanna Krishna <samaga.krishna@intel.corp-partner.google.com>

BUG=b:110025789
TEST=Test Audio use cases with full SOF 0.6 rebase release series applied.

Change-Id: I61f2e1ac64690a6bea0590d66ab343bb62764ec8
Reviewed-on: https://chromium-review.googlesource.com/1353426


Commit-Ready: Curtis Malainey <cujomalainey@chromium.org>
Tested-by: default avatarCurtis Malainey <cujomalainey@chromium.org>
Reviewed-by: default avatarCurtis Malainey <cujomalainey@chromium.org>
parent 9a6cc104
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment