From: "Sheetal ." <sheetal@nvidia.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Mark Brown <broonie@kernel.org>,
katsuhiro@katsuster.net
Cc: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
Mohan Kumar <mkumard@nvidia.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-tegra@vger.kernel.org
Subject: Re: [PATCH 1/2] ASoC: simple-card-utils: add ignore_zero_sysclk flag
Date: Wed, 18 Mar 2026 14:36:42 +0530 [thread overview]
Message-ID: <9246afe1-4ad2-4224-9b1a-cff07ecfa8d4@nvidia.com> (raw)
In-Reply-To: <87cy12hxeu.wl-kuninori.morimoto.gx@renesas.com>
On 18-03-2026 04:32, Kuninori Morimoto wrote:
> External email: Use caution opening links or attachments
>
>
> Hi
>
>>> Commit 2458adb8f92a ("SoC: simple-card-utils: set 0Hz to
>>> sysclk when shutdown") updated the simple-card-util driver to
>>> send 0Hz frequency requests during stream shutdown, which can
>>> request frequencies lower than a platform may support.
>>
>>> Add ignore_zero_sysclk flag to struct simple_util_priv to allow drivers
>>> to ignore these 0Hz sysclk requests when they would result in a clock
>>> frequency below the hardware's minimum allowed rate.
>>
>> If the driver simply can't tolerate disabling the sysclk it seems like
>> it would be easier to just have the driver directly ignore attempts to
>> do so rather than adding this flag which the driver has to set only to
>> get it passed in?
>
> Agree.
> I think this commit can help you ?
>
> 1e1a2ef95b571825ca9c0113f6bef51e9cec98b0
> ("ASoC: da7213: Avoid setting PLL when closing audio stream")
>
> Thank you for your help !!
Thank you for the feedback and the da7213 reference.
The concern with the per-codec approach is that this affects any codec
with a set_dai_sysclk that forwards the frequency to clk_set_rate().
Since any codec can be connected to Tegra platforms, and MCLK is
provided by the SoC to external codecs, when clk_set_rate(..., 0)
reaches the BPMP firmware, it raises a fault for rates below the
hardware minimum. Fixing this per-codec would require individual patches
for each.
>
> Best regards
> ---
> Kuninori Morimoto
next prev parent reply other threads:[~2026-03-18 9:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 9:49 [PATCH 0/2] ASoC: Add flag to ignore 0Hz sysclk requests Sheetal
2026-03-17 9:49 ` [PATCH 1/2] ASoC: simple-card-utils: add ignore_zero_sysclk flag Sheetal
2026-03-17 13:39 ` Mark Brown
2026-03-17 23:02 ` Kuninori Morimoto
2026-03-18 9:06 ` Sheetal . [this message]
2026-03-18 11:56 ` Mark Brown
2026-03-25 5:27 ` Sheetal .
2026-03-17 9:49 ` [PATCH 2/2] ASoC: tegra: enable ignore_zero_sysclk for Tegra Sheetal
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=9246afe1-4ad2-4224-9b1a-cff07ecfa8d4@nvidia.com \
--to=sheetal@nvidia.com \
--cc=broonie@kernel.org \
--cc=jonathanh@nvidia.com \
--cc=katsuhiro@katsuster.net \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mkumard@nvidia.com \
--cc=perex@perex.cz \
--cc=thierry.reding@kernel.org \
--cc=tiwai@suse.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox