]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea355aef15a736d3ccf14cb76a9b58c94d178370
treef05818dd6c5ce1d2cdc5b3b3274f4ac2a5f4c164
parentd37597306c580130096bee7c1549df915c4bec84
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: d8f4e77b1983 ("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