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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26A43C433EF for ; Tue, 7 Dec 2021 13:08:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236868AbhLGNMO (ORCPT ); Tue, 7 Dec 2021 08:12:14 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:45188 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236857AbhLGNML (ORCPT ); Tue, 7 Dec 2021 08:12:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C6964B81757 for ; Tue, 7 Dec 2021 13:08:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F560C341C3; Tue, 7 Dec 2021 13:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638882519; bh=F/fKPrZyU0Us2AwQLVOm7PVNFqhIL/DCq08fX5U079g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mgyETY26JMkK2rPd3KETqwzJtFKtha6lCdv/3XD+UUxn68MNPLNW0eSTdwqsYLWsm Ht/YdrHOq18UH3RrM5jpknDUONfXqE+sADTEnxBZBwU27dfWo5tU9nfFEKc8tL4He1 exEXNWYB2/W00ospNAsc73LGuQIBdlFiije08TCQfgOFgUtsBWCb9dd6xjpCbHUGcv uI54WfuWEncPP49g1baY2ot0KQ+o+VKLOpJN1hWWrZtxXQ+LOuAj5tq334PdgtYEpf TLNGFK1ML6Yaftdp1pxbb4OyjmWlwl9ZqiKtu9O3JfqaIBnRPGlHhQKqIKJUZybZI9 IkF3S1nm+K7CQ== Date: Tue, 7 Dec 2021 13:08:33 +0000 From: Mark Brown To: =?iso-8859-1?Q?K=F6ry?= Maincent Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, alexandre.belloni@bootlin.com, thomas.petazzoni@bootlin.com, Liam Girdwood , Jaroslav Kysela , Takashi Iwai Subject: Re: [PATCH] ASoC: soc-core: add the driver component name to the component struc Message-ID: References: <20211206095920.40552-1-kory.maincent@bootlin.com> <20211207094732.3be5befb@kmaincent-XPS-13-7390> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5MYbYLXEWzFbrHqI" Content-Disposition: inline In-Reply-To: <20211207094732.3be5befb@kmaincent-XPS-13-7390> X-Cookie: Only God can make random selections. Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5MYbYLXEWzFbrHqI Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 07, 2021 at 09:47:32AM +0100, K=F6ry Maincent wrote: > Mark Brown wrote: > > Why is one device registering multiple components in the first place? > Because the sound components are more and more complex. Why they shouldn'= t? In what way are they more complex? =20 > It seems to be already the case: > sound/soc/codecs/cros_ec_codec.c > sound/soc/fsl/fsl_easrc.c > sound/soc/mediatek/mt*/mt*-afe-pcm.c > sound/soc/sunxi/sun4i-codec.c > sound/soc/soc-utils.c Quite a few (I think all?) of these are quite old and and are the result of refactoring from pre-component code rather than modern drivers, it's likely there is no concrete reason for them to behave as they do. --5MYbYLXEWzFbrHqI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmGvXNAACgkQJNaLcl1U h9D1vwf/WQeUnLt47+xN/hYRPXv4uwS7J4Sxig4UAKgRuuEvgicbcorrZGgO0ag9 fxRHkkGPKGBySIntd+S5lAjVY3WPDNa474hMJgI2rfqshgRCAQ77GG85QbW/XZ85 foGcx5vkTDGi/NW6unO2sFWkBjtYIkzdlJpPYZMOJeRlsFqeOyrGmnAsQKQQ4uzQ i8VKky9LpEmMmbW+POVuV0jQ1Uvz3Zkk5MTwTDDauMsdCT+FzpWQu+oWjRqhePG2 RPfhWbGYhiDJmUIz07Mk+jVfUM7N6in1CNgZO7HmxfZnObR5QDfiM7mRkILkyQ5J sO8bZoaOotmrfE13OkQQPxMonOJAww== =arkY -----END PGP SIGNATURE----- --5MYbYLXEWzFbrHqI-- 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 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 3CABAC433EF for ; Tue, 7 Dec 2021 13:09:46 +0000 (UTC) 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 714E423C6; Tue, 7 Dec 2021 14:08:54 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 714E423C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1638882584; bh=F/fKPrZyU0Us2AwQLVOm7PVNFqhIL/DCq08fX5U079g=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=dpd4cbhOoxHZxGrFImdgha2GHAsnItZFPuKDEKLzL4Px99x8cZhd1ZrQR+jUXl5a5 ovQRrmuEsp/0+LXPHeJ2EZ/Rq8p4dtuNIC4693EOSUw6+/AspGkXm87Djh1JqZJXYW v5yqXbOw5/zVxZ5T6H1AFYVACIZFF0QLTHfzsXVE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0E040F80253; Tue, 7 Dec 2021 14:08:54 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D2086F8028D; Tue, 7 Dec 2021 14:08:52 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D8D85F80253 for ; Tue, 7 Dec 2021 14:08:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D8D85F80253 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mgyETY26" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E18D4B817A2; Tue, 7 Dec 2021 13:08:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F560C341C3; Tue, 7 Dec 2021 13:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638882519; bh=F/fKPrZyU0Us2AwQLVOm7PVNFqhIL/DCq08fX5U079g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mgyETY26JMkK2rPd3KETqwzJtFKtha6lCdv/3XD+UUxn68MNPLNW0eSTdwqsYLWsm Ht/YdrHOq18UH3RrM5jpknDUONfXqE+sADTEnxBZBwU27dfWo5tU9nfFEKc8tL4He1 exEXNWYB2/W00ospNAsc73LGuQIBdlFiije08TCQfgOFgUtsBWCb9dd6xjpCbHUGcv uI54WfuWEncPP49g1baY2ot0KQ+o+VKLOpJN1hWWrZtxXQ+LOuAj5tq334PdgtYEpf TLNGFK1ML6Yaftdp1pxbb4OyjmWlwl9ZqiKtu9O3JfqaIBnRPGlHhQKqIKJUZybZI9 IkF3S1nm+K7CQ== Date: Tue, 7 Dec 2021 13:08:33 +0000 From: Mark Brown To: =?iso-8859-1?Q?K=F6ry?= Maincent Subject: Re: [PATCH] ASoC: soc-core: add the driver component name to the component struc Message-ID: References: <20211206095920.40552-1-kory.maincent@bootlin.com> <20211207094732.3be5befb@kmaincent-XPS-13-7390> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5MYbYLXEWzFbrHqI" Content-Disposition: inline In-Reply-To: <20211207094732.3be5befb@kmaincent-XPS-13-7390> X-Cookie: Only God can make random selections. Cc: alsa-devel@alsa-project.org, alexandre.belloni@bootlin.com, Liam Girdwood , Takashi Iwai , linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.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" --5MYbYLXEWzFbrHqI Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 07, 2021 at 09:47:32AM +0100, K=F6ry Maincent wrote: > Mark Brown wrote: > > Why is one device registering multiple components in the first place? > Because the sound components are more and more complex. Why they shouldn'= t? In what way are they more complex? =20 > It seems to be already the case: > sound/soc/codecs/cros_ec_codec.c > sound/soc/fsl/fsl_easrc.c > sound/soc/mediatek/mt*/mt*-afe-pcm.c > sound/soc/sunxi/sun4i-codec.c > sound/soc/soc-utils.c Quite a few (I think all?) of these are quite old and and are the result of refactoring from pre-component code rather than modern drivers, it's likely there is no concrete reason for them to behave as they do. --5MYbYLXEWzFbrHqI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmGvXNAACgkQJNaLcl1U h9D1vwf/WQeUnLt47+xN/hYRPXv4uwS7J4Sxig4UAKgRuuEvgicbcorrZGgO0ag9 fxRHkkGPKGBySIntd+S5lAjVY3WPDNa474hMJgI2rfqshgRCAQ77GG85QbW/XZ85 foGcx5vkTDGi/NW6unO2sFWkBjtYIkzdlJpPYZMOJeRlsFqeOyrGmnAsQKQQ4uzQ i8VKky9LpEmMmbW+POVuV0jQ1Uvz3Zkk5MTwTDDauMsdCT+FzpWQu+oWjRqhePG2 RPfhWbGYhiDJmUIz07Mk+jVfUM7N6in1CNgZO7HmxfZnObR5QDfiM7mRkILkyQ5J sO8bZoaOotmrfE13OkQQPxMonOJAww== =arkY -----END PGP SIGNATURE----- --5MYbYLXEWzFbrHqI--