Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp741662ybe; Wed, 11 Sep 2019 04:05:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz+umvoWK+c/PbqrTqb/PSSnpqPbkiXnGQ6rUK/sIIh2M28hvPUEJ86lbAn7AGTl9/hYhY X-Received: by 2002:aa7:d59a:: with SMTP id r26mr35882345edq.137.1568199920467; Wed, 11 Sep 2019 04:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568199920; cv=none; d=google.com; s=arc-20160816; b=BuCs7Cn0AC0NuTsrVzOXKB2laJL5xAof0o2eR+PSQCHGf0evCXsBouKhPQ/hFaNqCm we36k/iZIjh6f13zbvcPD4ckYaRR29kx4tS849DQoduVbQKzVO4AxXchMqWR6ibqkkQw eS8pUxqAD3v0hDJFlIpEJ+EuioR/4S18LtXuCAwYZFt3Yc4JJo1gg3SYakqJKlU1EXux y7o4bK43HZ85d56LU0BRpDN7NjkK/MHAbMuy9kdR1gHv9pjdx1Bp3HR2cin6sOTzzO00 P9d13ogUbhgoGjrG3GRObsxarREHCdKCmx+Wkdis+hclXo0Bchq9onynWYEkfzvtiUw7 bHZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TZQLypzWeA/ilSOYe3wzlLd06xCmw+pwR+Ix533idW0=; b=I4ccopHiRJ/Qn49r0l4bqHlUFVfYH/6Kc6YKoR+mRT87slhMiLO5HYIcqCucfbDVlr mhH0sCoLgWLh0BIHm8id7He0k0Wdngs4+mYClWC6jvlKt6JKFwCtix6wTzAaoIfwtdGI oPZK2WHCvftOWksr7dOx2t5voddW2LvUnGwU0xyRGCwLCYgwFacqskaV9bwZKA6XIqCb NYgKzCGSwPDaUumWIizabTt9lKNOzbWOakl2EgEnkm/3UJUycwarsbXWRgv708C0fMv5 I6MwtZDBINXLOI7ugFFAqCXVkwfQ1YB9SQQnKGx/vOPekyfRdBuWQBQMCg1iZnDcQs+G NHFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=V0gdhRqs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qq6si10554479ejb.209.2019.09.11.04.04.56; Wed, 11 Sep 2019 04:05:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=V0gdhRqs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727724AbfIKLAY (ORCPT + 99 others); Wed, 11 Sep 2019 07:00:24 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:45160 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726724AbfIKLAY (ORCPT ); Wed, 11 Sep 2019 07:00:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TZQLypzWeA/ilSOYe3wzlLd06xCmw+pwR+Ix533idW0=; b=V0gdhRqskzcdurAO9eFX3mVdj h2iVFeEf05IwfJEsafqzFNUOrrkpE5snp9+fnI1usUcQ7ecZjcI8OYv5QCq1z0C8RD1QjwS9KlR/e PdI8or5Z/dRsphnfoAcrRFWBiPpegfvqpogoO2DUePEcrUv6Eyu/fbTELFjNC+9eLSbAQ=; Received: from [148.69.85.38] (helo=fitzroy.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i80ME-0008NR-3j; Wed, 11 Sep 2019 11:00:18 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id 6FE80D00451; Wed, 11 Sep 2019 12:00:17 +0100 (BST) Date: Wed, 11 Sep 2019 12:00:17 +0100 From: Mark Brown To: Nicolin Chen Cc: Daniel Baluta , festevam@gmail.com, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, timur@kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Viorel Suman , NXP Linux Team Subject: Re: [PATCH] ASoC: fsl_sai: Implement set_bclk_ratio Message-ID: <20190911110017.GA2036@sirena.org.uk> References: <20190830215910.31590-1-daniel.baluta@nxp.com> <20190906012938.GB17926@Asurada-Nvidia.nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1ar0NSVY9gjTGNA2" Content-Disposition: inline In-Reply-To: <20190906012938.GB17926@Asurada-Nvidia.nvidia.com> X-Cookie: Be careful! UGLY strikes 9 out of 10! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1ar0NSVY9gjTGNA2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 05, 2019 at 06:29:39PM -0700, Nicolin Chen wrote: > On Sat, Aug 31, 2019 at 12:59:10AM +0300, Daniel Baluta wrote: > > This is to allow machine drivers to set a certain bitclk rate > > which might not be exactly rate * frame size. > Just a quick thought of mine: slot_width and slots could be > set via set_dai_tdm_slot() actually, while set_bclk_ratio() > would override that one with your change. I'm not sure which > one could be more important...so would you mind elaborating > your use case? The reason we have both operations is partly that some hardware can configure the ratio but not do TDM and partly that setting TDM slots forces us to configure the slot size depending on the current stream configuration while just setting the ratio means we can just fix the configuration once. I'd say it's just a user error to try to do both simultaneously. --1ar0NSVY9gjTGNA2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1408AACgkQJNaLcl1U h9DPtAf7BDckq3blE9Yvy2E6HPiI+Pp9nt1hQ9NDgfX9Mypn7Vp6rfruIjCr5kKK Pk3fQYVDLvUt0LjscDDDibjxgRnk+mPUcSc0/i9KLuS+AGpIyo+RJP2xnzG+KLox dgzhk6Ti0RzhqxUcv8tamcsRApdEN+rHOFm7zE8NxJR13AEGR5/BIbJnixGDDZtA GfmZPcxreMijqLu43Gt5EURM7b1tyKW7usyuYsD9K7tn71E2OuBUJJQhWTWKBiDS vC+6KmzfUqPuJNH2tO/Wq7ZWZ4ho7+1F+nTmk0s6h1YJI6Qz6jWEmU2MCSgyioTi X+G5eL6O9bY8OC2mL/IxNrE0j8wbIw== =fLXK -----END PGP SIGNATURE----- --1ar0NSVY9gjTGNA2--