Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp204309ybe; Thu, 12 Sep 2019 18:25:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4wCYeltfaW4apy/hfwqkRIS9uAG7lmvFO7Ad/P+YkAb7pYWe/rAXplQWrYgmPhA+P315f X-Received: by 2002:a17:907:111b:: with SMTP id qu27mr37620729ejb.10.1568337913395; Thu, 12 Sep 2019 18:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568337913; cv=none; d=google.com; s=arc-20160816; b=OWMgI8emMYkzurWHTCyhJQJbN+XJIvSLsu+cs+fEVY1QHDTNLWHskVoBdSo0UhQnZT arQsHiZa+ikvmqWWiKLTti2G92ktLCoNpFzAiYQVI4J1jH9Fq9UMa+QmuJPfZx+VDZyf wa4Nh/W/EaH8i3E3Q7ckqWIqPRbxYRv8JSRdt0xIe1w99P90er9rTnwhqfku0f6qss2N xt/mhfKWrnpDjy+aznCAoa6ozhVz3oQCL4V2EToWTTqkE+nTd9E5dTEf/6H1Gki2Nq9H qmkcP4XtowpJKzdbwb297ftDklE1JKxWRQJnJn9zuy+j3ZbDmr8J9747WIqf1MfhOJ8G Zq3g== 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=MKg9N5Ak/mqK4Z77OiWZOmXzQbsQdtgDZRsUGqX7iZY=; b=BHkqOKWpEhmRoObDHfbQ3vZAF/UjSh1CYAaQNRE0upmqnh8o4dWovBJWrzF7OyGUs2 eb9LqftCjZ08iXtQPKZJToMF3MUevdtAia8VblQ9aqlH/VJlaYNTfkl9mh0TlOUOgdu4 hOrmZhEZYaHwBKocPFR3aAFKrW3x7AuhsAp974Xl+zuEb3QRP4Nz3/+G5hwzjDRqy0S7 o647OP0dlMQaKeN8AG1fUdpxsuImgVp1XPp5IB4ZMrVr4bZj5WQkA0R8U/RpzrjPFDLA 1Fta6TWqijU+yJHAJb/wf2FjQ4FVOQQLRGWlI+PoEeivqdWGI2o0jhcrvg7sVdXxLGlc ysTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="N/9FVwqw"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35si17605176eda.415.2019.09.12.18.24.50; Thu, 12 Sep 2019 18:25:13 -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=pass header.i=@gmail.com header.s=20161025 header.b="N/9FVwqw"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728192AbfILXzq (ORCPT + 99 others); Thu, 12 Sep 2019 19:55:46 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39765 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbfILXzq (ORCPT ); Thu, 12 Sep 2019 19:55:46 -0400 Received: by mail-pf1-f193.google.com with SMTP id i1so8100509pfa.6 for ; Thu, 12 Sep 2019 16:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MKg9N5Ak/mqK4Z77OiWZOmXzQbsQdtgDZRsUGqX7iZY=; b=N/9FVwqw2HM4pjK9/KOapQ6CrsHfOWXlQZf5cbvJspNfr5YemTKwvog5nEJquW6vNB dhb8QaktoUZb+TX2cX2BqUb5r+E1dvNebQMcdWPh/J4FiNdPstJmUUdAZAD1kJgmW/Af 08haBzhalAZIsIPN29D7lBbgQjrl1RU3GRGrgJdxIgO8NdK32r7OiRK33X1bLBEwmewl /p4DtShHDsmPP7cb7nbP08iwxYdtD9Nblw29H3yAzefARKSyVftxzo39jEpvRvonGGXr bQ3TDRfX6z+Ezlf2vy3/BzFYT04GPSrPvMtEkR8C4ti0MnH3JYOzQyBeGGZ9FcbwOba6 REbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MKg9N5Ak/mqK4Z77OiWZOmXzQbsQdtgDZRsUGqX7iZY=; b=kxMGLIe2UdHcs5QDn70R2mYXVA5rMhinmNLz4gCnLW/nWhZzK+tTB2Oj3umbS/dggP 5/VbhiW5XIXsygiRabeIC/BjFkXK/cDm3IHkxS7EX125YVX+8nBnYsgpyRQXd5HuJWgu kEwkVuGr5cDwsR6kE4wmt+Oku2hx/9CwaO/Oji4/nG+CDHXO9arhHjrANVllhGbNt4KG MPvqs0YF4OZrSbN0wUwSKApq41wu78EML9prHxCD9QGFtVYysATpDYmpPyY5sfhgaM+Z HTakGK8mFEK3FpU5Fl+Q4zJIK5jXL9ZDvL7QKAiNT/rO5iGVmZSEs5c7d+kqK7ncO52c 0c/A== X-Gm-Message-State: APjAAAUYs2cP03+5erJ2Tw9Kq+QLA+ofJSjLp9gsDZ6pOEnnjWrVJOmn hKN1agU6HwUqzKlzaKJeJrY= X-Received: by 2002:aa7:8d10:: with SMTP id j16mr5842105pfe.109.1568332545774; Thu, 12 Sep 2019 16:55:45 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id 1sm24596429pff.39.2019.09.12.16.55.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Sep 2019 16:55:45 -0700 (PDT) Date: Thu, 12 Sep 2019 16:55:24 -0700 From: Nicolin Chen To: Daniel Baluta Cc: Mark Brown , Linux-ALSA , Timur Tabi , Xiubo Li , Daniel Baluta , "S.j. Wang" , Linux Kernel Mailing List , NXP Linux Team , Viorel Suman , Fabio Estevam Subject: Re: [alsa-devel] [PATCH] ASoC: fsl_sai: Implement set_bclk_ratio Message-ID: <20190912235523.GG24937@Asurada-Nvidia.nvidia.com> References: <20190830215910.31590-1-daniel.baluta@nxp.com> <20190906012938.GB17926@Asurada-Nvidia.nvidia.com> <20190911110017.GA2036@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 11, 2019 at 04:06:41PM +0300, Daniel Baluta wrote: > On Wed, Sep 11, 2019 at 2:01 PM Mark Brown wrote: > > > > 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. > > Yes, exactly. We wanted to have a better control of bclk freq. > Sorry for the late answer, I'm traveling. I see. Thanks for the explain. Just acked.