Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2180478ybe; Tue, 3 Sep 2019 09:05:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzd/4Ff3Tf5BBmWQDJcZXg2wJGYRRtx9JrM3rqAbSQk74Hd7sS/EVvUZs26/jmBPS+KzAQj X-Received: by 2002:a17:902:bb88:: with SMTP id m8mr2568432pls.127.1567526710622; Tue, 03 Sep 2019 09:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567526710; cv=none; d=google.com; s=arc-20160816; b=HMoowmL0SVOPOitZrIbtk9J1VQE0Su4VyM9LHZ0Ky0oPOE78WKm7I6h1onE+b2yPEo 8RwMbHwygofBKLclyYH3ZARWn9MMmm2oS+cLNtWNOgXkDCQy/XAFP1FcCFqbQH0A8YSi 1ajuD0s6rq7cJXRTNGxn4bvo7IEyzDrHNhLNhKQ/dK8nM7286xB9Wk3QXsr+v9CfVw+k /VrMQGFR1Zwj4/rhmaUs1yQKn6kgi32MrPYWf82bFY+rVEgYCh4UAbmRKOXNPD1OvfoN +SkYSX0jCk7/Xc48duCHggV5onbY86D3wrwBWEkFCcmHUkpwggq36R78RU7yQORTaLPu WCMg== 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=ypoxEpzog3SlUFn9nnpUO+Z7alyPz01gNX7UFA1QO4A=; b=VqWoEzBXViqzg1/BzSkeh6kxVSpoXMdwUGP7AdhO7J23Ha+GLFrOPSqnZEDN1lUCAj Ht4pqa+cC+y6fgbKVnVHeA2BmZBkKR712Q9ugWPRprlr33X3h1a0E18VVs50dt/yfY0x UrbCnVy6uB1IY7vfz2EvcokqAJwyUmzMyK0Jl518rMZ4T0ytvtFkNbzox80OYEXDxUU1 FQ0EpaHWU442zg2w0vsSTG2BGFJJsuG32rH2q2BofQlqFCEcTOCrrH57Ts//uTC30LxS JdDviBXrr86tnSQT3KL7qvu2OE+PTQDXqpgFIhc4kGuCe8UqXvpRNefLgyKufNmv1ttH NfUw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v184si18545449pfc.90.2019.09.03.09.04.53; Tue, 03 Sep 2019 09:05:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729169AbfICQDj (ORCPT + 99 others); Tue, 3 Sep 2019 12:03:39 -0400 Received: from www1102.sakura.ne.jp ([219.94.129.142]:20703 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728571AbfICQDj (ORCPT ); Tue, 3 Sep 2019 12:03:39 -0400 Received: from fsav305.sakura.ne.jp (fsav305.sakura.ne.jp [153.120.85.136]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x83G3JSd025010; Wed, 4 Sep 2019 01:03:19 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav305.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav305.sakura.ne.jp); Wed, 04 Sep 2019 01:03:19 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav305.sakura.ne.jp) Received: from [192.168.1.2] (118.153.231.153.ap.dti.ne.jp [153.231.153.118]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x83G3Ihr025006 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Wed, 4 Sep 2019 01:03:18 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Subject: Re: [PATCH v2 1/3] ASoC: es8316: judge PCM rate at later timing To: Mark Brown Cc: David Yang , Daniel Drake , Hans de Goede , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20190831162650.19822-1-katsuhiro@katsuster.net> <20190902120248.GA5819@sirena.co.uk> <1a3c5934-4731-d474-e9d5-795e8337b180@katsuster.net> <20190903111138.GA6247@sirena.co.uk> From: Katsuhiro Suzuki Message-ID: Date: Wed, 4 Sep 2019 01:03:18 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190903111138.GA6247@sirena.co.uk> 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 Hello Mark, On 2019/09/03 20:11, Mark Brown wrote: > On Tue, Sep 03, 2019 at 04:19:10AM +0900, Katsuhiro Suzuki wrote: >> On 2019/09/02 21:02, Mark Brown wrote: > >>> The best way to handle this is to try to support both fixed and variable >>> clock rates, some other drivers do this by setting constraints based on >>> MCLK only if the MCLK has been set to a non-zero value. They have the >>> machine drivers reset the clock rate to 0 when it goes idle so that no >>> constraints are applied then. This means that if the machine has a > >> In my understanding, fixed and variable clock both use set_sysclk() for >> telling their MCLK to codec driver. For fixed MCLK cases we need to >> apply constraint but for variable MCLK cases we should not set >> constraints at set_sysclk(). How can we identify these two cases...? > > Like I say it's usually done by settingthe MCLK to 0 when not in use and > then not applying any constraints if there's no MCLK set. > Ah... I understand. Current implementation refuses MCLK == 0. I'll change to accept MCLK == 0 for fixed clock users and send v3 patch. Best Regards, Katsuhiro Suzuki