[alsa-devel] [PATCH 00/16] ASoC: remove DAI suspend/resume

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Jan 14 02:31:07 CET 2020


Hi Mark

Now, ALSA SoC calls 2 type of suspend/resume

	suspend/resume for Component
	suspend/resume for DAI

When ALSA SoC calls suspend/resume, its orders are

	1) Suspend/Resume all CPU DAI if bus-control was 0
	2) Suspend/Resume all Component
	3) Suspend/Resume all CPU DAI if bus-control was 1

Historically 2)'s "Component" was "Codec", before.
In total,
CPU   has 3 chance to suspend/resume(= 1/2/3), but
Codec has 1 chance to suspend/resume(= 2).

And now, no driver which is supporting suspend/resume has bus-control.
This means 3) is never used.

Almost all drivers which is using DAI suspend/resume can simply switch
to Component suspend/resume.
Few drivers want to use/keep DAI, but, we can call all DAI from Component
by using this if needed

	for_each_component_dais()

These patches switches all DAI's suspend/resume to Component one,
and removes it.

Kuninori Morimoto (16):
  ASoC: atmel: atmel_ssc_dai: move .suspend/.resume to component
  ASoC: bcm: cygnus-ssp: move .suspend/.resume to component
  ASoC: cirrus: ep93xx-i2s: move .suspend/.resume to component
  ASoC: jz4740: jz4740-i2s: move .suspend/.resume to component
  ASoC: mediatek: move .suspend/.resume to component
  ASoC: samsung: s3c24xx-i2s: move .suspend/.resume to component
  ASoC: samsung: spdif: move .suspend/.resume to component
  ASoC: sti: sti_uniperif: move .suspend/.resume to component
  ASoC: ti: omap-mcpdm: move .suspend/.resume to component
  ASoC: uniphier: move .suspend/.resume to component
  ASoC: dwc: dwc-i2s: move .suspend/.resume to component
  ASoC: samsung: i2s: move .suspend/.resume to component
  ASoC: ux500: ux500_msp_dai: remove unused DAI .suspend/.resume
  ASoC: pxa: pxa-ssp: move .suspend/.resume to component
  ASoC: pxa: pxa2xx-i2s: move .suspend/.resume to component
  ASoC: soc-core: remove DAI suspend/resume

 include/sound/soc-dai.h                    |  2 --
 sound/soc/atmel/atmel_ssc_dai.c            | 18 ++++++-------
 sound/soc/bcm/cygnus-ssp.c                 | 39 +++++++++++++++++++++++-----
 sound/soc/cirrus/ep93xx-i2s.c              | 16 ++++++------
 sound/soc/dwc/dwc-i2s.c                    | 32 +++++++++++++----------
 sound/soc/jz4740/jz4740-i2s.c              | 18 ++++++-------
 sound/soc/mediatek/common/mtk-afe-fe-dai.c | 12 ++++-----
 sound/soc/mediatek/common/mtk-afe-fe-dai.h |  4 +--
 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 14 ++--------
 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 10 +++-----
 sound/soc/pxa/pxa-ssp.c                    | 16 ++++++------
 sound/soc/pxa/pxa2xx-i2s.c                 | 12 ++++-----
 sound/soc/samsung/i2s.c                    | 13 +++++-----
 sound/soc/samsung/s3c24xx-i2s.c            |  8 +++---
 sound/soc/samsung/spdif.c                  | 18 ++++++++-----
 sound/soc/soc-core.c                       | 41 ------------------------------
 sound/soc/soc-dai.c                        | 12 ---------
 sound/soc/sti/sti_uniperif.c               | 12 ++++-----
 sound/soc/ti/omap-mcpdm.c                  | 16 ++++++------
 sound/soc/uniphier/aio-cpu.c               | 31 +++++++++++++++++++---
 sound/soc/uniphier/aio-ld11.c              | 18 -------------
 sound/soc/uniphier/aio-pxs2.c              | 14 ----------
 sound/soc/uniphier/aio.h                   |  2 --
 sound/soc/ux500/ux500_msp_dai.c            |  2 --
 24 files changed, 167 insertions(+), 213 deletions(-)

-- 
2.7.4



More information about the Alsa-devel mailing list