[alsa-devel] [PATCH 0/18] ASoC: rsnd: use mod base common method on DMA/CMD/SSIU/SSI-parent

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Oct 26 09:37:39 CET 2015


Hi Mark

Renesas sound has (SSI/SSIU/SRC/CTU/MIX/DVC/CMD/AudioDMAC/AudioDMACpp).
Here, SSI/SRC/CTU/MIX/DVC are implemented as "module".
But, SSI parent / SSIU are implemented as part of SSI,
CMD is implemented as part of CTU/MIX/DVC
AudioDMAC/AudioDMACpp are implemented as part of SSI/SRC.
because I assumed that SSI/SRC/CTU/MIX/DVC (which are implemented as module)
are MAIN modules, and others are option.
But, current style is
1) ununderstandable each IPs setting order when debugging, because
debug message can't indicate invisible "modules".
2) there is no flexibility for each devices.

This patch-set makes DMA/CMD/SSIU/SSI-parent as common module.
All devices are controlled as common module now. 

 1) - 12) prepare for each device
13) - 18) mod base common method patches.

Becase DMA was implemented as part of SSI/SRC, it was difficult to
separate it in 1 patch. It used 3 phases here

Kuninori Morimoto (18):
       1) ASoC: rsnd: DMA become SSI/SRC member
       2) ASoC: rsnd: DMA related definition goes to dma.c
       3) ASoC: rsnd: rename rsnd_dma_init() to rsnd_dma_attach()
       4) ASoC: rsnd: enable to use rsnd_dai_connect() from each mod
       5) ASoC: rsnd: remove all modules when DMA fail case
       6) ASoC: rsnd: fixup rsnd_dma_of_path method for mod base common method
       7) ASoC: rsnd: move rsnd_src_ssi_irq_enable/disable() to ssi.c
       8) ASoC: rsnd: disable SRC.out only when stop timing
       9) ASoC: rsnd: rsnd_dai_stream has each mod's status insted of rsnd_mod
      10) ASoC: rsnd: Don't stop HW even if a large number of errors occur
      11) ASoC: rsnd: avoid pointless loop in rsnd_mod_interrupt()
      12) ASoC: rsnd: use common rsnd_ssi_status_xxx()
      13) ASoC: rsnd: use mod base common method on DMA phase1
      14) ASoC: rsnd: use mod base common method on DMA phase2
      15) ASoC: rsnd: use mod base common method on DMA phase3
      16) ASoC: rsnd: use mod base common method on CMD
      17) ASoC: rsnd: use mod base common method on SSIU
      18) ASoC: rsnd: use mod base common method on SSI-parent

 sound/soc/sh/rcar/Makefile |   2 +-
 sound/soc/sh/rcar/cmd.c    | 153 ++++++++++++++++++++++++++++++++++++++++++++++++
 sound/soc/sh/rcar/core.c   | 155 +++++++++++++------------------------------------
 sound/soc/sh/rcar/ctu.c    |   8 +++
 sound/soc/sh/rcar/dma.c    | 240 +++++++++++++++++++++++++++++++++++++++++++++------------------------------
 sound/soc/sh/rcar/dvc.c    |  18 ++++--
 sound/soc/sh/rcar/mix.c    |  10 +++-
 sound/soc/sh/rcar/rsnd.h   |  88 +++++++++++++++-------------
 sound/soc/sh/rcar/src.c    | 179 ++++++++++++--------------------------------------------
 sound/soc/sh/rcar/ssi.c    | 423 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------
 sound/soc/sh/rcar/ssiu.c   | 181 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 11 files changed, 860 insertions(+), 597 deletions(-)


More information about the Alsa-devel mailing list