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

PCM buffers might be allocated dynamically when the buffer
preallocation failed or a larger buffer is requested, and it's not
guaranteed that substream->dma_buffer points to the actually used
buffer.  The driver needs to refer to substream->runtime->dma_addr
instead for the buffer address.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20210728112353.6675-4-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/xilinx/xlnx_formatter_pcm.c