From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: prepare(substream) Date: Fri, 21 Jun 2002 15:43:34 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20020619184915.27895.qmail@web11508.mail.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20020619184915.27895.qmail@web11508.mail.yahoo.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Guilhem Tardy Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 19 Jun 2002 11:49:14 -0700 (PDT), Guilhem Tardy wrote: > > I believe that I have misunderstood the meaning of this function, could anyone > explain? > > In a test of a driver, I see this sequence for playback: > pointer() > copy() > prepare() > copy() > pointer() > copy() > pointer() > pointer() > ... usually prepare() callback is called at the first before copy() etc. but please note that prepare() may be called multiple times. for example, on oss emulation, each time when the condition like sample format, rates is changed, prepare() is called to set the latest status. Takashi ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/