From patchwork Tue Jan 14 01:31:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 11332213 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CF026C1 for ; Tue, 14 Jan 2020 13:17:59 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A088524670 for ; Tue, 14 Jan 2020 13:17:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A088524670 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (unknown [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 87D5827D2; Tue, 14 Jan 2020 02:31:19 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 87D5827D2 Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 07997F8014B; Tue, 14 Jan 2020 02:31:18 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9B4E8F801EB; Tue, 14 Jan 2020 02:31:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: ** X-Spam-Status: No, score=3.0 required=5.0 tests=AC_FROM_MANY_DOTS, SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by alsa1.perex.cz (Postfix) with ESMTP id A359DF800B9 for ; Tue, 14 Jan 2020 02:31:10 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A359DF800B9 Date: 14 Jan 2020 10:31:07 +0900 X-IronPort-AV: E=Sophos;i="5.69,431,1571670000"; d="scan'208";a="36588738" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 14 Jan 2020 10:31:07 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 18A47414805F; Tue, 14 Jan 2020 10:31:07 +0900 (JST) Message-ID: <87ftgihlic.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Mark Brown MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Cc: Linux-ALSA Subject: [alsa-devel] [PATCH 00/16] ASoC: remove DAI suspend/resume X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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(-)