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: 11372365 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 62AB913A4 for ; Mon, 10 Feb 2020 03:14:46 +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 828EC20870 for ; Mon, 10 Feb 2020 03:14:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="KQZ04Nsf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 828EC20870 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 E265B1668; Mon, 10 Feb 2020 04:13:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E265B1668 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581304483; bh=lPVd5qUvBaVkYhtNhgCu9EzCbwibt+BPGXF61/tcQSw=; h=Date:From:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=KQZ04NsfrgXnKrxWExtckqKtwiArzs480ix3PBMTPiT9U95r5lPOCPb9XcjzoLqLX LEz5sY6h0TeKscqC1kqVTquMRa+i3Mqfhajl/VRx6DqkjAhp2WXBFBxVakCzijqxqV bCOeYSaLkoonkYHM9Iw4u4XgOSBrjja6VTQJ1oNw= 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) 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 A4033F80157; Mon, 10 Feb 2020 04:13:58 +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=1.8 required=5.0 tests=AC_FROM_MANY_DOTS, SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 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(-)