alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* : Question cpu_dai->active  & codec_dai->active
@ 2011-03-04 11:04 Bensaid, Selma
  2011-03-11 15:31 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Bensaid, Selma @ 2011-03-04 11:04 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org; +Cc: ext Mark Brown

Hi,

Why the cpu_dai->active and codec_dai->active are not used to check if
the corresponding shutdown or startup callbacks should be called or not?

This could be useful for DAIs that handle capture and playback streams by avoiding:

- perform 2 cpu_dai or codec_dai startup when opening both streams (playback and 
Capture)
- close a cpu_dai or codec_dai for a stream (example playback) while
the 2nd stream (playback) is still running

Thanks,

Selma.


---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: : Question cpu_dai->active  & codec_dai->active
  2011-03-04 11:04 : Question cpu_dai->active & codec_dai->active Bensaid, Selma
@ 2011-03-11 15:31 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-03-11 15:31 UTC (permalink / raw)
  To: Bensaid, Selma; +Cc: alsa-devel@alsa-project.org

On Fri, Mar 04, 2011 at 11:04:20AM +0000, Bensaid, Selma wrote:

> Why the cpu_dai->active and codec_dai->active are not used to check if
> the corresponding shutdown or startup callbacks should be called or not?

> This could be useful for DAIs that handle capture and playback streams by avoiding:

> - perform 2 cpu_dai or codec_dai startup when opening both streams (playback and 
> Capture)
> - close a cpu_dai or codec_dai for a stream (example playback) while
> the 2nd stream (playback) is still running

It's done to allow the driver to make the decision about needing to do
anything - some drivers may need to do per-stream things, those that
don't can work out if they need to do anything.  If it became very
common we could add variants that only get called once but at the minute
we have very few things that support multiple streams in the first
place.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-11 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04 11:04 : Question cpu_dai->active & codec_dai->active Bensaid, Selma
2011-03-11 15:31 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).