Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp841557ybe; Wed, 4 Sep 2019 08:31:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtVIHunUdCs3ZqFMjJvPbPbUq1YXqUdQJlTnmtdRiWE6Rnbe4cj6NGmEAHQlUQ7E0WCCLI X-Received: by 2002:a17:90a:fa3:: with SMTP id 32mr5670634pjz.35.1567611090837; Wed, 04 Sep 2019 08:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567611090; cv=none; d=google.com; s=arc-20160816; b=r2jRLTPsS8ExWVak6Djk2FLjBIESyQwKlMpsuoZBzgo1Kv7wFKM1CYdm5HgbFIF1cQ 1tlTLpoUoW0mE1KwmdyjPqImCU8FP0N/5N9rb6G0Rlyd0+AKYWJk6zLLz9piCAyFIceG G6CVi00fiOPqcx9fnkhSpFxEKAT2YqkRw+sd+LNgFBlfPgrS4a+CMmPQB4ThiEfoJ8VJ xbRU3tAid/MkIS7LRSqc1m2hXentAstL0C5Z4evkwG43+vNyRAzq1+45Z7uOoVziMX7p J6VVgj6C6XOPy0xui3DTRbE7YY+3I/dSfihoVNDIBCfox0dj7mgZlo4dRpjICgB3po/M ov9g== 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=c7U5Te26OOkpWZh++wRipeOwfTU9MW2rO16f03qANlE=; b=K5gEmMhenwyT5k2DrOtb/G/+q2Y2ljLnWPO5SdoXtelHseJEmGLcHuicWb8CxFn9U9 B3Yd4Hl3TI1QQnjrheueISigHrQIyAQD2e3EQCZZDp7zUgQxUC3F4lxRRp18q/PyOl92 ySzBB4BBLN9pr9V18ZmS6Ge2IWwhuHeoyMkBubRzo7aLuUHqwfl/y4oLEbP1cSs1rMyx 1hL/oQ9P5itHYnBiIjhJTXaFGgzRtDbE2PqJ7rGm/R5SYw06vYnmlXfJ074zy1fE2vVz saR3L0fmTrzdwtrYmaE4NVOSeJpZJGRBSfxy0MPYZj20k6raPgDyvu/syRL6VZ67jaor C9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TtnIL2Lv; 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 y8si1662572plp.294.2019.09.04.08.31.14; Wed, 04 Sep 2019 08:31:30 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TtnIL2Lv; 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 S1730428AbfIDPa1 (ORCPT + 99 others); Wed, 4 Sep 2019 11:30:27 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:34716 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729888AbfIDPa0 (ORCPT ); Wed, 4 Sep 2019 11:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=c7U5Te26OOkpWZh++wRipeOwfTU9MW2rO16f03qANlE=; b=TtnIL2Lvf76PRgjjGcjO5m6CT f9WndgysisoyfcXDGr8r7su7K21pY4RLBjQ2+AdhVLc0xJvh/Qo9olW1hKGj5gx5NPvEYQBPdcYUL 6/PFPA+2dCs9UR5RTMY5S4XsBi5V+gygEqJmxvsKerAKIB0llRn11ACJgLET5EFHJctAQ=; Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i5XEf-0006KI-Me; Wed, 04 Sep 2019 15:30:17 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id D94FC2742B45; Wed, 4 Sep 2019 16:30:16 +0100 (BST) Date: Wed, 4 Sep 2019 16:30:16 +0100 From: Mark Brown To: Katsuhiro Suzuki Cc: David Yang , Daniel Drake , Hans de Goede , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/4] ASoC: es8316: judge PCM rate at later timing Message-ID: <20190904153016.GD4348@sirena.co.uk> References: <20190903165322.20791-1-katsuhiro@katsuster.net> <20190903174801.GD7916@sirena.co.uk> <85c717bf-d875-016c-a303-867bdca9a645@katsuster.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eqp4TxRxnD4KrmFZ" Content-Disposition: inline In-Reply-To: <85c717bf-d875-016c-a303-867bdca9a645@katsuster.net> X-Cookie: Help fight continental drift. 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 --eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 05, 2019 at 12:06:23AM +0900, Katsuhiro Suzuki wrote: > Would you tell me one more thing. I don't understand who sets MCLK to 0. > Is it needed original machine driver instead of audio-graph-card? > On my test environment (audio-graph-card + Rockchip I2S + ES8316), it > seems audio-graph-card has never called set_sysclk() with freq = 0 after > stop play/capture sound. So my env will go to bad scenario as I described in > this patch. You shouldn't need a custom machine driver - you'll just be the first person who ran into this with audio-graph-card. I'd just add this support to the audio-graph-card, either with custom startup and shutdown callbacks or using a set_bias_level() callback (both get used, I'd guess the set_bias_level() is easier since you don't need to reference count anything). --eqp4TxRxnD4KrmFZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1v2IgACgkQJNaLcl1U h9CzYQgAgkCVkBPAUDivm6m1Ys+xPGbqYO85zw38TRTqnQ8UMpCzpJd0DV1P8jAb xx3AaPskCUVjVjY8Nf9ejibjh3Bv0EF75kTr+qcuSCSm1gHjzNOsYym05tMtVOEJ wO6Kf95ga1nFkJdUzMlnPYY7Ifsybx29HfT0qdaWny4G6c1JnciMRAqRQx457ZAU a2beSvFPAoNAxB2l2N/mUxWM5OkhnYQ+hoy02agR9LoMsYGO3YxVfBRictMw1e8W fw3Hq9jULyMR4rY0tIObdsog2kHlwsCQrFzbQ1e4j25r1UntY9whHlctZKJX0onX jxre3OCp7c1jZLxxjsU9vsacKvYRxQ== =YJma -----END PGP SIGNATURE----- --eqp4TxRxnD4KrmFZ--