Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6214221ybv; Wed, 12 Feb 2020 08:04:51 -0800 (PST) X-Google-Smtp-Source: APXvYqx/4hl5DXf5L8l2g1k5BupGwv6jK2TF0qy2yzVlJLxe5oGen66iaiXficJdkdnig6W+jZuI X-Received: by 2002:a9d:674f:: with SMTP id w15mr9788990otm.243.1581523491442; Wed, 12 Feb 2020 08:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581523491; cv=none; d=google.com; s=arc-20160816; b=v+r7KS53ghnX+mzXfIsXjTUT97jIpf9yPZW1R10Yd+dgjE/bv2lxzWiRDnamGRMyDl d8xrA5rbDQwwlmFpcu+0shFoO/KjiPhMNwzZM+6J/U/DoZ/ka2m+OWE7Ezhj1yXA88+5 71gW3K0nPblvYeudJk0+E6ZFtxAiqZLtP9VTfGxgGYqUepu4HG1D0djEF6102FhrJFQo OckiajUBg2GytWhQQjnnbjZ8+aQgRHTj6fW85Pt19trMW7FXVrdLg1M+NYnfsRBD+OxO T5Y2noowwTSW71t7WKKt+F3Ic0yI6t5gppCsCLrQ6EC3UUZfHWgBP3TAyELRHjIzQGfj TZrA== 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; bh=EpUj7KQaHyncQRLtS2akomNPEwYamRmjhvRqFDujhsQ=; b=H7nwcCSnXyDfJyqoXKlPKLhbU3/70wdQREjPiPyXM/RhOfWI1b9hiwQUGp/4WCcHPJ /lHtIFy2SgOtQU0WmEWf5sKuOz4LCHd25VH6OwIpB4PS7+BNSvpmxky1ERDaj/+YfqP9 YQP2DBIC49NYoENXJivPK8W/J4m07lhtYAiqpds/qO97TO1zHcpkoFkxNAED1i0ZNlSQ fgnW1NhktzBdz9oigt+bIzOdbe8Hatmc1Ko7U6+lpkaA5u6Yhw+WDcFcjS1dehqGk4MO jvg8n8DzEHONiyfK2XhgRFsDWGqFUEmxlHa/u9uhIDhmvCIL7dBuKbfb9V/VqtBruJto b0mw== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si393003otk.318.2020.02.12.08.04.24; Wed, 12 Feb 2020 08:04:51 -0800 (PST) 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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728602AbgBLQDy (ORCPT + 99 others); Wed, 12 Feb 2020 11:03:54 -0500 Received: from mga02.intel.com ([134.134.136.20]:17620 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbgBLQDy (ORCPT ); Wed, 12 Feb 2020 11:03:54 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 08:03:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,433,1574150400"; d="scan'208";a="313442360" Received: from gmoralez-mobl.amr.corp.intel.com (HELO [10.252.135.232]) ([10.252.135.232]) by orsmga001.jf.intel.com with ESMTP; 12 Feb 2020 08:03:41 -0800 Subject: Re: [alsa-devel] [PATCH] ASoC: da7219: check SRM lock in trigger callback To: Adam Thomson , "Sridharan, Ranjani" Cc: "alsa-devel@alsa-project.org" , Support Opensource , Takashi Iwai , Liam Girdwood , "linux-kernel@vger.kernel.org" , "Chiang, Mac" , Mark Brown , Ranjani Sridharan , "Lu, Brent" , "cychiang@google.com" References: <1581322611-25695-1-git-send-email-brent.lu@intel.com> <855c88fb-4438-aefb-ac9b-a9a5a2dc8caa@linux.intel.com> <2eeca7fe-aec9-c680-5d61-930de18b952b@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <043c8384-6ce2-c78e-f52c-6a37a4bab3a0@linux.intel.com> Date: Wed, 12 Feb 2020 09:48:24 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Thanks Ranjani. That information closes the door on the idea of playing >> with the trigger order suggested earlier in the thread, so my guess is >> that we really need to expose the MCLK/BCLK with the clk API and turn >> them on/off from the machine driver as needed. I hope is that we don't >> need the FSYNC as well, that would be rather painful to implement. > > Am not going to make myself popular here. It's MCLK and FSYNC (or WCLK as it's > termed for our device) that is required for SRM to lock in the PLL. > > So far I've not found a way in the codec driver to be able to get around this. > I spent a very long time with Sathya in the early days (Apollo Lake) looking at > options but nothing would fit which is why I have the solution that's in place > right now. We could probably reduce the number of rechecks before timeout in the > driver but that's really just papering over the crack and there's still the > possibility of noise later when SRM finally does lock. Sorry, you lost me at "the solution that's in place right now". There is nothing in the bxt_da7219_max98357a.c code that deals with clocks or defines a trigger order?