Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5983701ybv; Wed, 12 Feb 2020 04:00:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzuPa/oqvEE/mPxX0j4gBjh6oYPfUPBfaTsmgKhIqYXuGLLNgQYnSCC8T+LmuSHAryjwWfv X-Received: by 2002:aca:5083:: with SMTP id e125mr6028562oib.96.1581508845386; Wed, 12 Feb 2020 04:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581508845; cv=none; d=google.com; s=arc-20160816; b=fjIK9R1QxrKsiVx6+y2UkfCE/rPibA9nSe1I+KCXrF1LhXcRF5kWxGB/GoY0jwC16a ecamfNlk4zzY1mFD+ZpgmW8WhE5rQlGX4qLG1mYGHoLGikY2m4OzgcHFiC8mTuu5y+nS mrMPavnpggAe2rLJmMPuWQgGcX+TFtPbFq3UA8kz5CkPytktEKMJDAYwJB8Yiq9CNsT9 rvoap+RrIqGQrWXCTyK1MSDLrcaWFHWj2vMFq6zW4xou+54RTey4i4laHkTx7gnQxRts jit/L3qxHHR/8uSIsSvpfG0FldhnrrqQof8BzlSQ/qvCxYMVlYsaoQrVDf9/Cq+flO8E ANQQ== 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; bh=G30uTpSu6EeD+919EcTtXlBTe45W4q+7gcE6CtlF7Mg=; b=IjQwRAHOCIx6jgWEwpGSXizLwoXbzhSN0VrQmlNfbNNo0ZRIByJ/Emz9Rze+i/Awoe xyhAfvLniXTUjBGN6HnKQt2RWM40dyztVOU8ZxFMVQE4JUMXku/p2YyaFVrl5fjSD3CL vU41KNXsm1yq+NmXPN69cf2OZhcQDBbCcx8pPuTBv6ZCRqejlSTiqOhdKtSWbM1f1OZu JNdDNHCETsfYqib9lFcnCZGIGuT/R1f3blrxKpl5nRWtgddhbHw1yScE+5aqE/zK1MHH LgU+1rf12zt/wXPK9vJ0rwWYBwojpBIiAd3zNruIF3ry/QLQlhz0sXP3HTvDjufK2uTk PfBA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e20si3150693oig.199.2020.02.12.04.00.32; Wed, 12 Feb 2020 04:00:45 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728279AbgBLL7S (ORCPT + 99 others); Wed, 12 Feb 2020 06:59:18 -0500 Received: from foss.arm.com ([217.140.110.172]:60078 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgBLL7S (ORCPT ); Wed, 12 Feb 2020 06:59:18 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B358A30E; Wed, 12 Feb 2020 03:59:17 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 37AB13F6CF; Wed, 12 Feb 2020 03:59:17 -0800 (PST) Date: Wed, 12 Feb 2020 11:59:15 +0000 From: Mark Brown To: Adam Thomson Cc: Pierre-Louis Bossart , "Sridharan, Ranjani" , "alsa-devel@alsa-project.org" , Support Opensource , Takashi Iwai , Liam Girdwood , "linux-kernel@vger.kernel.org" , "Chiang, Mac" , Ranjani Sridharan , "Lu, Brent" , "cychiang@google.com" Subject: Re: [alsa-devel] [PATCH] ASoC: da7219: check SRM lock in trigger callback Message-ID: <20200212115915.GC4028@sirena.org.uk> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5QAgd0e35j3NYeGe" Content-Disposition: inline In-Reply-To: X-Cookie: Violence is molding. 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 --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 12, 2020 at 10:16:54AM +0000, Adam Thomson wrote: > 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. This really needs the componentisation refactoring I think, that way we can annotate individual devices and links with what they need rather than essentially guessing about what works most of the time which is more or less what we do at the minute. Like you say as things are at the minute there's a lot of crack papering going on. --5QAgd0e35j3NYeGe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5D6JMACgkQJNaLcl1U h9DlEAf/fBK6srxM34hrUWp+RSB46rzwi3VulG9ye6DrZYE18FThapihpLCSCPw5 UUFuOf2G/w+8hcwf22J0gh7LZky8ReBsMWiFahKijYInxiEB6ioRdgKj6o+XoSR3 K5f7JP8QGkbkclgTpjytuIFWw6C32pGyojS2pL82ZUbbhRXPik9NWAp+UOXTWp4Y 7nAT+kvot9ixAECLYwT3mhXYRtouMUU1jXD9nlDMoViI5AC5+OKfItlBpL/Pu1+k 5a8bFXfRuhRqXN0zubbL7gfS81FyYS1PLZ2dWFWR9hEFSHJrblGW5dFLQw1hiie/ 1U75ZlU+4ns6rHFlV8jHNTRK3XUH+w== =V8px -----END PGP SIGNATURE----- --5QAgd0e35j3NYeGe--