[alsa-devel] Forward/rewind APIs return 0

Aggarwal, Anuj anuj.aggarwal at ti.com
Fri May 16 12:56:21 CEST 2008


The output from snd_pcm_status_dump () is as below:

Playback Buffer number:2
STRecordAudio: Success for buffer 2, 1078935560
STPlaybackAudio: Success for buffer 2, 1078935560
Before:
  state       : RUNNING
  trigger_time: 4621.974609375
  tstamp      : 4656.881958007
  delay       : 32739
  avail       : 29
  avail_max   : 2048
Playback : Forward No Action
After:
  state       : RUNNING
  trigger_time: 4621.974609375
  tstamp      : 4656.882232666
  delay       : 32726
  avail       : 42
  avail_max   : 42
Playback Buffer number:2
STRecordAudio: Success for buffer 3, 1079988232
STPlaybackAudio: Success for buffer 2, 1078935560
Before:
  state       : RUNNING
  trigger_time: 4621.974609375
  tstamp      : 4668.769989013
  delay       : 32740
  avail       : 28
  avail_max   : 2048
Playback : Forward No Action
After:
  state       : RUNNING
  trigger_time: 4621.974609375
  tstamp      : 4668.770141601
  delay       : 32733
  avail       : 35
  avail_max   : 35
Playback Buffer number:2

I am able to jump but snd_pcm_forward() returns 0. Any sample showing the usage will really help.

Thanks and Regards,
Anuj Aggarwal


-----Original Message-----
From: Jaroslav Kysela [mailto:perex at perex.cz]
Sent: Thursday, May 15, 2008 5:00 PM
To: Aggarwal, Anuj
Cc: alsa-devel at alsa-project.org
Subject: RE: [alsa-devel] Forward/rewind APIs return 0

On Thu, 15 May 2008, Aggarwal, Anuj wrote:

> Please find the output from snd_pcm_dump() attached.

Ok, replace snd_pcm_dump() with snd_pcm_status_dump() and send output
again, please. Also, if you can send me (privately) your test code, I'll
try to check it and reproduce the problem.

                                                Jaroslav

-----
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list