ASoC: kirkwood: Fix reference to PCM buffer address
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Jul 2021 11:23:53 +0000 (13:23 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 30 Jul 2021 16:20:51 +0000 (17:20 +0100)
commitbb6a40fc5a830cae45ddd5cd6cfa151b008522ed
treef05818dd6c5ce1d2cdc5b3b3274f4ac2a5f4c164
parent827f3164aaa579eee6fd50c6654861d54f282a11
ASoC: kirkwood: Fix reference to PCM buffer address

The transition to the managed PCM buffers allowed the dynamically
buffer allocation, while the driver code still assumes the fixed
preallocation buffer and sets up the DMA stuff at the open call.
This needs to be moved to hw_params after the buffer allocation and
setup.  Also, the reference to the buffer address has to be corrected
to runtime->dma_addr.

Fixes: b3c0ae75f5d3 ("ASoC: kirkwood: Use managed DMA buffer allocation")
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20210728112353.6675-6-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/kirkwood/kirkwood-dma.c