ASoC: SOF: loader: Use snd_sof_dsp_block_read() instead sof_block_read()
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 21 May 2021 09:28:01 +0000 (12:28 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 21 May 2021 12:13:38 +0000 (13:13 +0100)
SOF core should use the IO functions via callbacks and not directly to
ensure that it remains platform independent.

Fixes: 83ee7ab1627b7 ("ASoC: SOF: Intel: byt: Refactor fw ready / mem windows creation")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210521092804.3721324-5-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/loader.c

index 6efaf76..2b38a77 100644 (file)
@@ -517,7 +517,7 @@ int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id)
                return 0;
 
        /* copy data from the DSP FW ready offset */
-       sof_block_read(sdev, bar, offset, fw_ready, sizeof(*fw_ready));
+       snd_sof_dsp_block_read(sdev, bar, offset, fw_ready, sizeof(*fw_ready));
 
        /* make sure ABI version is compatible */
        ret = snd_sof_ipc_valid(sdev);