From: Giuliano Pochini Subject: Re: trigger commands Date: Mon, 24 Mar 2003 17:10:40 +0100 (CET) Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit 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 List-Id: alsa-devel@alsa-project.org On 24-Mar-2003 Takashi Iwai wrote: >> Ok, PAUSE_PUSH-->stop() and TRIGGER_STOP-->stop()-and-reset dma >> pointer. In my case RELEASE and START are the same thing. > > note that resetting the dma pointer wouldn't be necessary in STOP > trigger (although it may be safer), since the dma pointer will be > reprogrammed anyway by the succeeding call or prepare callback from > the ALSA middle layer. I didn't know that prepare callback had to reset the dma pointer. That could explain why sometimes the sound "jerks" when I change track with xmms and stop/start/prepare are called 2-3 times in a very short time. Bye. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf