[alsa-devel] noise and consume pcm faster

Nie Jun niej0001 at gmail.com
Fri Sep 5 06:02:33 CEST 2008


Thank Takashi for your advice.

I check /proc/asound/card0/pcm0p/sub0/* files, buffer_sizes of both ALSA and
OSS have integer period_size. Maybe other setting causes this issue, but I
can not find it. Would you guys please help have a look at these file?

Thank you very much!

=========== ALSA hw_params ===========
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 480
buffer_size: 9600

----------------- OSS hw_params ---------------------
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 256
buffer_size: 5120
OSS format: S16_LE
OSS channels: 2
OSS rate: 48000
OSS period bytes: 1024
OSS periods: 20
OSS period frames: 256

=========== ALSA sw_params ===========
tstamp_mode: NONE
period_step: 1
avail_min: 480
start_threshold: 9600
stop_threshold: 9600
silence_threshold: 0
silence_size: 0
boundary: 1258291200

----------------- OSS sw_params ---------------------
tstamp_mode: NONE
period_step: 1
avail_min: 1
start_threshold: 1
stop_threshold: 5120
silence_threshold: 272
silence_size: 272
boundary: 1342177280

=========== ALSA status ==========
state: RUNNING
trigger_time: 946744218.914947510
tstamp      : 946744304.440704346
delay       : 8924
avail       : 676
avail_max   : 1940
-----
hw_ptr      : 4105180
appl_ptr    : 4114104

---------------------- OSS status --------------------------
state: RUNNING
trigger_time: 946744382.661376953
tstamp      : 946744410.868988037
delay       : 4908
avail       : 212
avail_max   : 4876
-----
hw_ptr      : 1353952
appl_ptr    : 1358860

============= ALSA OSS has same info -----------------------------
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: I2S HiFi I2S HiFi-PCM-0
name:
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0



2008/9/3 Takashi Iwai <tiwai at suse.de>:- 显示引用文字 -


More information about the Alsa-devel mailing list