From patchwork Mon Feb 10 03:13:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 193654 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CBC2C2BA83 for ; Mon, 10 Feb 2020 03:14:52 +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 8F43C20870 for ; Mon, 10 Feb 2020 03:14:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Roqqsltx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F43C20870 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 (alsa1.perex.cz [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 DE40B86E; Mon, 10 Feb 2020 04:13:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DE40B86E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581304490; bh=lPVd5qUvBaVkYhtNhgCu9EzCbwibt+BPGXF61/tcQSw=; h=Date:From:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=RoqqsltxZAXZM/F7hPi1ikFNprLDNJrU7VZ5cwF96pY9KBmCJ/I8tDmHC6iNbfruy +xT8KbS1Xr/mvNe9Nheu+Z9OfQVuEym4ec08+23vg9PLWrRlkSNP382Mk+YYymbGvN xvS0k3BO5G/idVwDE9s+0ZA5QuZjLIxnBLpkB7N4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 76AAAF80118; Mon, 10 Feb 2020 04:13:59 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A4033F80157; Mon, 10 Feb 2020 04:13:58 +0100 (CET) Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa1.perex.cz (Postfix) with ESMTP id 0292EF80118 for ; Mon, 10 Feb 2020 04:13:52 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0292EF80118 Date: 10 Feb 2020 12:13:49 +0900 X-IronPort-AV: E=Sophos;i="5.70,423,1574089200"; d="scan'208";a="38653572" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 10 Feb 2020 12:13:49 +0900 Received: from venus.renesas.com (unknown [10.166.252.89]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 32CAB4163577; Mon, 10 Feb 2020 12:13:49 +0900 (JST) Message-ID: <87d0anceze.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 v3 0/7] ASoC: soc-pcm cleanup step2 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 These are v3 of soc-pcm cleanup. Original [5/7] [6/7] patch call open / start function for all DAI / component. And, it calls close / stop function for all if some of them got error. But in such case, error occured DAI / component don't need to call close / stop. This issue can be solved if it had flag, and my local tree has such patch. But it was planed to post to ML a little later. This time, I merged original patch and this new flag patch on [5/7] [6/7]. These mention that "it is prepare for soc-pcm-open() cleanup". But it will be happen later. These are based on v5.6-rc1 Kuninori Morimoto (8): 1) ASoC: soc-pcm: add snd_soc_runtime_action() 2) ASoC: soc-pcm: adjustment for DAI member 0 reset 3) ASoC: soc-pcm: add for_each_dapm_widgets() macro 4) ASoC: soc-pcm: don't use bit-OR'ed error 5) ASoC: soc-pcm: call snd_soc_dai_startup()/shutdown() once 6) ASoC: soc-pcm: call snd_soc_component_open/close() once 7) ASoC: soc-pcm: move soc_pcm_close() next to soc_pcm_open() 8) ASoC: soc-pcm: tidyup soc_pcm_open() order include/sound/soc-component.h | 7 +- include/sound/soc-dai.h | 5 +- include/sound/soc-dapm.h | 5 + sound/soc/soc-component.c | 35 ++++-- sound/soc/soc-dai.c | 11 +- sound/soc/soc-dapm.c | 8 +- sound/soc/soc-pcm.c | 246 +++++++++++++++++++----------------------- 7 files changed, 161 insertions(+), 156 deletions(-)