aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/sof/trace.c
diff options
context:
space:
mode:
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>2019-12-04 15:15:48 -0600
committerMark Brown <broonie@kernel.org>2019-12-09 18:38:01 +0000
commit3e62579436c6a7fc35de7318e6c5f495b8d0046c (patch)
tree9c42a24e6cb7b1615920cb180441db6ae5e1d4f1 /sound/soc/sof/trace.c
parentASoC: SOF: topology: remove snd_sof_init_topology() (diff)
downloadwireguard-linux-3e62579436c6a7fc35de7318e6c5f495b8d0046c.tar.xz
wireguard-linux-3e62579436c6a7fc35de7318e6c5f495b8d0046c.zip
ASoC: SOF: core: modify the signature for snd_sof_create_page_table
Modify the signature for snd_sof_create_page_table to take struct device pointer as an argument instead of struct snd_sof_dev as this will be used by both the SOF core device and its clients. Also, move the definition out of core.c to utils.c. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191204211556.12671-6-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/trace.c')
-rw-r--r--sound/soc/sof/trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sof/trace.c b/sound/soc/sof/trace.c
index b0e4556c8536..4bb65030819d 100644
--- a/sound/soc/sof/trace.c
+++ b/sound/soc/sof/trace.c
@@ -250,8 +250,8 @@ int snd_sof_init_trace(struct snd_sof_dev *sdev)
}
/* create compressed page table for audio firmware */
- ret = snd_sof_create_page_table(sdev, &sdev->dmatb, sdev->dmatp.area,
- sdev->dmatb.bytes);
+ ret = snd_sof_create_page_table(sdev->dev, &sdev->dmatb,
+ sdev->dmatp.area, sdev->dmatb.bytes);
if (ret < 0)
goto table_err;