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 playback? > > > > yes. if copy and silence callbacks are defined, then it's up to the > > driver. > > 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. regardless of the existence of copy callbacks, the hw_ptr is updated automatically. it has nothing to do with the behavior of copy/silence. copy and silence callbacks are called to replace on behalf of copy_from/to_user(). Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel