diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2020-02-19 16:21:30 +0200 |
---|---|---|
committer | Daniel Baluta <daniel.baluta@nxp.com> | 2020-02-21 17:22:09 +0200 |
commit | 352ad24ecbe711ad5bb99a047655c1901e9b5643 (patch) | |
tree | 5ceabe4ce086eae8d9ca15c382303530ded1a497 /sound/soc/sof | |
parent | 9194cb7c75e5684a2f345c260ce12a584e065861 (diff) |
MLK-23350-1 ASoC: sof: Skip power domain handline when num_domains = 1
This case case is already handled by the PM core.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/sof')
-rw-r--r-- | sound/soc/sof/imx/imx8.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index 504325215a89..c1615e440e00 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -225,6 +225,10 @@ static int imx8_probe(struct snd_sof_dev *sdev) return priv->num_domains; } + /* power domain already enabled by PM core */ + if (priv->num_domains == 1) + goto done_pm; + priv->pd_dev = devm_kmalloc_array(&pdev->dev, priv->num_domains, sizeof(*priv->pd_dev), GFP_KERNEL); if (!priv) @@ -252,6 +256,7 @@ static int imx8_probe(struct snd_sof_dev *sdev) } } +done_pm: ret = imx_scu_get_handle(&priv->sc_ipc); if (ret) { dev_err(sdev->dev, "Cannot obtain SCU handle (err = %d)\n", |