All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <ladischc@informatik.uni-halle.de>
To: Steve deRosier <derosier@pianodisc.com>
Cc: Alsa-Devel <alsa-devel@lists.sourceforge.net>
Subject: Re: hw pause in USB
Date: Tue, 13 Dec 2005 10:16:51 +0100	[thread overview]
Message-ID: <20051213091651.GA23938@turing.informatik.uni-halle.de> (raw)
In-Reply-To: <439E2735.4060700@pianodisc.com>

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

  reply	other threads:[~2005-12-13  9:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13  1:43 hw pause in USB Steve deRosier
2005-12-13  9:16 ` Clemens Ladisch [this message]
2005-12-13 11:14   ` Takashi Iwai
2005-12-13 17:31     ` Steve deRosier
2005-12-13 18:20       ` Takashi Iwai
2005-12-28 23:37 Steve DeRosier
2006-01-04  0:19 ` Steve deRosier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051213091651.GA23938@turing.informatik.uni-halle.de \
    --to=ladischc@informatik.uni-halle.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=derosier@pianodisc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.