[alsa-devel] [PATCH] Two patches for Alsa-plugins (pulse)

Raymond Yau superquad.vortex2 at gmail.com
Sat Jul 10 04:07:18 CEST 2010


2010/7/10 David Henningsson <launchpad.web at epost.diwic.se>

>
>
> The question is - is there an application that detects the underrun
> condition and actually acts on that condition? If so, this could be a
> regression for that app. For other apps it's an improvement, for the
> reasons originally stated.
>
> // David
>

Some application (e.g. xmms and audacious) allow user to configure the
period/buffer time

I don't know why the alsa-lib/test/latency did not run when using pulse
device


./latency -P pulse -C pulse -m 8192 -M 8192 -t 1 -p
/home/raymond/alsa-lib/test/.libs/lt-latency: invalid option -- 't'
!!!Scheduler set to Round Robin with priority 99 FAILED!!!
Playback device is pulse
Capture device is pulse
Parameters are 22050Hz, S16_LE, 2 channels, non-blocking mode
Poll mode: yes
Loop limit is 661500 frames, minimum latency = 8192, maximum latency = 8192



alsa-lib/test/latency -P hw:1,0 -C hw:1,0 -m 8192 -M 8192 -t 1 -p
/home/raymond/alsa-lib/test/.libs/lt-latency: invalid option -- 't'
!!!Scheduler set to Round Robin with priority 99 FAILED!!!
Playback device is hw:1,0
Capture device is hw:1,0
Parameters are 22050Hz, S16_LE, 2 channels, non-blocking mode
Poll mode: yes
Loop limit is 661500 frames, minimum latency = 8192, maximum latency = 8192
Hardware PCM card 1 'HDA Intel' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 22050
  exact rate   : 22050 (22050/1)
  msbits       : 16
  buffer_size  : 8192
  period_size  : 4096
  period_time  : 185759
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 4096
  period_event : 0
  start_threshold  : 2147483647
  stop_threshold   : 8192
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0
Hardware PCM card 1 'HDA Intel' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 22050
  exact rate   : 22050 (22050/1)
  msbits       : 16
  buffer_size  : 8192
  period_size  : 4096
  period_time  : 185759
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 4096
  period_event : 0
  start_threshold  : 2147483647
  stop_threshold   : 8192
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0
Trying latency 8192 frames, 371519.274us, 371.519274ms (2.6917Hz)
Success
Playback:
*** frames = 671744 ***
  state       : RUNNING
  trigger_time: 14895.45132386
  tstamp      : 14925.138525741
  delay       : 8144
  avail       : 48
  avail_max   : 4152
Capture:
*** frames = 663552 ***
  state       : RUNNING
  trigger_time: 14895.45132386
  tstamp      : 14925.138585923
  delay       : 1
  avail       : 1
  avail_max   : 4097
Maximum read: 4096 frames
Maximum read latency: 185759.637us, 185.759637ms (5.3833Hz)
Hardware sync
Playback time = 14895.45132, Record time = 14895.45132, diff = 0


More information about the Alsa-devel mailing list