From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 CAF2CC2BA83 for ; Thu, 13 Feb 2020 17:08:01 +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 4D40E206ED for ; Thu, 13 Feb 2020 17:08:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="skzzLWb4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D40E206ED 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 B699D16D9; Thu, 13 Feb 2020 18:07:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B699D16D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581613679; bh=sqPNBN6TNixQ8Cu0gg1NHv/AHEAEHK8antkoKEvGsg0=; h=To:References:From:Date:In-Reply-To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=skzzLWb4hbbQAiyMxwYAi8Ro++AwYE2RvYP+KQeZt83soPQZOJJs4V+4FtfMdPk0n AY5DX7aeCmeaBkSC4y715GBhL6Q4/yED7JOG+kcGqtJTi/zu2dbBTp3udvoF8VDdMC hNmbzGRCKv3lTWigdgVxrltPFlWradNAxWC4QeoA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 64841F80278; Thu, 13 Feb 2020 18:04:57 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EFCA2F801DA; Thu, 13 Feb 2020 18:04:53 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 795F8F800F0 for ; Thu, 13 Feb 2020 18:04:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 795F8F800F0 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2020 09:04:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,437,1574150400"; d="scan'208";a="222709231" Received: from rebrandt-mobl.amr.corp.intel.com (HELO [10.251.9.115]) ([10.251.9.115]) by orsmga007.jf.intel.com with ESMTP; 13 Feb 2020 09:04:46 -0800 To: Kuninori Morimoto , Mark Brown References: <87blq3ru4w.wl-kuninori.morimoto.gx@renesas.com> <87wo8rqfi3.wl-kuninori.morimoto.gx@renesas.com> From: Pierre-Louis Bossart Message-ID: <7ebf1210-eba2-5b01-24b6-bdcf8a0b15f4@linux.intel.com> Date: Thu, 13 Feb 2020 10:14:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <87wo8rqfi3.wl-kuninori.morimoto.gx@renesas.com> Content-Language: en-US Cc: Linux-ALSA Subject: Re: [alsa-devel] [PATCH 10/10] ASoC: soc.h: add for_each_pcm_stream() 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 2/12/20 10:26 PM, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > ALSA SoC has SNDRV_PCM_STREAM_PLAYBACK/CAPTURE everywhere. > Having for_each_xxxx macro is useful. > This patch adds for_each_pcm_stream() for it. Indeed, we also have ugly code in SOF for this: for (dir = 0; dir <= SNDRV_PCM_STREAM_CAPTURE; dir++) { a macro would be much nicer, good suggestion. _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel