Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6083251rdb; Thu, 14 Dec 2023 07:57:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFR8NnhBuUPIG9zvj2c5MWoscqP1Z4szwuVKwMwN/b5tzmudr9LOXKtdJl7eb4wYYtBHQE2 X-Received: by 2002:a17:903:1245:b0:1d0:cbef:2efe with SMTP id u5-20020a170903124500b001d0cbef2efemr10743717plh.102.1702569431903; Thu, 14 Dec 2023 07:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702569431; cv=none; d=google.com; s=arc-20160816; b=wA7mUJ3cDyq6+H/Gj5FHezGwN+pbxgMjiSZd4UFsGMwUoZJQgH3E6X7AzuX6V6n2Ma dH1dcL2lJKpxjBXZFAOo+T0sjP6qT6i3flV/+crPDabqZPeH6/EzsV0xfcEgQjfAPU2r SVWttsr0TiqNvcJpu/AOz+Yw2+W4EGhlCXdcMxrXTy57vgyS31skyd4JqyEEiTGix2mE umvMQNBnkLMv+f8s6WJYiDx8RoIlo8Xg1v3ozV+OrKSufAWpfgRo0TZyQ8GIy2Jg9eEV NlRiy9PvK1xwCnVKXSqV3Ni4jjld7Hi9Z3nSOHfVxzkf2UVtxfldVBndRzVaHx9FAhkj pUFQ== 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=pqmNzuoq/XfSAaVNaKo9zV3MuUc0LgM2WsAnycqnX/0=; fh=c2UonIpSz+RNBs3gYdcXq1IHE0DuAq1U9F+gdIzkFK8=; b=F+oj/ZbxZ+Gctlx0qQL7GCxeQfGncwNenGw2mCtUZn5FS756TSij4mjKp9MEYfbAug HG24aSpW/X/7o90Tm8aqRN09TPOkVP4s9818ZdvRWQOXjJQ6lDQUd2pjZc70dk3zZg/p tx7b8vmK1ZemHR6sfBwI/iKZ37QGUSVHFQpvxE6wrM5ma8DHKQTios2B0cPiokhNn64O Xp3pJEC0eiP8VuoGup8gAE0x9efmBmCONbIQoJyaEtdaGhmzA3RMHNNZ0m1TjB1V2+W3 wE4ZQ9BH7TYJiu1OJas4fehYrimFv8pWvNq6A5Qm7U3TIUsm2FvEJQTZUWAFgx/r9KJC QO2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uUlL/8ZQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u18-20020a170903125200b001d0c6fd313fsi5609654plh.157.2023.12.14.07.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 07:57:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uUlL/8ZQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EF41C825F1EA; Thu, 14 Dec 2023 07:57:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573919AbjLNP4x (ORCPT + 99 others); Thu, 14 Dec 2023 10:56:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbjLNP4v (ORCPT ); Thu, 14 Dec 2023 10:56:51 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1DCB11B for ; Thu, 14 Dec 2023 07:56:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F0A9C433C9; Thu, 14 Dec 2023 15:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702569417; bh=Irc7j9mhIhkTjruf9MUgxUtXcKks1NoDo+o05Js0JRk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uUlL/8ZQUpL92Yu4EDmQpLzUoufYW86sQ3eOU73LLU8e28ku06Q4eF+k9hlUGo/KI GqrdLjWcVF10n3U1YeYk5OWaGYhLZbmu7dyjYcVByBqqORc1mGbqDwcUI4jFNQ/aCC /+gcVYj9QYgUtUlXwcw2UoGsZ/EYNnHjHMJ/JB+ULpbO+C+leNpMRupyotFSP/RtnG Ie3PP2656wTWQ8QMdd67GW0Hsr/o1tuMLIyFeeRQ+fN0sTBVOH0FDFwKd0URD/orrX upTcn8XOKpxSU52fqQvJeUEJvWVt/r7ONfRf/hKfUDVew4KZj+7EBIxTbFUtUDTF8n ayblJLEV8ja9g== Date: Thu, 14 Dec 2023 15:56:52 +0000 From: Mark Brown To: Jianhua Lu Cc: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/4] ASoC: qcom: common: Add qcom_snd_tdm_hw_params function Message-ID: References: <20231213123556.20469-1-lujianhua000@gmail.com> <7b13b8b6-9048-48a3-b1a1-e62de88e8171@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3QwHa6JjLmRb9NBb" Content-Disposition: inline In-Reply-To: X-Cookie: Preserve the old, but know the new. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 07:57:08 -0800 (PST) --3QwHa6JjLmRb9NBb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 14, 2023 at 11:51:50PM +0800, Jianhua Lu wrote: > On Thu, Dec 14, 2023 at 11:11:06AM +0000, Mark Brown wrote: > > The expectation is that TDM is set up by the machine driver, not from > > hw_params - if the TDM setup can be changed from within hw_params then > > it's hard to see how it's going to interact well with other TDM users on > > the bus. More usually hw_params() would be influenced by the setup done > > in set_tdm_slot(). > Currently, qcom TDM setup need to read hw_params, if we want to move it > to machine driver, we must hardcode some params, but it will reduce reduce > readability. What makes you say that TDM setup needs to read hw_params? --3QwHa6JjLmRb9NBb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEyBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmV7JcMACgkQJNaLcl1U h9CY+gf3YsZTfcu/vz6WuiAEAFNcmWZVpApi5hN7KrHcB7qQWGfbWcivQWhFfiFc 2HsD9BS9nkFG8HWmHz2DKgZltPNOIIVLnaHLBS6IaFqXCqDkWdDDpVmYTBCcIsSV Ls8IlGaVn9ddGf//+9sCcG1yIVnEj2NXqCHSM6EcDwNRy+kvGz9UG8pKYd2clgMv eVraA+qIr2R0jePWFgGuYGwrmy2O6/u0LHkjCnbUABHA2g8hGRvbv/Rv6IW1zKbb D013IGVbR1TkUWGlVU5b6AOS6DLlHMwIYwqaa5Gw1EQ/Q0S2J5N5105UGICxqVBA p1yWhSlzFo3Tjs7PQxsTZV3DHmFx =WcEt -----END PGP SIGNATURE----- --3QwHa6JjLmRb9NBb--