mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ASoC: tegra-alt: Fix ADSP crash at set_params
Set the plugin params only if ADSP is booted and plugin is loaded Bug 200075850 Change-Id: Ib174afe270357ae3c21e50b9e0e85348024ec681 Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com> Reviewed-on: http://git-master/r/715944
This commit is contained in:
committed by
Sameer Pujar
parent
f981c5f62f
commit
c8e1e7558e
@@ -2213,6 +2213,11 @@ static int tegra210_adsp_set_param(struct snd_kcontrol *kcontrol,
|
|||||||
struct tegra210_adsp_app *app = &adsp->apps[params->base];
|
struct tegra210_adsp_app *app = &adsp->apps[params->base];
|
||||||
apm_msg_t apm_msg;
|
apm_msg_t apm_msg;
|
||||||
|
|
||||||
|
if (!adsp->init_done) {
|
||||||
|
dev_warn(adsp->dev, "ADSP is not booted yet\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!app->plugin) {
|
if (!app->plugin) {
|
||||||
dev_warn(adsp->dev, "Plugin not yet initialized\n");
|
dev_warn(adsp->dev, "Plugin not yet initialized\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user