diff options
| author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2025-12-15 15:29:42 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-12-15 23:07:42 +0900 |
| commit | 2cf7a9ced3c1a999f7de8711cb2a212557fbd800 (patch) | |
| tree | e1bbf15a165f2ef934599309073fe4ef4bc40721 /sound/soc/sof/sof-client-ipc-kernel-injector.c | |
| parent | c3e1549811747e4b4ff7e4bba691980d9dab2d9e (diff) | |
| download | lwn-2cf7a9ced3c1a999f7de8711cb2a212557fbd800.tar.gz lwn-2cf7a9ced3c1a999f7de8711cb2a212557fbd800.zip | |
ASoC: SOF: sof-client: Add support for on-demand DSP boot
With the introduction of on-demand DSP boot the rpm status not necessary
tells that the DSP firmware is booted up.
Introduce the sof_client_boot_dsp() which can be used to make sure that
the DSP is booted and it can handle IPCs.
Update the client drivers to use the new function where it is expected that
the DSP is booted up.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Link: https://patch.msgid.link/20251215132946.2155-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-client-ipc-kernel-injector.c')
| -rw-r--r-- | sound/soc/sof/sof-client-ipc-kernel-injector.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sof/sof-client-ipc-kernel-injector.c b/sound/soc/sof/sof-client-ipc-kernel-injector.c index 249bd2d6c8d2..d5984990098a 100644 --- a/sound/soc/sof/sof-client-ipc-kernel-injector.c +++ b/sound/soc/sof/sof-client-ipc-kernel-injector.c @@ -63,7 +63,9 @@ static ssize_t sof_kernel_msg_inject_dfs_write(struct file *file, const char __u return ret; } - sof_client_ipc_rx_message(cdev, hdr, priv->kernel_buffer); + ret = sof_client_boot_dsp(cdev); + if (!ret) + sof_client_ipc_rx_message(cdev, hdr, priv->kernel_buffer); ret = pm_runtime_put_autosuspend(dev); if (ret < 0) |
