Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4300024ybe; Mon, 9 Sep 2019 07:21:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgaE5kH5ef1/K3hV2GELPhtAE+qJfm19I77izzX7Tku0sqOp/CtCkt8wy78oITW09I7DhZ X-Received: by 2002:a17:906:5e09:: with SMTP id n9mr10529378eju.143.1568038870783; Mon, 09 Sep 2019 07:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568038870; cv=none; d=google.com; s=arc-20160816; b=RFq8brdY3M0Ft0bcDtnCR7LoC9/Iq3R88KUXlvZstROskcQMUWburV26rzQJ9NnmaA /wB4hGhDsPWGomAIvYOZmOTAGm/oybpvRxafz5T559pokLYETW3972z/EorC6lYUQZOY PaBPKPYbdYdFGgWbScjJgEGGoTNHNK4EIGy0Svub5qHErPnhbxWSEbwYGTo4T33Pvq22 8KZwSkp6Weq4Aho4ntmUUGMK4lW1sCCk151YzBx8Jj2HmhtsoB9xAya6lzhydRSvIa+4 oilkM4Fx2Yfayay7yzGY1T/+DlwmvdYU0D18vtYgsJQR1lUPH7hJMlTvsq2ylusme9NE u4Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=G542cM8ydsZ5mMheyS0HYJBu/WrYOc+hxdXCXc1yEM0=; b=qn7iSd2rqznD5r1bNDzz3p5xEEt1SL5XeP0Jl5gkOES+8xYw58jlBTFqRh4XDYt1Jq CUD7+HACRRxb5jTvmOZV0dTaR+PQbZda2NHq4JwuQizf0MQ0YPPfapNj19qvXVfwRmTr DbED122xdX8+WpbScCU417sS17Z1j42uDO/QhkI8HpX0H93Wb8YGHJqDKQ/5UB3nxZ4f 8FDlD1yt2mPWO+IvaUjIbKVaNgm0dnbm5FBls9ybmybvmUXwjYxIfty/gXXSm+Ft3DOw VkeBwMDeM9/AGFhjS/W6umwHCFWZGqu7I8kJL64ylt3mPsg3XZC5XfSslK1cUYXFZef0 bYPQ== 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 dx9si7210841ejb.242.2019.09.09.07.20.47; Mon, 09 Sep 2019 07:21: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 S2388038AbfIIDys (ORCPT + 99 others); Sun, 8 Sep 2019 23:54:48 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:41783 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387568AbfIIDys (ORCPT ); Sun, 8 Sep 2019 23:54:48 -0400 Date: 09 Sep 2019 12:54:45 +0900 X-IronPort-AV: E=Sophos;i="5.64,483,1559487600"; d="scan'208";a="26075976" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 09 Sep 2019 12:54:45 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id BFE6D41715A0; Mon, 9 Sep 2019 12:54:45 +0900 (JST) Message-ID: <87mufe5dkq.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Katsuhiro Suzuki Cc: Mark Brown , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] SoC: simple-card-utils: set 0Hz to sysclk when shutdown In-Reply-To: References: <20190907174501.19833-1-katsuhiro@katsuster.net> <87woei5mzj.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Katsuhiro > >> Bad scenario as follows (mclk-fs = 256): > >> - Initialize sysclk by correct value (Ex. 12.288MHz) > >> - Codec set constraints of PCM rate by sysclk > >> 48kHz (1/256), 32kHz (1/384), 24kHz (1/512) > >> - Play 48kHz sound, it's acceptable > >> - Sysclk is not changed > >> > >> - Play 32kHz sound, it's acceptable > >> - Set sysclk to 8.192MHz (= fs * mclk-fs = 32k * 256) > >> - Codec set constraints of PCM rate by sysclk > >> 32kHz (1/256), 21.33kHz (1/384), 16kHz (1/512) > >> > >> - Play 48kHz again, but it's NOT acceptable because constraints > >> do not allow 48kHz (snip) > Ah, sorry for confusing. It's not either. hw_params() of machine > driver has been called even if constraints don't have a requested > PCM rate. But it's not expected. > > For example, if constraints are 32k, 21.33k, 16k, hw_params() will > be called with 32k when an user requests to play 48k sounds. Oh, I see. Thank you for explaining. Thank you for your help !! Best regards --- Kuninori Morimoto