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=-7.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 2B2B8C43461 for ; Fri, 4 Sep 2020 16:22: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 8131A20772 for ; Fri, 4 Sep 2020 16:22: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="LD5BNiSN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8131A20772 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.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 DA9C2177A; Fri, 4 Sep 2020 18:21:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DA9C2177A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1599236563; bh=0THy736CRNcXcP/hI5h6LfjwNHV6URnrEH6g2aZiMM0=; h=Subject:From:To:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=LD5BNiSN0n5XIp8Qr5uhR2u5XuLkR6Hr2F5JcaqGBey/YTTgP6f1E6ReFnQI9khye k1pXYfLYCJe5oo577Kn0uMQzqPcPd4Y+2mZwrzWFn4imXMCGcWTk9VUeMpqkD1QjmF dELp6r4D7RVasG4aAhOigYW1Fc5/ImopgvkXnZvo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7A6ACF80212; Fri, 4 Sep 2020 18:21:53 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D71A2F8024A; Fri, 4 Sep 2020 18:21:52 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EAA26F80113 for ; Fri, 4 Sep 2020 18:21:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EAA26F80113 IronPort-SDR: cB2fmeLudcj7FyTC8+RrERwIe7mUz++wIkius8vnmgkMFj3Sd7SDyezMhsalDDLnoHT6ZSKyBG R3SJCalv7PHQ== X-IronPort-AV: E=McAfee;i="6000,8403,9734"; a="157041502" X-IronPort-AV: E=Sophos;i="5.76,390,1592895600"; d="scan'208";a="157041502" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 09:21:42 -0700 IronPort-SDR: k5LYQdNuxymrwotUEpV4FIE3IigFfRAc3UvskY5QWUGRQHzXYVyp71Cvc1snVWSEhOOG0diPkE xqXFew1MbrZQ== X-IronPort-AV: E=Sophos;i="5.76,390,1592895600"; d="scan'208";a="447379220" Received: from yilkanae-mobl2.ger.corp.intel.com ([10.251.179.197]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 09:21:37 -0700 Message-ID: <66655c271805846c3355db6328b0308a977a3b7a.camel@linux.intel.com> Subject: Re: [PATCH] [RFC] ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open failure From: Liam Girdwood To: Cezary Rojewski , alsa-devel@alsa-project.org Date: Fri, 04 Sep 2020 17:21:30 +0100 In-Reply-To: <20200904123854.26742-1-cezary.rojewski@intel.com> References: <20200904123854.26742-1-cezary.rojewski@intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: broonie@kernel.org, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, kuninori.morimoto.gx@renesas.com, lgirdwood@gmail.com 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" On Fri, 2020-09-04 at 14:38 +0200, Cezary Rojewski wrote: > Introduce for_each_rtd_dais_rollback macro which behaves exactly like > > for_each_codec_dais_rollback and its cpu_dais equivalent but for all > > dais instead. > > > > Use newly added macro to fix soc_pcm_open error path and prevent > > uninitialized dais from being cleaned-up. > > > > Signed-off-by: Cezary Rojewski Acked-by: Liam Girdwood