public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@sirena.org.uk>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-pm@lists.linux-foundation.org,
	Nigel Cunningham <ncunningham@crca.org.au>
Subject: Re: [RFC Disable suspend on a specific device] This is	a little change in linux power scheme
Date: Mon, 20 Apr 2009 13:46:51 +0100	[thread overview]
Message-ID: <20090420124650.GD8776@sirena.org.uk> (raw)
In-Reply-To: <20090407080611.GF1408@ucw.cz>

On Tue, Apr 07, 2009 at 10:06:11AM +0200, Pavel Machek wrote:

> > the WM8753.  Audio from a bluetooth headset is decoded by and sent digitially 
> > to the WM8753 which does the digital to analogue conversion and 
> > routes it out via the appropriate outputs.
> > Analogue problem has the ti-caplyso when the audio is routed for a phone call.

> I still believe it should be done in the driver... at least
> today. Perhaps driver should just keep i2s/bluetooth powered up when
> it is in use.

The driver needs some way to figure out what it's supposed to do - it's
not immediately obvious without some policy information if suspend means
to suspend everything or if things that can keep working should do so.
The natural assumption for most systems would be that suspend means
suspend everything so that's what ASoC (the embedded audio subsystem
within ALSA) is doing.

Note also that there are multiple drivers involved in this decision.
The audio subsystem is separate from the bluetooth subsystem (which is
mostly managed from user space rather than by a driver) and the audio
subsystem is itself decomposed with three separate drivers in play,
though there is also an entry point for the subsystem which orchestrates
the audio side.  Keeping the audio live if the bluetooth suspends isn't
too useful.

> Perhaps we need new state 'sleep but keep working' for cases like
> that; echo mem > state should force machine to drop calls etc. There
> should be another value where stuff that is in use keeps being powered
> up; I also suspect that that's what android wants to use. 

That kind of devolves towards always driving to the lowest power
consumption (which we want to do anyway).  I suspect setting it system
wide would end up being too coarse grained.

  reply	other threads:[~2009-04-20 12:46 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 10:29 [RFC Disable suspend on a specific device] This is a little change in linux power scheme Michael Trimarchi
2009-04-07 13:45 ` Rafael J. Wysocki
2009-04-07 15:39   ` Michael Trimarchi
2009-04-07 18:55     ` Rafael J. Wysocki
2009-04-07 19:01       ` Michael Trimarchi
2009-04-07 20:40         ` Pavel Machek
2009-04-07 20:57         ` Rafael J. Wysocki
2009-04-07 21:31           ` Alan Stern
2009-04-07 21:38             ` Pavel Machek
2009-04-07 22:25               ` Nigel Cunningham
2009-04-08  5:59                 ` Michael Trimarchi
2009-04-08  8:13                   ` Rafael J. Wysocki
2009-04-08  8:24                     ` Michael Trimarchi
2009-04-08  8:34                       ` Rafael J. Wysocki
2009-04-08  8:45                         ` Michael Trimarchi
2009-04-07  8:06                           ` Pavel Machek
2009-04-20 12:46                             ` Mark Brown [this message]
2009-04-20 12:55                               ` Michael Trimarchi
2009-04-08 11:42                         ` Mark Brown
2009-04-08 16:44                           ` Igor Stoppa
2009-04-08 18:23                             ` Mark Brown
2009-04-08 19:53                               ` Igor Stoppa
2009-04-09 14:33                                 ` Mark Brown
2009-04-07 21:40             ` Rafael J. Wysocki
2009-04-08 11:53               ` Mark Brown
2009-04-08 16:45                 ` Igor Stoppa
2009-04-10 11:17                 ` Pavel Machek
2009-04-08 20:37               ` Alan Stern
2009-04-08 21:25                 ` Michael Trimarchi
2009-04-08 21:56                 ` Rafael J. Wysocki
2009-04-09 18:27                   ` Alan Stern
2009-04-09 22:33                     ` Rafael J. Wysocki

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=20090420124650.GD8776@sirena.org.uk \
    --to=broonie@sirena.org.uk \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=ncunningham@crca.org.au \
    --cc=pavel@ucw.cz \
    /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