From: Mark Brown <broonie@kernel.org> To: Katsuhiro Suzuki <katsuhiro@katsuster.net> Cc: David Yang <yangxiaohua@everest-semi.com>, Daniel Drake <drake@endlessm.com>, Hans de Goede <hdegoede@redhat.com>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] ASoC: es8316: judge PCM rate at later timing Date: Tue, 3 Sep 2019 12:11:38 +0100 [thread overview] Message-ID: <20190903111138.GA6247@sirena.co.uk> (raw) In-Reply-To: <1a3c5934-4731-d474-e9d5-795e8337b180@katsuster.net> [-- Attachment #1: Type: text/plain, Size: 896 bytes --] 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. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Mark Brown <broonie@kernel.org> To: Katsuhiro Suzuki <katsuhiro@katsuster.net> Cc: Hans de Goede <hdegoede@redhat.com>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, David Yang <yangxiaohua@everest-semi.com>, Daniel Drake <drake@endlessm.com> Subject: Re: [alsa-devel] [PATCH v2 1/3] ASoC: es8316: judge PCM rate at later timing Date: Tue, 3 Sep 2019 12:11:38 +0100 [thread overview] Message-ID: <20190903111138.GA6247@sirena.co.uk> (raw) In-Reply-To: <1a3c5934-4731-d474-e9d5-795e8337b180@katsuster.net> [-- Attachment #1.1: Type: text/plain, Size: 896 bytes --] 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. [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] [-- Attachment #2: Type: text/plain, Size: 161 bytes --] _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2019-09-03 11:11 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-08-31 16:26 [PATCH v2 1/3] ASoC: es8316: judge PCM rate at later timing Katsuhiro Suzuki 2019-08-31 16:26 ` [alsa-devel] " Katsuhiro Suzuki 2019-08-31 16:26 ` [PATCH v2 2/3] ASoC: es8316: Add clock control of MCLK Katsuhiro Suzuki 2019-08-31 16:26 ` [alsa-devel] " Katsuhiro Suzuki 2019-08-31 16:26 ` [PATCH v2 3/3] ASoC: es8316: add DT-bindings Katsuhiro Suzuki 2019-08-31 16:26 ` [alsa-devel] " Katsuhiro Suzuki 2019-09-02 12:02 ` [PATCH v2 1/3] ASoC: es8316: judge PCM rate at later timing Mark Brown 2019-09-02 12:02 ` [alsa-devel] " Mark Brown 2019-09-02 19:19 ` Katsuhiro Suzuki 2019-09-02 19:19 ` [alsa-devel] " Katsuhiro Suzuki 2019-09-03 11:11 ` Mark Brown [this message] 2019-09-03 11:11 ` Mark Brown 2019-09-03 16:03 ` Katsuhiro Suzuki 2019-09-03 16:03 ` [alsa-devel] " Katsuhiro Suzuki
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190903111138.GA6247@sirena.co.uk \ --to=broonie@kernel.org \ --cc=alsa-devel@alsa-project.org \ --cc=drake@endlessm.com \ --cc=hdegoede@redhat.com \ --cc=katsuhiro@katsuster.net \ --cc=linux-kernel@vger.kernel.org \ --cc=yangxiaohua@everest-semi.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.