From: Clemens Ladisch Subject: Re: hw pause in USB Date: Tue, 13 Dec 2005 10:16:51 +0100 Message-ID: <20051213091651.GA23938@turing.informatik.uni-halle.de> References: <439E2735.4060700@pianodisc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <439E2735.4060700@pianodisc.com> Content-disposition: inline Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Steve deRosier Cc: Alsa-Devel List-Id: alsa-devel@alsa-project.org Steve deRosier wrote: > When running my player via commandline and pressing pause, I get the > following error message out of ALSA lib: > > ALSA lib pcm_hw.c:535:(snd_pcm_hw_pause) SNDRV_PCM_IOCTL_PAUSE failed: > Function not implemented > > I'm guessing that the USB driver doesn't implement pause. Yes. > My program implements pause by calling snd_pcm_pause( hPCM, 1 );. You cannot call snd_pcm_pause() when the device doesn't support it (it should have returned an error code). See snd_pcm_hw_params_can_pause(). > * Is there a better way to implement pause in my client program? snd_pcm_stop() HTH Clemens ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click