Skip to content

ASoC: Cleanup dmaengine PCM users

Lars-Peter Clausen alsa-devel 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 16 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/14ASoC: ux500_pcm: Remove duplicated SNDRV_PCM_HW_PARAM_PERIODS constraintsound/soc/ux500/ux500_pcm.c+0 -91 reply
2/14ASoC: spear_pcm: No need to wrap snd_dmaengine_pcm_close()sound/soc/spear/spear_pcm.c+1 -91 reply
3/14ASoC: omap-pcm: No need to wrap snd_dmaengine_pcm_close()sound/soc/omap/omap-pcm.c+1 -72 replies
4/14ASoC: tegra_pcm: No need to wrap snd_dmaengine_pcm_close()sound/soc/tegra/tegra_pcm.c+1 -71 reply
5/14ASoC: ux500_pcm: No need to wrap snd_dmaengine_pcm_close()sound/soc/ux500/ux500_pcm.c+1 -131 reply
6/14ASoC: atmel-pcm-dma: No need to wrap snd_dmaengine_pcm_close()sound/soc/atmel/atmel-pcm-dma.c+1 -81 reply
7/14ASoC: ux500_pcm: No need to use snd_dmaengine_pcm_set_data()sound/soc/ux500/ux500_pcm.c+0 -22 replies
8/14ASoC: speaer_pcm: No need to use snd_dmaengine_pcm_set_data()sound/soc/spear/spear_pcm.c+1 -73 replies
9/14ASoC: atmel-pcm-dma: Do not use snd_dmaengine_pcm_{set, get}_data()sound/soc/atmel/atmel-pcm-dma.c+6 -81 reply
10/14ASoC: ep93xx: Use ep93xx_dma_params instead of ep93xx_pcm_dma_paramssound/soc/cirrus/edb93xx.c sound/soc/cirrus/ep93xx-ac97.c sound/soc/cirrus/ep93xx-i2s.c +4 more+14 -680 replies
11/14ASoC: mmp-pcm: Allocate dma filter parameters on the stacksound/soc/pxa/mmp-pcm.c+5 -280 replies
12/14ASoC: imx-pcm: Embed the imx_dma_data struct in the dma_params structsound/soc/fsl/fsl_ssi.c sound/soc/fsl/imx-pcm-dma.c sound/soc/fsl/imx-pcm.h +1 more+34 -471 reply
13/14ASoC: mxs: Embed the mxs_dma_data struct in the mxs_pcm_dma_params structsound/soc/mxs/mxs-pcm.c sound/soc/mxs/mxs-pcm.h sound/soc/mxs/mxs-saif.c+11 -421 reply
14/14ASoC: dmaengine-pcm: Remove snd_dmaengine_pcm_{set, get}_datainclude/sound/dmaengine_pcm.h sound/soc/soc-dmaengine-pcm.c+0 -320 replies

Reviews trailers per patch

6 of 14 patches have a Reviewed-by or Acked-by.

PatchPeter UjfalusiJarkko NikulaStephen WarrenShawn GuoRajeev KumarBo Shen
1/14
2/14A-b
3/14A-b A-b
4/14A-b
5/14
6/14T-b A-b
7/14
8/14A-b
9/14T-b A-b
10/14
11/14
12/14T-b
13/14T-b
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH 00/14] ASoC: Cleanup dmaengine PCM users

Hi,

This series cleans up a few of the current users of the dmaengine pcm lib in order to make the introduction of a new more generic PCM dmaengine driver more straight forward.

The series consists mainly of two types of changes. One is removing all unnecessary wrappers of snd_soc_dmaengine_close(). For some reason quite a few drivers started providing their own pcm_close callback, which does nothing but calls snd_soc_dmaengine_close, although snd_soc_dmaengine_close can be used directly as the pcm_close callback if nothing else needs to be done.

The other is getting rid of snd_dmaengine_pcm_{get,set}_data(). These two functions were initially introduced to deal with a few oddball dmaengine drivers which require that data is passed to them via the private_data field of the channel and we had to keep the data allocated until the channel had been released. A few other driver started using these functions although there is no need to do so. E.g. some drivers just call snd_dmaengine_pcm_set_data(), but never attempt to read the data again using snd_dmaengine_pcm_get_data(). For the drivers, for which snd_dmaengine_pcm_{set,get}_data() was originally introduced, the responsibility of keeping the dma config allocated is shifted from the pcm driver to the i2s drivers. Which in turn makes the code much more straight forward since for most i2s drivers the dma config is either static or setup once at driver probe time.

The series has only been compile tested, so please test these patches, especially the non trivial ones for ep93xx, mmp, imx and mxs.

- Lars

Lars-Peter Clausen (14):
ASoC: ux500_pcm: Remove duplicated SNDRV_PCM_HW_PARAM_PERIODS
constraint
ASoC: spear_pcm: No need to wrap snd_dmaengine_pcm_close()
ASoC: omap-pcm: No need to wrap snd_dmaengine_pcm_close()
ASoC: tegra_pcm: No need to wrap snd_dmaengine_pcm_close()
ASoC: ux500_pcm: No need to wrap snd_dmaengine_pcm_close()
ASoC: atmel-pcm-dma: No need to wrap snd_dmaengine_pcm_close()
ASoC: ux500_pcm: No need to use snd_dmaengine_pcm_set_data()
ASoC: speaer_pcm: No need to use snd_dmaengine_pcm_set_data()
ASoC: atmel-pcm-dma: Do not use snd_dmaengine_pcm_{set,get}_data()
ASoC: ep93xx: Use ep93xx_dma_params instead of ep93xx_pcm_dma_params
ASoC: mmp-pcm: Allocate dma filter parameters on the stack
ASoC: imx-pcm: Embed the imx_dma_data struct in the dma_params struct
ASoC: mxs: Embed the mxs_dma_data struct in the mxs_pcm_dma_params
struct
ASoC: dmaengine-pcm: Remove snd_dmaengine_pcm_{set,get}_data

 include/sound/dmaengine_pcm.h   |  3 ---
 sound/soc/atmel/atmel-pcm-dma.c | 23 +++++++---------------
 sound/soc/cirrus/edb93xx.c      |  1 -
 sound/soc/cirrus/ep93xx-ac97.c  |  9 +++++----
 sound/soc/cirrus/ep93xx-i2s.c   | 12 ++++++------
 sound/soc/cirrus/ep93xx-pcm.c   | 37 +++--------------------------------
 sound/soc/cirrus/ep93xx-pcm.h   | 20 -------------------
 sound/soc/cirrus/simone.c       |  2 --
 sound/soc/cirrus/snappercl15.c  |  1 -
 sound/soc/fsl/fsl_ssi.c         | 17 ++++++++--------
 sound/soc/fsl/imx-pcm-dma.c     | 35 ++-------------------------------
 sound/soc/fsl/imx-pcm.h         | 17 ++++++++++++++--
 sound/soc/fsl/imx-ssi.c         | 12 ++++++++----
 sound/soc/mxs/mxs-pcm.c         | 43 +++++------------------------------------
 sound/soc/mxs/mxs-pcm.h         |  4 +++-
 sound/soc/mxs/mxs-saif.c        |  6 +++---
 sound/soc/omap/omap-pcm.c       |  8 +-------
 sound/soc/pxa/mmp-pcm.c         | 33 +++++--------------------------
 sound/soc/soc-dmaengine-pcm.c   | 29 ---------------------------
 sound/soc/spear/spear_pcm.c     | 18 ++---------------
 sound/soc/tegra/tegra_pcm.c     |  8 +-------
 sound/soc/ux500/ux500_pcm.c     | 25 +-----------------------
 22 files changed, 76 insertions(+), 287 deletions(-)
 delete mode 100644 sound/soc/cirrus/ep93xx-pcm.h
Signature · 1 line
1.8.0