Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4DE4DCD495F for ; Thu, 21 Sep 2023 06:59:24 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B0DB6A4E; Thu, 21 Sep 2023 08:58:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B0DB6A4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695279561; bh=Q+x5PNY2fQfbxUuSQ0i+ewkbcor1eYWv1VbIBFtXGic=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=p+qL3THSRPV2eJ0xMfUCBGbl82o0vJo2qT14PeF6FiDPyCYZWQQWG2DDX4900s+pB uuP8lzbtdq/dXAHD/uCQ9bB0RAoY54NPSpOypGfDmcvBe3bmnScPWDxI4bOZiLoTcr dm6Jy/KHzN54Nkh2vpuHw6hIFeDz/HanmaTwQZk0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 18AD9F80494; Thu, 21 Sep 2023 08:57:53 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id AEE84F8025A; Thu, 21 Sep 2023 08:57:53 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1868DF8025A; Thu, 21 Sep 2023 08:57:51 +0200 (CEST) Received: from mail1.perex.cz (mail1.perex.cz [77.48.224.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id AF66EF800AA for ; Thu, 21 Sep 2023 08:57:48 +0200 (CEST) Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id 497351A5A; Thu, 21 Sep 2023 08:57:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz 497351A5A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1695279467; bh=aZpTRdRdy6NC2g1GyU8kvveaoE1DB3AcuZUSyCLYgc0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=piINdcxnK0hQpNiz1ZXGs2Eq3BMwKllYHeZiJER1HFsSy/XAegOB8B0LPmvGLoTMq gT+/MRMcUxZ4ZA14k8Yb4vGNNWs8H2WCmEY4E6GU6FcfeJWgLQ3HZRXzppa/EKrgnh J7iQSsB0LZYZf552IYVwkWwG3NrutKn18/POJ+PY= Received: from [192.168.100.98] (unknown [192.168.100.98]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Thu, 21 Sep 2023 08:57:40 +0200 (CEST) Message-ID: Date: Thu, 21 Sep 2023 08:57:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 04/17] ASoC: pcm: Honor subformat when configuring runtime Content-Language: en-US To: Cezary Rojewski , broonie@kernel.org, tiwai@suse.com Cc: alsa-devel@alsa-project.org, amadeuszx.slawinski@linux.intel.com, pierre-louis.bossart@linux.intel.com, hdegoede@redhat.com References: <20230918133940.3676091-1-cezary.rojewski@intel.com> <20230918133940.3676091-5-cezary.rojewski@intel.com> From: Jaroslav Kysela In-Reply-To: <20230918133940.3676091-5-cezary.rojewski@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID-Hash: SDIFSYXE7YMD5LENRRD4FMO6SAT7267K X-Message-ID-Hash: SDIFSYXE7YMD5LENRRD4FMO6SAT7267K X-MailFrom: perex@perex.cz X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 18. 09. 23 15:39, Cezary Rojewski wrote: > Subformat options are ignored when setting up hardware parameters and > assigning PCM stream capabilities. Account for them to allow for > granular format selection. > > With introduction of subformats, copying hardware parameters becomes > a non-trivial operation. Implement a helper function to make things > simple. > > Signed-off-by: Cezary Rojewski > struct snd_soc_pcm_stream { > const char *stream_name; > u64 formats; /* SNDRV_PCM_FMTBIT_* */ > + const struct snd_pcm_subformat *subformats; I don't think that this extension is mandatory. The whole patch can be skipped if the driver installs the subformat runtime constraint. Jaroslav -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.