linux-brain/sound/soc/intel
Takashi Iwai c18b28e5ad ASoC: intel: atom: Fix reference to PCM buffer address
commit 2e6b836312a477d647a7920b56810a5a25f6c856 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 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-18 08:56:56 +02:00
..
atom ASoC: intel: atom: Fix reference to PCM buffer address 2021-08-18 08:56:56 +02:00
baytrail Merge branch 'asoc-5.4' into asoc-next 2019-09-09 14:55:20 +01:00
boards ASoC: Intel: kbl_da7219_max98357a: shrink platform_id below 20 characters 2021-07-20 16:10:45 +02:00
common ASoC: Intel: kbl_da7219_max98357a: shrink platform_id below 20 characters 2021-07-20 16:10:45 +02:00
haswell ASoC: Intel: hsw: remove i386 build warning w/ size_t argument 2019-08-13 12:40:46 +01:00
skylake ASoC: Intel: Skylake: Zero snd_ctl_elem_value 2021-02-13 13:52:55 +01:00
Kconfig ASoC: SOF: Intel: Broadwell: clarify mutual exclusion with legacy driver 2020-01-17 19:48:34 +01:00
Makefile ASoC: Intel: Fix Kconfig with top-level selector 2018-01-08 16:18:48 +00:00