public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: "Sheetal ." <sheetal@nvidia.com>
To: Mark Brown <broonie@kernel.org>, Oder Chiou <oder_chiou@realtek.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	katsuhiro@katsuster.net, 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, Sameer Pujar <spujar@nvidia.com>
Subject: Re: [PATCH 1/2] ASoC: simple-card-utils: add ignore_zero_sysclk flag
Date: Wed, 25 Mar 2026 10:57:04 +0530	[thread overview]
Message-ID: <fbc85ccb-9c31-483e-94b3-4289d22fb4ff@nvidia.com> (raw)
In-Reply-To: <a95d9467-fe64-401a-a692-b33b67afc381@sirena.org.uk>



On 18-03-2026 17:26, Mark Brown wrote:
> On Wed, Mar 18, 2026 at 02:36:42PM +0530, Sheetal . wrote:
>> On 18-03-2026 04:32, Kuninori Morimoto wrote:
> 
>>>> 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 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.
> 
> Since in the clock API clk_get_rate() maps onto clk_disable() those
> drivers ought to be fixed anyway - perhaps we need some helpers for this
> since it does look like we have some issues here.  Either the driver
> should ignore the disable (possibly due to already refcounting the use
> of the clock and disabling/enabling without machine driver help) or it
> should translate a rate of 0 to a disable.


Since this needs to be handled in the codec driver, I will start with 
separate patch to fix in RT5640 codec. Adding Realtek codec maintainer 
for visibility.

  reply	other threads:[~2026-03-25  5:27 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 .
2026-03-18 11:56         ` Mark Brown
2026-03-25  5:27           ` Sheetal . [this message]
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=fbc85ccb-9c31-483e-94b3-4289d22fb4ff@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=oder_chiou@realtek.com \
    --cc=perex@perex.cz \
    --cc=spujar@nvidia.com \
    --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