Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22142215rwd; Fri, 30 Jun 2023 04:35:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HmX5evlMkX/7wXe6kIRi7PetT3vKkGmyTDdZXn5WV8zNGgwpUxt/0OdWs/BRCvF2J9AID X-Received: by 2002:a05:6808:d4e:b0:3a3:7e8d:b0b with SMTP id w14-20020a0568080d4e00b003a37e8d0b0bmr2819026oik.22.1688124921307; Fri, 30 Jun 2023 04:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688124921; cv=none; d=google.com; s=arc-20160816; b=iozgep0ORbiba3R73IBj8yqeGyRVpODcBLT0u7kcANW5N6Evy02CtbFn0QEOTbtsGX kz85+/CpgaQ8L5EBHXoLBiw9lDgm3z6rfX0+yMVm4YZJ+FRGJogxuS96wVGOuUbdEyMU b759AL7eY1aPqsMXt4G7KNj0+amaBArHU5mvvEoZtgLMiETwi53FT+fV1e8/jSFbi8tQ vGmS/w1TOUauiS7+F4z4fmO4UlATDaUissHWpufTmrCn7tkdmHswDQDhaNuTzmp45K6X MvcI5ara4OSK/8mW4buAJC+dt9Jk/tL7UHzdnQb8Yulp6Ay6shWtvF7+A4QtfuXhkMUZ rE4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i7FSmvSvwJYBWIJXMvoWOrBb59+8q6TkQ1skRfExBxU=; fh=+KpSDffK75Y4QP/wNI2i2cto9xbC/b3VU7+8HqbwGEA=; b=gLpzZds8zAINkRdKzADKTykV+DOdElu13uH/4CowubjyJc+X+saio+/TCFn3HaN3qz 1h+p6vUAWMP5f5p7q18VUec2bTB5unF6dfBO9rFXe1G0E3/+d90tgz0z8KFjodb1Dsi8 Q23y2pbnpsn9Wt2SY5RwuA5O2y9SyTu4mRh0a1TZ3+KPPphLtX5dHSS0JvI9sCpU+ZP9 59Iy9SyYPaKt086N0ZJx8YizsSh84SZX/dTZ6TN2+DLKAlSsfR7fgX7bLk+D3LpEA06S YaS7RRfz3Yzg+1P+ArVgAlDdIBniY3mFVlDBUcKwo4aRjsbmLv/XC4V0WjtQAkS5BRZV knfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BpnOTSrY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020aa79803000000b00682399fa4f9si2073935pfl.300.2023.06.30.04.35.06; Fri, 30 Jun 2023 04:35:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BpnOTSrY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232725AbjF3LC2 (ORCPT + 99 others); Fri, 30 Jun 2023 07:02:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232638AbjF3LBr (ORCPT ); Fri, 30 Jun 2023 07:01:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB1363AB8 for ; Fri, 30 Jun 2023 04:01:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 793956169F for ; Fri, 30 Jun 2023 11:00:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81FCCC433C0; Fri, 30 Jun 2023 11:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688122820; bh=sgtH9hZqBaNjjeUXFQwQG7JJgk9ed7LANci46Hsnjv8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BpnOTSrYx+DAq9f8wxupbHlc6hHlI5W/9pFyY7K3yYn+4bgqePy5/dCjlhj10PjA6 VfwzZ6WRubSZqZcsDSBkjK5vxksaPm9g26oU7tajQ6QBVI7XOGoj2v7B7Lc1v+Fx6Q 0UJCjjoz56Ktq9o4o1RhkGWcZQz77nnlJi/RhqVoH7oA5x6NhSl8qGZyGzzHUOLyHD z2J8b8H3sM4l6zvt/6ac/wfu8SB1u50bWzZM55n4D7aculbKRhy+TATdiukI/e6e5t hCfVz6zPXsMMeFFfZi7DNdxcdh8Un2BXql75/jkImY5tzcUrYrSXDf5hPDZGerD5KA csJfXMpzXQfRQ== Date: Fri, 30 Jun 2023 12:00:13 +0100 From: Mark Brown To: Trevor Wu =?utf-8?B?KOWQs+aWh+iJryk=?= Cc: "linux-mediatek@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "tiwai@suse.com" , "lgirdwood@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "matthias.bgg@gmail.com" , "perex@perex.cz" , "alsa-devel@alsa-project.org" , "angelogioacchino.delregno@collabora.com" Subject: Re: [PATCH] ASoC: mediatek: mt8188: add constraints for PCM Message-ID: <6cda3265-7444-46a1-8b2e-75706a839670@sirena.org.uk> References: <20230629075910.21982-1-trevor.wu@mediatek.com> <5995e77b-ea8e-4e88-8ca2-f716df9c9579@sirena.org.uk> <0e8b5ca298a01b16da0419928a30af6371e923ca.camel@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pXwnTTZI7oC5iMkQ" Content-Disposition: inline In-Reply-To: <0e8b5ca298a01b16da0419928a30af6371e923ca.camel@mediatek.com> X-Cookie: Old mail has arrived. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pXwnTTZI7oC5iMkQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 30, 2023 at 05:29:23AM +0000, Trevor Wu (=E5=90=B3=E6=96=87=E8= =89=AF) wrote: > On Thu, 2023-06-29 at 16:06 +0100, Mark Brown wrote: > > This commit message isn't entirely clear. The effect of the commit > > is > > to restrict the configurations supported when using a nau8825 but > > it's > > not clear what a nau8825 has to do with this or why we're doing this > > in > > general. What exactly do you mean when saying that "only a limited > > number of parameters are necessary" and what makes this the case? > For instance, some userspace frameworks only support specific sampling > rates such as 48kHz on Chromebook, making other parameters unnecessary. > By restricting the configuration, unexpected usage can be prevented and > the alsa_conformance_test process which checks all parameters provided > by an ALSA driver can be sped up. That's a userspace policy decision, we shouldn't be enforcing this in the kernel - even for Chromebooks people can install other OSs on them which may make different decisions, and it's always possible that the ChromeOS people might change their mind later. If they're only interested in testing 48kHz and it's slowing things down unreasonably to test more then they should just only test 48kHz rather than changing the driver to work around it. > Would it be more beneficial to establish the criteria as a general rule > for this machine driver, while limiting the use of the machine driver > solely to the Chromebook project? Or do you just suggest that I add > more details in the commit messages? I think we just shouldn't do this, it's policy for ChromeOS rather than something that's actually needed. If we were doing this it would need a much clearer commit message and we should be restricting things to Chromebooks only. --pXwnTTZI7oC5iMkQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSetbwACgkQJNaLcl1U h9AkJQf/ahowvDnHs1ls1VrPs0VUmHp+BdUcwvobHhunvly76Nxkzn5NlOL4bhlK ZTJYLgJuqYRagPBQWDP1vpBU64KEKPaXaFOZ9f69/Cg8xsEtw+9B0sgJzhfD9eES FaMo9A/kdwgIzDEl1Blr/OS34ksno/bQMSJ2PzxDZ4OZUqvCSkVdh5iey/4Gd8EI aRRU/b1LyHjhkMC2DrjPKTlYcBtg3t84b3+Q4SGWF7RLi49nkxGl0TC/SAq56pF0 WU+u0JkSsVxucQJ0pFHSl7OX1KohuaAVDB+c4tPE7dNFnluU8LjeKBJEXPvQlpo/ OcVDr55IMaZ99d1mty+MfTgJUh6Haw== =AxtQ -----END PGP SIGNATURE----- --pXwnTTZI7oC5iMkQ--