Skip to content

ASoC: Move pcm writecombine dma buffer allocation to core

Laxman Dewangan alsa-devel lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 3 repliesSuperseded
  3. v13 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Added some more comment for WAR for ARM specific.
- remove mmap initialization from tegra_pcm.
- Put back the dma mask initialisation in tegra_pcm.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ALSA: Support writecombine DMA buffer memory page alloc/freeinclude/sound/memalloc.h sound/core/memalloc.c sound/core/pcm_native.c+96 -80 replies
2/2ASoC: tegra: use sound pcm library for substream dma buffersound/soc/tegra/tegra_pcm.c+20 -780 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 0/2] ASoC: Move pcm writecombine dma buffer allocation to core

Some of the ARM based soc allocate the writecombine dma buffer for pcm substreams. They have the same codes for managing this buffer. Moving this to the core/pcm memory librray so that they can use that directly.

Remove the code from Tegra PCM and use these new feature from library function.

This is enabled only for ARM specific and can be extended to other architecture if they support the writecombine dma buffer.

This patch is based on detail discussion on patch:
[PATCH] ASoC: snd_dmaengine: add common api for pcm_mmap And suggestion from Lars and Takashi.

Changes from V1:
Takashi had send the sample code to integrate the writecombine with dma coherant and this is based on that code.
Also change the tegra-pcm driver accordingly.

Changes from V2:
- Added some more comment for WAR for ARM specific.
- remove mmap initialization from tegra_pcm.
- Put back the dma mask initialisation in tegra_pcm.

Laxman Dewangan (2):
ALSA: Support writecombine DMA buffer memory page alloc/free
ASoC: tegra: use sound pcm library for substream dma buffer

 include/sound/memalloc.h    |    1 +
 sound/core/memalloc.c       |   70 ++++++++++++++++++++++++---
 sound/core/pcm_native.c     |   10 ++++
 sound/soc/tegra/tegra_pcm.c |  112 ++++++++++--------------------------------
 4 files changed, 100 insertions(+), 93 deletions(-)