From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Ricard Wanderlof <ricardw@axis.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>
Subject: Re: Keeping the codec running at all times
Date: Thu, 7 May 2020 11:35:00 -0500 [thread overview]
Message-ID: <7e737532-4158-8242-90c5-56f0ec0094b2@linux.intel.com> (raw)
In-Reply-To: <alpine.DEB.2.20.2005071002590.25559@lnxricardw1.se.axis.com>
>> If your codec exposes a clock object then you could have e.g. a board or
>> machine driver configure the clock
>> (clk_get/clk_set_rate/clk_prepare_enable) and leave it on regardless of
>> the streaming usages. You would still need to make sure that the clock
>> rates are compatible with the hw_params when streaming does happen.
>> that's what e.g. was done for Intel to make sure the MCLK, BCLK and
>> FSYNC could be enabled even when the DSP was idle.
>
> Which driver is that?
sound/soc/intel/skylake/skl-ssp-clk.c
and its users in
sound/soc/intel/boards/
kbl_rt5663_rt5514_max98927.c
kbl_rt5663_max98927.c
these examples are more to turn the clock on to meet codec requirements,
but there were other cases that weren't upstreamed where the clocks were
turned on at boot time as you described it.
The code is probably rather obscure but the idea itself holds water. As
long as the clock is used the provider remains active - even if no
streaming takes place.
Hope this helps
-Pierre
prev parent reply other threads:[~2020-05-07 16:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 15:15 Keeping the codec running at all times Ricard Wanderlof
2020-05-06 15:40 ` Jaroslav Kysela
2020-05-06 16:12 ` Pierre-Louis Bossart
2020-05-07 16:28 ` Ricard Wanderlof
2020-05-07 16:35 ` Pierre-Louis Bossart [this message]
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=7e737532-4158-8242-90c5-56f0ec0094b2@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=ricardw@axis.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 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.