original_kernel/sound/soc/tegra
Thierry Reding 0dfc21c1a4
ASoC: tegra: Use ADMAIF component for DMA allocations
DMA memory is currently allocated for the soundcard device, which is a
virtual device added for the sole purpose of "stitching" together the
audio device. It is not a real device and therefore doesn't have a DMA
mask or a description of the path to and from memory of accesses.

Memory accesses really originate from the ADMA controller that provides
the DMA channels used by the PCM component. However, since the DMA
memory is allocated up-front and the DMA channels aren't known at that
point, there is no way of knowing the DMA channel provider at allocation
time.

The next best physical device in the memory path is the ADMAIF. Use it
as the device to allocate DMA memory to. iommus and interconnects device
tree properties can thus be added to the ADMAIF device tree node to
describe the memory access path for audio.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210708103432.1690385-2-thierry.reding@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-07-11 23:44:30 +01:00
..
Kconfig ASoC: tegra: Unify ASoC machine drivers 2021-06-15 11:43:10 +01:00
Makefile ASoC: tegra: Squash utils into common machine driver 2021-06-15 11:43:12 +01:00
tegra20_ac97.c
tegra20_ac97.h
tegra20_das.c
tegra20_das.h
tegra20_i2s.c ASoC: tegra20: i2s: Use devm_platform_get_and_ioremap_resource() 2021-06-23 11:49:29 +01:00
tegra20_i2s.h
tegra20_spdif.c ASoC: tegra20: spdif: Use devm_platform_get_and_ioremap_resource() 2021-06-23 11:49:30 +01:00
tegra20_spdif.h
tegra30_ahub.c ASoC: tegra30: ahub: Use devm_platform_get_and_ioremap_resource() 2021-06-23 11:49:32 +01:00
tegra30_ahub.h
tegra30_i2s.c
tegra30_i2s.h
tegra186_dspk.c
tegra186_dspk.h
tegra210_admaif.c ASoC: tegra: tegra210_admaif: Use devm_platform_get_and_ioremap_resource() 2021-06-23 11:49:31 +01:00
tegra210_admaif.h
tegra210_ahub.c
tegra210_ahub.h
tegra210_dmic.c
tegra210_dmic.h
tegra210_i2s.c
tegra210_i2s.h
tegra_asoc_machine.c ASoC: tegra: Fix a NULL vs IS_ERR() check 2021-06-21 13:06:27 +01:00
tegra_asoc_machine.h ASoC: tegra: Squash utils into common machine driver 2021-06-15 11:43:12 +01:00
tegra_audio_graph_card.c
tegra_cif.h
tegra_pcm.c ASoC: tegra: Use ADMAIF component for DMA allocations 2021-07-11 23:44:30 +01:00
tegra_pcm.h
tegra_wm8903.c ASoC: tegra: Specify components string for each card 2021-06-15 11:43:11 +01:00