diff options
author | Takashi Iwai <[email protected]> | 2021-07-28 13:23:50 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-07-30 17:20:49 +0100 |
commit | 2e6b836312a477d647a7920b56810a5a25f6c856 (patch) | |
tree | 0301f96b71f25d4c22b73aa409441c6fc896bed7 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
parent | 926ef1a4c245c093acc07807e466ad2ef0ff6ccb (diff) |
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 <[email protected]>
Cc: Pierre-Louis Bossart <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions