ASoC: mmp-sspa: Get rid of dma_params and phys_base
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 11 May 2020 21:01:27 +0000 (23:01 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2020 16:14:38 +0000 (17:14 +0100)
commitc9aeda1c94973f835b3d1b6c785a414caaf935c3
tree54c2eedfeadf6b0a4a871f56db4f348fdf5e0407
parente0b9024d2c8851b18b953823204278602bf73086
ASoC: mmp-sspa: Get rid of dma_params and phys_base

This makes things simpler. There's no reason not to just embed the struct
snd_dmaengine_dai_dma_data in struct sspa_priv and do away with an
unnecessary kmalloc(). While at that, we can initialize the
snd_dmaengine_dai_dma_data structures earlier.

Let's also stop offsetting the source/destination of the DMA transfer by
phys_base. Firstly, it's never set and is always zero. Secondly, the
hardware actually ignores it, at least on a MMP2 and MMP3.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200511210134.1224532-5-lkundrak@v3.sk
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/mmp-sspa.c