All of lore.kernel.org
 help / color / mirror / Atom feed
* snd_async_add_pcm_handler() and SND_PCM_ACCESS_MMAP_INTERLEAVED
@ 2003-05-15  8:23 Peter Vollmer
  2003-05-15  9:11 ` Jaroslav Kysela
  2003-05-15 12:18 ` Paul Davis
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Vollmer @ 2003-05-15  8:23 UTC (permalink / raw)
  To: alsa-devel

Hi all,

I am trying to use the mmap access method together with an async_handler 
function (ice1712 in multitrack mode),
but in a setting where multiple periods fit into a buffer, I get back the 
same address pointer to the accessible data in  snd_pcm_mmap_begin(...) in 
areas[x].addr multiple times (one for every period in the buffer, I guess) 
in the signal handler. I was following the pcm.c sinus generator demo more 
or less, but the combination of mmap/async_handler is not used there.

I was trying to dereference the appl.ptr and hw.ptr pointers from the 
snd_pcm_t handler to get exact information about the buffer pointers, but 
this does not work from my application since the struct type definition of 
snd_pcm_t seems to be hidden. What else can I use to get information about 
the pointers inside the capturing buffer ? Or did I simply fail to include 
the right header ?

Thanks for any hints

Peter



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <Your message of "Thu, 15 May 2003 10:23:41 +0200." <5.1.0.14.2.20030515095924.03421e38@pop.gmx.net>]

end of thread, other threads:[~2003-05-15 14:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15  8:23 snd_async_add_pcm_handler() and SND_PCM_ACCESS_MMAP_INTERLEAVED Peter Vollmer
2003-05-15  9:11 ` Jaroslav Kysela
2003-05-15 12:18 ` Paul Davis
2003-05-15 12:55   ` Takashi Iwai
2003-05-15 13:52     ` Paul Davis
2003-05-15 14:05       ` Jaroslav Kysela
2003-05-15 14:28         ` Paul Davis
     [not found] <Your message of "Thu, 15 May 2003 10:23:41 +0200." <5.1.0.14.2.20030515095924.03421e38@pop.gmx.net>
     [not found] ` <20030515121341.10071gmx1@mx009.gmx.net>
2003-05-15 12:35   ` Peter Vollmer
2003-05-15 13:50     ` Paul Davis

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.