From: Guilhem Tardy Subject: Re: pcm_lib.c & pcm_memory.c Date: Wed, 24 Jul 2002 07:27:55 -0700 (PDT) Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20020724142755.24288.qmail@web11504.mail.yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Takashi Iwai Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org > > 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(). Sorry if I wasn't clear. I have seen the snd_pcm_lib_read_transfer(), but rather than define my own capture copy function, I would have preferred to write directly to the place in dma_area expected by the framework. In other words, is the hw offset stored in any structure accessible from a substream? The other option (that I am pursuing now) is to write a capture_copy() function and manage my own hw offset in parallel. Guilhem. __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf