All of lore.kernel.org
 help / color / mirror / Atom feed
* How to do pause/resume in ALSA application
@ 2008-03-05  9:20 Aggarwal, Anuj
  2008-03-05 15:53 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Aggarwal, Anuj @ 2008-03-05  9:20 UTC (permalink / raw)
  To: alsa-devel; +Cc: suresh.raj

Hi, 

 

I am using the snd_pcm_pause API in my application but it is returning
error: Invalid argument. I am passing the PCM handle of the playback
stream which I opened earlier and using to play a WAV file. Although I
am able to hear the WAV file correctly, I am not able to pause. I
checked whether the pause functionality is supported, using
snd_pcm_hw_params_can_pause() and it returned me success.

 

Any help is welcome.

 

Thanks & Regards,

Anuj Aggarwal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to do pause/resume in ALSA application
  2008-03-05  9:20 How to do pause/resume in ALSA application Aggarwal, Anuj
@ 2008-03-05 15:53 ` Clemens Ladisch
  2008-03-05 19:14   ` Aggarwal, Anuj
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2008-03-05 15:53 UTC (permalink / raw)
  To: Aggarwal, Anuj; +Cc: alsa-devel, suresh.raj

Aggarwal, Anuj wrote:
> I am using the snd_pcm_pause API in my application but it is returning
> error: Invalid argument.

This indicates that the driver (or some PCM plugin) does not support
pausing.

> I checked whether the pause functionality is supported, using
> snd_pcm_hw_params_can_pause() and it returned me success.

This is a bug.  What device name did you use when opening the device,
and which driver are you using?


Regards,
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to do pause/resume in ALSA application
  2008-03-05 15:53 ` Clemens Ladisch
@ 2008-03-05 19:14   ` Aggarwal, Anuj
  2008-03-06 10:35     ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Aggarwal, Anuj @ 2008-03-05 19:14 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel, suresh.raj

Clemens,

Are you suggesting a bug in the driver or in the library? 

I passed "plughw:0,0" as the device name. We have our own driver for the
audio codec, written as per the ALSA framework.  

Thanks & Regards,
Anuj Aggarwal
 
 

-----Original Message-----
From: alsa-devel-bounces@alsa-project.org
[mailto:alsa-devel-bounces@alsa-project.org] On Behalf Of Clemens
Ladisch
Sent: Wednesday, March 05, 2008 9:23 PM
To: Aggarwal, Anuj
Cc: alsa-devel@alsa-project.org; suresh.raj@gmail.com
Subject: Re: [alsa-devel] How to do pause/resume in ALSA application

Aggarwal, Anuj wrote:
> I am using the snd_pcm_pause API in my application but it is returning
> error: Invalid argument.

This indicates that the driver (or some PCM plugin) does not support
pausing.

> I checked whether the pause functionality is supported, using
> snd_pcm_hw_params_can_pause() and it returned me success.

This is a bug.  What device name did you use when opening the device,
and which driver are you using?


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to do pause/resume in ALSA application
  2008-03-05 19:14   ` Aggarwal, Anuj
@ 2008-03-06 10:35     ` Clemens Ladisch
  0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2008-03-06 10:35 UTC (permalink / raw)
  To: Aggarwal, Anuj; +Cc: alsa-devel, suresh.raj

(please don't top-post)
Aggarwal, Anuj wrote:
> Are you suggesting a bug in the driver or in the library?

Yes.

> I passed "plughw:0,0" as the device name.

The plug plugin doesn't do funny things with pausing, so the bug must
be in the driver.

> We have our own driver for the audio codec, written as per the ALSA
> framework.

I'd guess that the SNDRV_PCM_INFO_PAUSE flag is set, but that the
trigger callback doesn't implement SNDRV_PCM_TRIGGER_PAUSE_PUSH/RELEASE.


HTH
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-06 10:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05  9:20 How to do pause/resume in ALSA application Aggarwal, Anuj
2008-03-05 15:53 ` Clemens Ladisch
2008-03-05 19:14   ` Aggarwal, Anuj
2008-03-06 10:35     ` Clemens Ladisch

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.