alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [alsa-devel] [PATCH 00/16] ASoC: remove DAI suspend/resume
Date: 14 Jan 2020 10:31:07 +0900	[thread overview]
Message-ID: <87ftgihlic.wl-kuninori.morimoto.gx@renesas.com> (raw)


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

             reply	other threads:[~2020-01-14 13:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-14  1:31 Kuninori Morimoto [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftgihlic.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).