Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3476558pxj; Mon, 7 Jun 2021 11:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBMQsyDeHD/Oa8xGhYTRmdZDKAooKQtNuKIuodVuGCUlDgwGj1cCnOYcJu+UALNpVJYL2D X-Received: by 2002:aa7:c818:: with SMTP id a24mr14764864edt.53.1623090854877; Mon, 07 Jun 2021 11:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623090854; cv=none; d=google.com; s=arc-20160816; b=Vqgz7EItxJ/k9TVpGuO8yx+SW3GZsvAc81Pl1Wio3kPXpcJhMvEs1J06m97YChWTZH rTVtgoNxLbM/+/EaINmbeCRSn07j54AJu7+gXmgSSK47MNQmVw3R9izHpBHoKPzFcdLO cCysfbk+Yrm2qtVO3t5pi+gBYhjjCKzWo6GVa9D6HFaEa3HLKB+f20eeOnUuZjGukpA4 fOzU64jqvZoc+STwho0xoXCFzlWbq7zf3/TyNJvXdGR5xWsU9ftcARus2Rvnfh0KwD4l ZwYni0hprG6yMsMh9X29NX80PVuI7XDQ4eaKPxYyapIfdvFpzmGE7PKXWIKiZoBnfUaO 9LKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=yKcKkeiMhd50dfHoPWqci0mWqeqTRos7i/xU6VlwGxY=; b=AEzcUabvP4SPxYY75EWxVb1//2G+lanoWKia/AfnMKZu7Zc3dmlxRzo7HkWFiKE9de z4etMPqsj+Rw4iF615spVE2bKKnK0po2TLtMah1Qd9WiiJRMywHmR8twqboneezh0XkL s0b1j+LY252laa1jjnUIAkyLn3Pfxa1Pf0YxFcfCGMKfCJt7CElQrfIcb26U0D4y4uzU ceKTUbI4dXzGACWMS6WCdjSp8D7arAOTR/LxDuxEgwwZm6/Tsqy/YjbF+UdVpZuGjHYv fhq40b70hT0K5Yw7mN3R2hfO/qajVABRGhqISQTah6U2rZrbQ9bfc/fQBfty16wJtUab Tvhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si1352627edw.429.2021.06.07.11.33.51; Mon, 07 Jun 2021 11:34:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230385AbhFGSek (ORCPT + 99 others); Mon, 7 Jun 2021 14:34:40 -0400 Received: from mga04.intel.com ([192.55.52.120]:16994 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbhFGSek (ORCPT ); Mon, 7 Jun 2021 14:34:40 -0400 IronPort-SDR: WqmQKrKM9Ymsgp+O5W66LhrlQPkXDiSdduksF2hqg/ePcjTGV4jiCzJ4yf/5uQzH866aIQV9FB Tlv8jfgXNoUA== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="202820972" X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="202820972" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 11:32:48 -0700 IronPort-SDR: hEZZQyqiJNNcgEl8G32to+qOaYgO6xuSYnKHeqp+pMk/0Q4uq1MkZuWkewh+e6OKbXz4HSPqu8 i9roS/djGXHg== X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="447585633" Received: from dsanc15x-mobl3.amr.corp.intel.com (HELO [10.251.138.253]) ([10.251.138.253]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 11:32:46 -0700 Subject: Re: [PATCH 3/4] ASoC: intel: sof_cs42l42: add support for jsl_cs4242_mx98360a To: "Lu, Brent" , "alsa-devel@alsa-project.org" Cc: "Nujella, Sathyanarayana" , Guennadi Liakhovetski , "Rojewski, Cezary" , "R, Dharageswari" , Kuninori Morimoto , Kai Vehmanen , Jie Yang , "linux-kernel@vger.kernel.org" , Takashi Iwai , Liam Girdwood , Tzung-Bi Shih , Mark Brown , Ranjani Sridharan , "M, Naveen" , "Wang, Rander" , Bard Liao , Fred Oh , "Gopal, Vamshi Krishna" , "Zhi, Yong" References: <20210606004102.26190-1-brent.lu@intel.com> <20210606004102.26190-4-brent.lu@intel.com> <505c7e46-316c-9fa1-feaa-115f4561ed19@linux.intel.com> From: Pierre-Louis Bossart Message-ID: Date: Mon, 7 Jun 2021 13:32:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/7/21 11:28 AM, Lu, Brent wrote: >>>> >>>> This also looks like we have two topologies configuring the same DAIs >>>> differently on different platforms. >>>> >>>> Why can't we pick one configuration that would work in all cases? >>>> >>> >>> The comment just say we are reusing rt5685's sof-jsl-rt5682-mx98360a.tplg. >>> This patch does not care about the dai sequence. Maybe I should reword >>> the commit log. >> >> I was referring to the bclk frequency, one case uses 2.4 and the other >> 3.072MHz. > > The 2.4MHz setting isn't ready when we enabled this codec so we selected > 3.072MHz. Since we are updating topology for PLL issue soon, we can change > bclk frequency to 2.4MHz as well. How do you think? The 3.072MHz clock will require the 24.576MHz PLL to be on on the SOC/PCH. If you can use 2.4 MHz without any loss of quality and the codec can deal with 25 bit slots with 24-bit data it's better power-wise. We try to use 64.fs only when it's absolutely mandatory, e.g. if the codec or amplifier doesn't support the 25/24 configuration. IIRC this was the case with TI PCM512x and Maxim amps. We've also used the 3.072 MHz bit clock when there are constraints on the clock sources and selectors. This isn't the case on GLK but the SOF commit 0a97c1a92f2d93bd4d45bc99d61e362cd214748c clarified the clock selection for newer platforms, including JSL. In the end we may be forced to use the 3.072 MHz PLL, you'd need to look at the various topologies used with this machine driver.