ASoC: SOF: Split up utils.c into sof-utils and iomem-utils
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 10 Feb 2022 15:05:20 +0000 (17:05 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 10 Feb 2022 15:19:04 +0000 (15:19 +0000)
commitee8443050b2bf06d80fdd2c78cc25cae2abdedcd
tree98669ba6908c0d95cf9844ed838720b7de1bf4f9
parentab3a2189a3744527f54ace1be19eb13e6c3d24df
ASoC: SOF: Split up utils.c into sof-utils and iomem-utils

The utils.c contains wrappers and implementation for accessing iomem mapped
regions and a single unrelated function to create a compressed page table
from snd_dma_buffer for firmware use.

The latter is used by the PCM and the dma trace code and it needs to be
moved to a generic source/header for the client conversion to be possible.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220210150525.30756-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Makefile
sound/soc/sof/compress.c
sound/soc/sof/iomem-utils.c [moved from sound/soc/sof/utils.c with 59% similarity]
sound/soc/sof/pcm.c
sound/soc/sof/sof-priv.h
sound/soc/sof/sof-utils.c [new file with mode: 0644]
sound/soc/sof/sof-utils.h [new file with mode: 0644]
sound/soc/sof/trace.c