All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <lg@opensource.wolfsonmicro.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Andreas Corneliussen <corneliussen@gmail.com>,
	alsa-devel@lists.sourceforge.net
Subject: Re: Sound detection
Date: Thu, 25 Jan 2007 16:21:43 +0000	[thread overview]
Message-ID: <1169742103.3866.9.camel@localhost.localdomain> (raw)
In-Reply-To: <s5hfy9z9jh8.wl%tiwai@suse.de>

On Thu, 2007-01-25 at 17:09 +0100, Takashi Iwai wrote:
> At Thu, 25 Jan 2007 16:03:29 +0000,
> Liam Girdwood wrote:
> > 
> > On Thu, 2007-01-25 at 13:36 +0100, Takashi Iwai wrote:
> > > At Sun, 21 Jan 2007 13:39:35 +0100,
> > > Andreas Corneliussen wrote:
> > > > 
> > > > Hi
> > > > I've just build a mediacenter, and is about to construct an hifi 
> > > > amplifier for it. Therefore i would like to know a way to make alsa 
> > > > detect when nothing is playing at the output, and then run a external 
> > > > command. And detect when something has started playing at the output, 
> > > > and run an external command before any output is generatet.
> > > > This I would like to do, because I then could make an interface between 
> > > > the amplifier and the computer to make sure that it does not use anymore 
> > > > standbypower than needed.
> > > 
> > > It's an interesting question.  Currently, there is no good framework
> > > for such a functionality, so you need to build something new.
> > > 
> > 
> > Fwiw, the Dynamic Audio Power Management code in ASoC (Alsa for SoC
> > devices) does this very thing. Please feel free to have a look and take
> > code if required.
> 
> But it doesn't communicate with the user-space, right?

Your right, it only powers on board components and can't communicate
with user-space atm.

> I supposed that the power-management stuff isn't built in the driver
> itself...
> 

The codec and machine power maps are in the driver, but it's controlled
via the ASoC core (and ultimately via alsa-lib)

Liam



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  reply	other threads:[~2007-01-25 16:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-21 12:39 Sound detection Andreas Corneliussen
2007-01-25 12:36 ` Takashi Iwai
2007-01-25 16:03   ` Liam Girdwood
2007-01-25 16:09     ` Takashi Iwai
2007-01-25 16:21       ` Liam Girdwood [this message]
2007-01-25 16:32         ` Takashi Iwai

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=1169742103.3866.9.camel@localhost.localdomain \
    --to=lg@opensource.wolfsonmicro.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=corneliussen@gmail.com \
    --cc=tiwai@suse.de \
    /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.