From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: trigger commands Date: Mon, 24 Mar 2003 12:00:20 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") 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: Giuliano Pochini Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Mon, 24 Mar 2003 11:48:50 +0100 (CET), Giuliano Pochini wrote: > > > >> What are PUSH, RELEASE, SUSPEND, RESUME trigger commands supposed to do > >> ? > > > > * pcm stream pausing > > imagine the pause-button is pushed and released. > > these commands are issued only when SNDRV_PCM_INFO_PAUSE is set to > > info field of snd_pcm_hardware_t. > > > > - PAUSE_PUSH > > pause the stream > > - PAUSE_RELEASE > > restart the paused stream > > 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. Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf