linux_dsm_epyc7002/sound/soc/amd/raven
Takashi Iwai 1c11ebe862 ASoC: amd: Fix reference to PCM buffer address
commit 8b5d95313b6d30f642e4ed0125891984c446604e upstream.

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/20210731084331.32225-1-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-05 18:53:59 +02:00
..
acp3x-i2s.c ASoC: amd: use asoc_substream_to_rtd() 2020-07-23 19:07:30 +01:00
acp3x-pcm-dma.c ASoC: amd: Fix reference to PCM buffer address 2024-07-05 18:53:59 +02:00
acp3x.h ASoC: amd: fix for pcm_read() error 2021-06-16 12:01:34 +02:00
chip_offset_byte.h ASoC: amd: Switch to SPDX identifier 2018-11-15 11:19:04 -08:00
Makefile ASoC: amd: Refactoring of DAI from DMA driver 2019-12-31 00:22:12 +00:00
pci-acp3x.c ASoC: amd: fix for pcm_read() error 2021-06-16 12:01:34 +02:00