linux/sound/soc/intel/atom
Takashi Iwai 2e6b836312
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>
2021-07-30 17:20:49 +01:00
..
sst ASoC: Intel: atom: fix kernel-doc 2021-03-10 13:08:47 +00:00
Makefile ASoC: Intel: atom: Remove duplicate kconfigs 2020-10-14 20:29:54 +01:00
sst-atom-controls.c ASoC: Intel: atom: use inclusive language for SSP bclk/fsync 2020-11-13 14:22:07 +00:00
sst-atom-controls.h ASoC: Intel: atom: use inclusive language for SSP bclk/fsync 2020-11-13 14:22:07 +00:00
sst-mfld-dsp.h ASoC: Intel: Fix a typo 2021-04-01 12:18:12 +01:00
sst-mfld-platform-compress.c ASoC: Intel: Atom: compress: remove redundant assignment 2020-08-18 11:50:09 +01:00
sst-mfld-platform-pcm.c ASoC: intel: atom: Fix reference to PCM buffer address 2021-07-30 17:20:49 +01:00
sst-mfld-platform.h ASoC: Intel: Atom: (cosmetic) align parameters 2020-08-18 11:50:17 +01:00