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=-5.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 A58FAC433ED for ; Fri, 9 Apr 2021 16:40:30 +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 80F0B610A8 for ; Fri, 9 Apr 2021 16:40:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80F0B610A8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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 9538D1685; Fri, 9 Apr 2021 18:39:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9538D1685 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1617986427; bh=98wb7Auhqh660NsvMrfqNKBdan3nt0NLyHqCnswHoZI=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NMQ+pYftUCkX7iZsN0HaPKVd5iCHPHV9mcwAiBXt+f8W5qnBOg1bSPgZJKf3w9Qwl hKwLwqd+qHEL+YOhqstimIdbKM5ZHyxmbh5Jc2rdj30ha+hmiNySXwEhU30Jj+QrKx Se4AMGjfa1cZlu2xJ1MrtXFNEe7M3k0dJK1erGtc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2C6D3F8016A; Fri, 9 Apr 2021 18:39:37 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 20EBCF8016D; Fri, 9 Apr 2021 18:39:35 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 24D63F800EE for ; Fri, 9 Apr 2021 18:39:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 24D63F800EE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u7SA/JfF" Received: by mail.kernel.org (Postfix) with ESMTPSA id 254D3610A7; Fri, 9 Apr 2021 16:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617986366; bh=98wb7Auhqh660NsvMrfqNKBdan3nt0NLyHqCnswHoZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u7SA/JfFP60vNboyZ6O+01zCiNJFUJu5M3DuhBh5v5EJXnRubVKg8BSoYbnNi4F3n Gs5EUlSzYC/u6A6IJ3ZZZyMkssFq2nbLxX5r/LIOwrzuGrSPQkJ3bgfRkwrtRVTdX9 peclFdiAm8qyR/dlmgp0OYfGfmH2p+EDPjdzCtsebAlsnxd85d72Ov2IGIkDuG6ht0 8KBR+xhB6mfph2JmJUHphJabEbtlLChqngqfJ1/VYVa/4gdCGePwpJxCfQcmusDtOQ HVJeDkINPTmgN0K5PnekJs7ZgGA2AWqJjmtGGJsNb8CMZmKgLLvkEPdp4U2+woBvQK m9+88WL5J2Tqw== Date: Fri, 9 Apr 2021 17:39:07 +0100 From: Mark Brown To: Pierre-Louis Bossart Subject: Re: [PATCH] ALSA: core - add more card sysfs entries Message-ID: <20210409163907.GE4436@sirena.org.uk> References: <20210408120502.GA4516@sirena.org.uk> <56c874ae-e801-63df-19fa-a1325f6104ca@perex.cz> <3107db1d-f97d-539a-05db-6f880b762f00@linux.intel.com> <3b33595e-777c-90b2-6d65-346c9bf6e003@perex.cz> <9195f83a-28c4-d028-8f1e-c3beaa88d891@perex.cz> <05551192-57dd-2541-94a3-57d40a37e3bf@linux.intel.com> <8f33d7f9-50af-db15-8fb2-01d55bb0b413@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4Epv4kl9IRBfg3rk" Content-Disposition: inline In-Reply-To: <8f33d7f9-50af-db15-8fb2-01d55bb0b413@linux.intel.com> X-Cookie: I'm shaving!! I'M SHAVING!! User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Takashi Iwai , ALSA development , Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= 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" --4Epv4kl9IRBfg3rk Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 09, 2021 at 10:55:38AM -0500, Pierre-Louis Bossart wrote: > > For example do something along those lines: > > struct snd_soc_tplg_manifest { > > =A0=A0=A0=A0__le32 size;=A0=A0=A0=A0=A0=A0=A0 /* in bytes of this stru= cture */ > > =A0=A0=A0=A0__le32 control_elems;=A0=A0=A0 /* number of control elemen= ts */ =2E.. > > struct snd_soc_tplg_ucm_files { > > =A0=A0=A0=A0struct snd_soc_tplg_ctl_hdr hdr; > > =A0=A0=A0=A0__le32 size;=A0=A0=A0 /* size of struct in bytes */ > > =A0=A0=A0=A0__le32 count;=A0=A0=A0 /* UCM entries */ > > =A0=A0=A0=A0char ucms[SNDRV_CTL_ELEM_ID_NAME_MAXLEN][]; > > } > > And then expose it somewhere under sysfs after parsing topology. > Yes I had a similar idea that we could expose in sysfs information taken > from parsing the firmware (e.g. list of module UUIDs) and topology. > But it's not enough. The point is that you may use the same > topology+firmware for different platforms, only the tuning varies. I think > that's at that level that we should allow the OEMs to set a rule defining > what the platform is and what tuning should be applied. So the issue there is trying to put a list of UCM files in the kernel or topology and exposing that (which I agree doesn't seem like something that should come from the kernel), but exposing the information about what's in the loaded topology file seems reasonable. It's just more information that userspace has available to key off when deciding what it wants to do isn't it? --4Epv4kl9IRBfg3rk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBwgyoACgkQJNaLcl1U h9BUtgf+PFhXkKdu7GTbGuaBvXC+DAY8nAnYvDOfnlQKub+Sr0q+HDobWJ47wfIY QGn8MSy0nndt46FzH+wKAEJ819tDJECwM2oVWWzp32we/cY9G3MPpZYqUSAPGPK8 doj6N9rx7ZJ7GRshKp14c76jHVBk6trBqgzXyQbVoYjJJNvzqyp176nQoClDOf+j UmZzV2/XixYjrNWyHqw+r+sDGsqJxSQUPPP4/f8/Tv4C8wAZaYZRq6MYJteDGanD 8rmGvVtntPhx/G8eRkW37h9pE+CZcmJEDUqDRIuraYWxI7q2rOzuMU+sBL5+8Ja1 8Yws1g0+CaSq6u1hB7g3dA2FhM9Fuw== =t3hW -----END PGP SIGNATURE----- --4Epv4kl9IRBfg3rk--