From: Liam Girdwood <lrg@ti.com>
To: David Henningsson <david.henningsson@canonical.com>
Cc: alsa-devel@alsa-project.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
arun.raghavan@collabora.co.uk
Subject: Re: UCM/DAPM - saving power when idle?
Date: Thu, 1 Nov 2012 15:26:16 +0000 [thread overview]
Message-ID: <50929498.60103@ti.com> (raw)
In-Reply-To: <50925145.4070706@canonical.com>
+ Mark and Arun,
On 01/11/12 10:39, David Henningsson wrote:
> I don't deal much with ASoC, so sorry if I'm missing something obvious here...
>
> When a certain use case is activated, that would then activate some DAPM
> widgets, causing the codec to consume more power. So, we should essentially
> avoid this unless we're actually playing back/recording. But, why isn't there
> a "disable all use cases" command, or possibly an "idle" command? (That,
> essentially, e g pulseaudio should set whenever playback/recording stops)
>
> Or; the option would be that the codec is actually powered down, but only
> activates itself when there is a stream; but this looks like it could cause
> problem with loopback paths (e g listening to FM radio, where there are no
> streams passing through CPU/main memory).
>
DAPM will only power on the associated widgets if there is a valid source ->
sink path and the stream is active (e.g. we set a path and perform a playback
or capture). So if pulseaudio sets a playback use case and then keeps the
playback open (even when playing silence) DAPM will keep the widgets enabled.
DAPM also handles the sidetone or FM radio task as described above too by
detecting the source -> sink between two widgets that are not enabled by the
CPU PCM devices (e.g. not DACs or ADCs, etc) and will then power this path.
Fwiw, There is nothing stopping us adding a low power idle UCM modifiers for
each use case atm with the current UCM code base. I would imagine a single
"idle" modifier could be used by most of the devices on a UCM verb, but there
may need to be additional idle modifiers to deal with any audio artifacts
generated by some devices when powering ON/OFF.
Liam
next prev parent reply other threads:[~2012-11-01 15:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-01 10:39 UCM/DAPM - saving power when idle? David Henningsson
2012-11-01 15:26 ` Liam Girdwood [this message]
2012-11-02 14:30 ` Mark Brown
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=50929498.60103@ti.com \
--to=lrg@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=arun.raghavan@collabora.co.uk \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=david.henningsson@canonical.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.