alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [alsa-devel] [PATCH 00/16] ASoC: remove DAI suspend/resume
@ 2020-01-14  1:31 Kuninori Morimoto
  2020-01-14  1:31 ` [alsa-devel] [PATCH 01/16] ASoC: atmel: atmel_ssc_dai: move .suspend/.resume to component Kuninori Morimoto, Kuninori Morimoto
                   ` (16 more replies)
  0 siblings, 17 replies; 20+ messages in thread
From: Kuninori Morimoto @ 2020-01-14  1:31 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA


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

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-01-14 15:14 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14  1:31 [alsa-devel] [PATCH 00/16] ASoC: remove DAI suspend/resume Kuninori Morimoto
2020-01-14  1:31 ` [alsa-devel] [PATCH 01/16] ASoC: atmel: atmel_ssc_dai: move .suspend/.resume to component Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:31 ` [alsa-devel] [PATCH 02/16] ASoC: bcm: cygnus-ssp: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:31 ` [alsa-devel] [PATCH 03/16] ASoC: cirrus: ep93xx-i2s: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:31 ` [alsa-devel] [PATCH 04/16] ASoC: jz4740: jz4740-i2s: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 05/16] ASoC: mediatek: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 06/16] ASoC: samsung: s3c24xx-i2s: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 07/16] ASoC: samsung: spdif: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 08/16] ASoC: sti: sti_uniperif: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 09/16] ASoC: ti: omap-mcpdm: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 10/16] ASoC: uniphier: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 11/16] ASoC: dwc: dwc-i2s: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 12/16] ASoC: samsung: i2s: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 13/16] ASoC: ux500: ux500_msp_dai: remove unused DAI .suspend/.resume Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 14/16] ASoC: pxa: pxa-ssp: move .suspend/.resume to component Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:32 ` [alsa-devel] [PATCH 15/16] ASoC: pxa: pxa2xx-i2s: " Kuninori Morimoto, Kuninori Morimoto
2020-01-14  1:33 ` [alsa-devel] [PATCH 16/16] ASoC: soc-core: remove DAI suspend/resume Kuninori Morimoto, Kuninori Morimoto
2020-01-14  6:51 ` [alsa-devel] [PATCH 17/16] ASoC: soc-core: remove bus_control Kuninori Morimoto
2020-01-14  8:10   ` Kuninori Morimoto
2020-01-14 15:13     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).