Re: [Alsa-devel] pcm_lib.c & pcm_memory.c

2002-07-25 Thread Guilhem Tardy
> > When does the pointer to the next playback/capture audio period rewind? I > > noticed that for more than 2 periods_max, this can happen anytime > > (eg. after 2, 3, ...) even before we reached the end of the buffer. > > it must be after the hw_ptr reaches the end of the buffer. > please check

Re: [Alsa-devel] pcm_lib.c & pcm_memory.c

2002-07-24 Thread Guilhem Tardy
> > OK, then I know how to solve my problem, but it would have been nice to > > avoid copy and silence callbacks, and just get from the substream or > > runtime structure the hw offset where the next period is expected to be > > written to. > > sorry, i don't understand your question. > > regar

Re: [Alsa-devel] pcm_lib.c & pcm_memory.c

2002-07-24 Thread Takashi Iwai
At Wed, 24 Jul 2002 06:53:30 -0700 (PDT), Guilhem Tardy wrote: > > - Takashi Iwai <[EMAIL PROTECTED]> wrote: > > > Where should captured audio data be copied into runtime->dma_area? Is it up > > > to the driver or do capture_copy() and capture_silence() functions take the > > > same role as for p

Re: [Alsa-devel] pcm_lib.c & pcm_memory.c

2002-07-23 Thread Takashi Iwai
At Mon, 22 Jul 2002 11:35:40 -0700 (PDT), Guilhem Tardy wrote: > > Hi all, > > I would have a few questions regarding buffer mgt: > > When is substream->dma_area used for capture or playback? (probably never, as > snd_pcm_lib_malloc_pages() seems to imply that one should only use > substream->r

[Alsa-devel] pcm_lib.c & pcm_memory.c

2002-07-22 Thread Guilhem Tardy
Hi all, I would have a few questions regarding buffer mgt: When is substream->dma_area used for capture or playback? (probably never, as snd_pcm_lib_malloc_pages() seems to imply that one should only use substream->runtime->dma_area) Where should captured audio data be copied into runtime->dma_