Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp882107ybj; Tue, 5 May 2020 09:02:38 -0700 (PDT) X-Google-Smtp-Source: APiQypIjCuQWxLjE/qrQLciLeyhXeBqdi/sZLqybmgLgBoRvC4IjMH5kyjLFoBkYE/CDRPw2u65f X-Received: by 2002:a17:906:55c4:: with SMTP id z4mr3269076ejp.353.1588694558636; Tue, 05 May 2020 09:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588694558; cv=none; d=google.com; s=arc-20160816; b=0kkWLqeKRqH4me1jYkv/NKbm3YBwbk2H79IyZUlR7JWRH5ob0FEdsc3vRTmK1YjaSC mqBuQld97uNICFhMoOWpqCscXYt0pNQyOG3UQCXynkbOeTc2+QWGDLHxjdKzOvKEvKr5 ZdSTtK4AJ5iksdFnNIRgbc/y2eFtoJHM4xXjcX1Jc4NXnDWjwue7lOEfd9tySZ05P2h+ A43SVJScflebpde7/czUPPU3HHlTtiPfDnHYOr4ew0T/gMPA1UZ3AuXIKlxoM5MbVg+F TrWyUUJeDFWz1IEfxxQUuKwQMfPz8AZhzaTdqTiV1q1w1H4cH7U5c8rlcFEc4eKXzxW1 /Cig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=8k6/c4f/jiF7Fb6cBSy8N6o+WMizf10BmSsoKAT45Vg=; b=O39GMf06LeCY7k76Raf2M1v6MddK7a6C6zg0b8W11yvgDx4dR/adJiiEsCc1EIzgM0 jqzFmFceaubC21mplhWhjRtgazebz48Cz6pBzLUIYUft43/LIDgdpn/jc+93wQFch8re 9lXJ9afQig/cL7vdqbEZsbz33uZt7ppXdgZO73ORr9pKgyy0u2NUlJYG728QlP8SNOie fURR3yPzQIevfn3jppaiKcqH0sYXQyFoydH2UcqGl+nm9wolyESYABMJJGsAXZXJwvtM fvtmtTQoa+s+7AuiGX3ws8DR8nCSNQZop5rS5PMTZkdWTySX/8y1EhwwZ4dqGqRwiZgi FJSw== 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 oo21si1275192ejb.453.2020.05.05.09.02.11; Tue, 05 May 2020 09:02:38 -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 S1730570AbgEEP5n (ORCPT + 99 others); Tue, 5 May 2020 11:57:43 -0400 Received: from mga06.intel.com ([134.134.136.31]:43147 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730542AbgEEP5k (ORCPT ); Tue, 5 May 2020 11:57:40 -0400 IronPort-SDR: pxVk6H4+g/DPi1API8PUDhb+n0YDmQ1z6s1oIYu59+ndSxn62jOGYeXbey4C6o1YxWdWdosD0h cgPVDsnT2wpw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 08:57:39 -0700 IronPort-SDR: alrkhE+2C4qXPTodsAh59qKNIdgUTi4My5rtciJamlWkLe/Gs6yVOlSzDYbd6Bd6u+HzoFRuZW MicWtTkTw92Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,355,1583222400"; d="scan'208";a="249494130" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.249.151.151]) ([10.249.151.151]) by fmsmga007.fm.intel.com with ESMTP; 05 May 2020 08:57:33 -0700 Subject: Re: [PATCH V2] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine To: =?UTF-8?Q?Rados=c5=82aw_Biernacki?= Cc: Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Jaroslav Kysela , Takashi Iwai , Lech Betlej , alsa-devel@alsa-project.org, Todd Broch , Harshapriya , John Hsu , linux-kernel@vger.kernel.org, "Sienkiewicz, Michal" , Ben Zhang , Mac Chiang , Yong Zhi , Marcin Wojtas , Vamshi Krishna , Alex Levin References: <20200501193141.30293-1-rad@semihalf.com> <3ad44b75-387f-da75-d7b2-3a16ed00550c@linux.intel.com> From: Cezary Rojewski Message-ID: Date: Tue, 5 May 2020 17:57:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> >>> 2) Currently Skylake does not output MCLK/FS when the back-end DAI op >>> hw_param is called, so we cannot switch to MCLK/FS in hw_param. This >>> patch reduces pop by letting nau8825 keep using its internal VCO clock >>> during widget power up sequence, until SNDRV_PCM_TRIGGER_START when >>> MCLK/FS is available. Once device resumes, the system will only enable >>> power sequence for playback without doing hardware parameter, audio >>> format, and PLL configure. In the mean time, the jack detecion sequence >>> has changed PLL parameters and switched to internal clock. Thus, the >>> playback signal distorted without correct PLL parameters. That is why >>> we need to configure the PLL again in SNDRV_PCM_TRIGGER_RESUME case. >> >> IIRC the FS can be controlled with the clk_ api with the Skylake driver, >> as done for some KBL platforms. Or is this not supported by the firmware >> used by this machine? > > According to Ben, SKL had limitations in FW for managing the clk's > back in the days. > Can you point to the other driver you mention so we can cross check? > Skylake driver is found within: /sound/soc/intel/skylake directory. "SKL had limitations in FW" - that's misleading. This is neither FW issue nor HW 'limitation'. SKL is an older platform and its goals and design was different than say APL+. Basically, your needs do not align with what's present on SKL hw. Czarek