Skip to content

ALSA: Improved WC memory handling

Takashi Iwai alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15ALSA: memalloc: Minor refactoringsound/core/memalloc.c sound/core/memalloc_local.h sound/core/sgbuf.c+26 -330 replies
2/15ALSA: memalloc: Correctly name as WCinclude/sound/memalloc.h sound/core/memalloc.c sound/core/sgbuf.c +4 more+15 -150 replies
3/15ALSA: pcm: Allow exact buffer preallocationinclude/sound/pcm.h sound/core/pcm_memory.c+93 -210 replies
4/15ALSA: memalloc: Support WC allocation on all architecturessound/core/memalloc.c+39 -70 replies
5/15ALSA: pxa2xx: Use managed PCM buffer allocationinclude/sound/pxa2xx-lib.h sound/arm/pxa2xx-ac97.c sound/arm/pxa2xx-pcm-lib.c +4 more+10 -1230 replies
6/15ASoC: bcm: Use managed PCM buffer allocationsound/soc/bcm/bcm63xx-pcm-whistler.c+6 -760 replies
7/15ASoC: fsl: imx-pcm-fiq: Use managed buffer allocationsound/soc/fsl/imx-pcm-fiq.c+3 -720 replies
8/15ASoC: fsl: imx-pcm-rpmsg: Use managed buffer allocationsound/soc/fsl/imx-pcm-rpmsg.c+2 -870 replies
9/15ASoC: tegra: Use managed buffer allocationsound/soc/tegra/tegra210_admaif.c sound/soc/tegra/tegra_pcm.c sound/soc/tegra/tegra_pcm.h+1 -1050 replies
10/15ASoC: fsl_asrc_dma: Use managed buffer allocationsound/soc/fsl/fsl_asrc_dma.c+3 -440 replies
11/15ASoC: fsl_dma: Use managed buffer allocationsound/soc/fsl/fsl_dma.c+3 -470 replies
12/15ASoC: mpc5200: Use managed buffer allocationsound/soc/fsl/mpc5200_dma.c+2 -610 replies
13/15ASoC: qcom: lpass: Use managed buffer allocationsound/soc/qcom/lpass-platform.c+2 -580 replies
14/15ASoC: qcom: qdsp6: Use managed buffer allocationsound/soc/qcom/qdsp6/q6asm-dai.c+3 -601 reply
15/15ASoC: sprd: Use managed buffer allocationsound/soc/sprd/sprd-pcm-dma.c+3 -640 replies

Reviews trailers per patch

None of the 15 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMark BrownSrinivas Kandagatla
SeriesA-b
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15T-b
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] ALSA: Improved WC memory handling

Hi,

this is a patchset to enhance the ALSA memory allocation helper to support the allocation of WC pages more generically as well as supporting the fixed size buffer allocation. It allows us to reduce lots of redundant code in various ASoC drivers that still haven't used the standard preallocation.

Takashi

===

Takashi Iwai (15):
ALSA: memalloc: Minor refactoring
ALSA: memalloc: Correctly name as WC
ALSA: pcm: Allow exact buffer preallocation
ALSA: memalloc: Support WC allocation on all architectures
ALSA: pxa2xx: Use managed PCM buffer allocation
ASoC: bcm: Use managed PCM buffer allocation
ASoC: fsl: imx-pcm-fiq: Use managed buffer allocation
ASoC: fsl: imx-pcm-rpmsg: Use managed buffer allocation
ASoC: tegra: Use managed buffer allocation
ASoC: fsl_asrc_dma: Use managed buffer allocation
ASoC: fsl_dma: Use managed buffer allocation
ASoC: mpc5200: Use managed buffer allocation
ASoC: qcom: lpass: Use managed buffer allocation
ASoC: qcom: qdsp6: Use managed buffer allocation
ASoC: sprd: Use managed buffer allocation

 include/sound/memalloc.h             |  6 +-
 include/sound/pcm.h                  | 47 ++++++++++++--
 include/sound/pxa2xx-lib.h           | 13 +---
 sound/arm/pxa2xx-ac97.c              | 18 ++----
 sound/arm/pxa2xx-pcm-lib.c           | 90 ++------------------------
 sound/core/memalloc.c                | 94 +++++++++++++++++-----------
 sound/core/memalloc_local.h          |  2 +-
 sound/core/pcm_memory.c              | 67 +++++++++++++++-----
 sound/core/sgbuf.c                   | 21 ++++---
 sound/pci/hda/hda_controller.c       |  2 +-
 sound/pci/hda/hda_intel.c            |  2 +-
 sound/pci/intel8x0.c                 |  2 +-
 sound/soc/bcm/bcm63xx-pcm-whistler.c | 82 ++----------------------
 sound/soc/fsl/fsl_asrc_dma.c         | 47 +-------------
 sound/soc/fsl/fsl_dma.c              | 50 +--------------
 sound/soc/fsl/imx-pcm-fiq.c          | 75 +---------------------
 sound/soc/fsl/imx-pcm-rpmsg.c        | 89 +-------------------------
 sound/soc/fsl/mpc5200_dma.c          | 63 +------------------
 sound/soc/pxa/pxa-ssp.c              |  3 -
 sound/soc/pxa/pxa2xx-ac97.c          |  3 -
 sound/soc/pxa/pxa2xx-i2s.c           |  3 -
 sound/soc/pxa/pxa2xx-pcm.c           |  3 -
 sound/soc/qcom/lpass-platform.c      | 60 +-----------------
 sound/soc/qcom/qdsp6/q6asm-dai.c     | 63 +------------------
 sound/soc/sprd/sprd-pcm-dma.c        | 67 +-------------------
 sound/soc/tegra/tegra210_admaif.c    |  6 --
 sound/soc/tegra/tegra_pcm.c          | 93 +--------------------------
 sound/soc/tegra/tegra_pcm.h          |  7 ---
 sound/x86/intel_hdmi_audio.c         |  2 +-
 29 files changed, 209 insertions(+), 871 deletions(-)

===

Cc Banajit Goswami <[email protected]>
Cc Daniel Mack <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Haojian Zhuang <[email protected]>
Cc Nicolin Chen <[email protected]>
Cc Robert Jarzmik <[email protected]>
Cc Shengjiu Wang <[email protected]>
Cc Srinivas Kandagatla <[email protected]>
Cc Xiubo Li <[email protected]>
Signature · 1 line
2.26.2