All of lore.kernel.org
 help / color / mirror / Atom feed
* pcm transfer methods
@ 2002-07-22  8:38 Maarten de Boer
  2002-07-23 10:08 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Maarten de Boer @ 2002-07-22  8:38 UTC (permalink / raw)
  To: alsa-devel

i am going through the alsa-lib/test/pcm.c example, and i am
wondering about the different transfer methods available. are
there any guidelines or suggetions which method to use in 
which particular situation?

maarten



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

* Re: pcm transfer methods
  2002-07-22  8:38 pcm transfer methods Maarten de Boer
@ 2002-07-23 10:08 ` Takashi Iwai
  2002-11-18 18:54   ` driver's mixer interface Guilhem Tardy
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2002-07-23 10:08 UTC (permalink / raw)
  To: Maarten de Boer; +Cc: alsa-devel

At Mon, 22 Jul 2002 10:38:52 +0200,
Maarten de Boer wrote:
> 
> i am going through the alsa-lib/test/pcm.c example, and i am
> wondering about the different transfer methods available. are
> there any guidelines or suggetions which method to use in 
> which particular situation?

please note the following is only my understanding:

for a serious audio use, mmap ("direct" in pcm.c) is the most
efficient method, if you can use it.
but it's not supported on every environment.
the mmap model is dependent on your card/pcm.
if the card supports non-interleaved only, then the mmap must be
non-interleaved, too.

"write" (and poll) is often easier for coding and for porting from/to
other OS.

"async" would be a choice if you cannot use (or don't want) threads
but want to process other things concurrently.
although there are some restrictions, in most cases this works fine.
the latency is not ensured like a thread scheduled with a high
priority, though.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

* driver's mixer interface
  2002-07-23 10:08 ` Takashi Iwai
@ 2002-11-18 18:54   ` Guilhem Tardy
  2002-11-28 15:53     ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Guilhem Tardy @ 2002-11-18 18:54 UTC (permalink / raw)
  To: alsa-devel

Hi all,

Could anyone tell me the purpose of the "index" field in struct snd_kcontrol_t
?

Thanks,
Guilhem.


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html

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

* Re: driver's mixer interface
  2002-11-18 18:54   ` driver's mixer interface Guilhem Tardy
@ 2002-11-28 15:53     ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2002-11-28 15:53 UTC (permalink / raw)
  To: Guilhem Tardy; +Cc: alsa-devel

At Mon, 18 Nov 2002 10:54:09 -0800 (PST),
Guilhem Tardy wrote:
> 
> Hi all,
> 
> Could anyone tell me the purpose of the "index" field in struct snd_kcontrol_t
> ?

if there are controls with the same name (e.g. a card with several
codec chips), they can be distinguished by different indices.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

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

end of thread, other threads:[~2002-11-29 20:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-22  8:38 pcm transfer methods Maarten de Boer
2002-07-23 10:08 ` Takashi Iwai
2002-11-18 18:54   ` driver's mixer interface Guilhem Tardy
2002-11-28 15:53     ` Takashi Iwai

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.