diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-07-28 13:23:50 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-30 18:20:49 +0200 |
commit | 2e6b836312a477d647a7920b56810a5a25f6c856 (patch) | |
tree | 0301f96b71f25d4c22b73aa409441c6fc896bed7 /sound/soc/xilinx | |
parent | ASoC: cs42l42: Fix bclk calculation for mono (diff) | |
download | linux-2e6b836312a477d647a7920b56810a5a25f6c856.tar.xz linux-2e6b836312a477d647a7920b56810a5a25f6c856.zip |
ASoC: intel: atom: 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 address should be retrieved from runtime->dma_addr,
instead of substream->dma_buffer (and shouldn't use virt_to_phys).
Also, remove the line overriding runtime->dma_area superfluously,
which was already set up at the PCM buffer allocation.
Cc: Cezary Rojewski <cezary.rojewski@intel.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20210728112353.6675-3-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/xilinx')
0 files changed, 0 insertions, 0 deletions