Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5906374rdb; Thu, 14 Dec 2023 03:11:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2aQrjEWwsBv/tyv6A5oFD7P487uiqnlLVhGrLxNVEyifFdqLhg80/qPPS/yrjcQkKY8Vz X-Received: by 2002:a17:903:32c5:b0:1d3:6419:ca60 with SMTP id i5-20020a17090332c500b001d36419ca60mr1370972plr.92.1702552304831; Thu, 14 Dec 2023 03:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702552304; cv=none; d=google.com; s=arc-20160816; b=rpQNSnhjJZW9YdSCpDqnf/Zce7cnPX+fG4aPdmZ6kvluMRdTaTM6CLEKHi+uY+8+P4 1M3Ge9jhk5Nk/MPYzJz8UwiGNkbcER8d6HDtMHJtZtGvX4vOrTRDZtSOhPkaV5iIq9UU wi8LbM2BdLRjLQ01dR0aWq3+LoV49tlqQlvpoHT9BRSd22wWBNBlfEIr2nDvWfHFf6uR dO6yBXUkKC+fVReNNtQ3vQK/PJ9JNx+BeNE2TQle1PezQCZGH4X7sme78pjjnu06jfrA U6seCZKIFcIhua722vBpKQIXA09kM32PpmKGGxS73lDAXr+fxCFzFIHw6ZWLZDk4qAWs J0Vg== 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=nzlr9GeJV9/ovLs+zKXmzlu+FnyNQnNb/3TBpVsmiV0=; fh=c2UonIpSz+RNBs3gYdcXq1IHE0DuAq1U9F+gdIzkFK8=; b=p8GMma7BCtN/HfZTqtTJWXhKcogi694hyfxDvQD4OkbsR3DxfXQrqv4w0k0NNMk5xJ SXU0TSsDqCF1lVFB4wkms5S1XH4rA5FvCTYOlT3nWrRMXLaadzviQboUydBiKkP1REI9 yQPiv2t3mCDKDiFynkShMzB015/8i9srrKEM+VXZDE393pt14wl82CO7kJXaqSbaRaR1 Vta0QFKvaMFL4SQD4C9xZxWpayaWM2XTwIU6cVvxtLlTwOuzQBAEUEx+qmvTvtjSRZmp VN3ZeoeDgHbyVI3dmThc4QLh6GNwmwoVKZvrLgCjFxL5RVOCyCwe8e6affTJI8E8N/L8 LHZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cCNuWUbz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n3-20020a170902e54300b001d005539ab3si11531401plf.360.2023.12.14.03.11.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:11:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cCNuWUbz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 0C90A8106790; Thu, 14 Dec 2023 03:11:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443946AbjLNLLI (ORCPT + 99 others); Thu, 14 Dec 2023 06:11:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443857AbjLNLLG (ORCPT ); Thu, 14 Dec 2023 06:11:06 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 265F2B7 for ; Thu, 14 Dec 2023 03:11:13 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A62FC433C7; Thu, 14 Dec 2023 11:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702552272; bh=tSqtRyvgEQ0GCuf1DdZJacTJr0JiylSUmZyHxqPK9OI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cCNuWUbzFvztyPbxIPZYloc3r2gvIGR44ZX/PAhyUzpsmaGnjfVBeXjODksVQkrRv rJ/Fzh7Eq8MOLQm4BiJCnhEFzio5AMHGKVo0RC5Z/J1c5sTyEw9N/zHJpo//kjmBas 769lb6R6o5NjA0e7soNvl7yKKYl+CuiCTRe6RcQcCZ0Jjdjyys5t0TcCjU5Y+gSN03 0vjqS9t9E3gECuBpRZ1ivXEE180z0qnDCTsZIYVtH4dBGX7WiLwJ4yCN+OZ7Wx4Tan QhydMSyC3NzfjdQMBgQVS6YcMD0QQf/2HQu/yGgkwhTTMR8ijYGFU+3tj2v8nsHzt/ edNavnPrdwnWQ== Date: Thu, 14 Dec 2023 11:11:06 +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: <7b13b8b6-9048-48a3-b1a1-e62de88e8171@sirena.org.uk> References: <20231213123556.20469-1-lujianhua000@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pWlLgRFGMMJxpNhu" Content-Disposition: inline In-Reply-To: <20231213123556.20469-1-lujianhua000@gmail.com> 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:11:42 -0800 (PST) --pWlLgRFGMMJxpNhu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 13, 2023 at 08:35:53PM +0800, Jianhua Lu wrote: > Add qcom TDM setup function to support TDM ports for qcom platform. > +int qcom_snd_tdm_hw_params(struct snd_pcm_substream *substream, > + struct snd_pcm_hw_params *params) > +{ ... > + ret = snd_soc_dai_set_tdm_slot(cpu_dai, tx_mask, rx_mask, slots, slot_width); > + if (ret < 0) { 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(). --pWlLgRFGMMJxpNhu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmV64skACgkQJNaLcl1U h9C9BAf9E/yW6RaCxOVG4VbZ+wP9jHD/RCqjvzrJAain8Y2xlAPZE7PaTuVOBmRh 276IS1kDHcPSzRkXkhKFm1KGpr9nOYR1wGrk9Fku5RQQbOwSjvlpOUSwgd5GpUMf 8PT/7ejXSbJKG0vQZc5hsnbwrPGZdn8X381WXdnexczXxna0Vx/fv1wbkPx4OlA5 Xv2LFN3bTEQDmczWtbGo+64Qe/OnJOudRmn/XWjTjjTY7ztP2M4rDpYN/Bd+fyq5 VCWAFEaXIFlgGti7V3UvDBV86hs3GOWHnDHuapeAxahhWEp1U/JU8/okkRsFy+kK grHgwa1sQD7a7t9jN8Qc4OpT++24iA== =krXQ -----END PGP SIGNATURE----- --pWlLgRFGMMJxpNhu--