touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #69969
[Bug 996906]
Both commands produce underruns at large, audible and visible in the
output.
> aplay -D hw:0,0 -v --buffer-time=4000 /tmp/fr025.wav
Playing WAVE '/tmp/fr025.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Hardware PCM card 0 'HDA Intel PCH' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 192
period_size : 32
period_time : 725
tstamp_mode : NONE
period_step : 1
avail_min : 32
period_event : 0
start_threshold : 192
stop_threshold : 192
silence_threshold: 0
silence_size : 0
boundary : 6917529027641081856
appl_ptr : 0
hw_ptr : 0
underrun!!! (at least 4.191 ms long)
Status:
state : XRUN
trigger_time: 3336.7694317
tstamp : 3336.11882117
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 1.832 ms long)
Status:
state : XRUN
trigger_time: 3336.30152303
tstamp : 3336.31983077
delay : 0
avail : 194
avail_max : 194
underrun!!! (at least 0.312 ms long)
Status:
state : XRUN
trigger_time: 3337.6068547
tstamp : 3337.6379149
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 4.293 ms long)
Status:
state : XRUN
trigger_time: 3339.4484089
tstamp : 3339.8775797
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 11.592 ms long)
Status:
state : XRUN
trigger_time: 3343.6272217
tstamp : 3343.17862683
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 2.310 ms long)
Status:
state : XRUN
trigger_time: 3343.700965780
tstamp : 3343.703274524
delay : 0
avail : 200
avail_max : 200
^CAborted by signal Interrupt...
> aplay -D hw:0,0 -v --period-time=2000 --buffer-time=4000 /tmp/fr025.wav
Playing WAVE '/tmp/fr025.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Hardware PCM card 0 'HDA Intel PCH' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 192
period_size : 96
period_time : 2176
tstamp_mode : NONE
period_step : 1
avail_min : 96
period_event : 0
start_threshold : 192
stop_threshold : 192
silence_threshold: 0
silence_size : 0
boundary : 6917529027641081856
appl_ptr : 0
hw_ptr : 0
underrun!!! (at least 8.673 ms long)
Status:
state : XRUN
trigger_time: 3355.4367755
tstamp : 3355.13037189
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 2.189 ms long)
Status:
state : XRUN
trigger_time: 3356.24657841
tstamp : 3356.26845873
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 2.160 ms long)
Status:
state : XRUN
trigger_time: 3358.690871062
tstamp : 3358.693029225
delay : 0
avail : 281
avail_max : 281
underrun!!! (at least 3.647 ms long)
Status:
state : XRUN
trigger_time: 3360.9384022
tstamp : 3360.13029349
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 1.095 ms long)
Status:
state : XRUN
trigger_time: 3361.11945732
tstamp : 3361.13039182
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 3.016 ms long)
Status:
state : XRUN
trigger_time: 3361.132006217
tstamp : 3361.135020659
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 0.352 ms long)
Status:
state : XRUN
trigger_time: 3361.465478201
tstamp : 3361.465829023
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 2.799 ms long)
Status:
state : XRUN
trigger_time: 3361.502227029
tstamp : 3361.505024503
delay : 0
avail : 200
avail_max : 200
underrun!!! (at least 0.019 ms long)
Status:
state : XRUN
trigger_time: 3361.513310022
tstamp : 3361.513327710
delay : 0
avail : 200
avail_max : 200
^CAborted by signal Interrupt...
Also, after I do:
echo 1 > /proc/asound/card0/pcm0p/xrun_debug
I have lots of this in dmesg:
[ 3504.140844] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=56, new_hw_ptr=809, old_hw_ptr=753)
[ 3504.143264] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=72, new_hw_ptr=913, old_hw_ptr=841)
[ 3504.148353] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=72, new_hw_ptr=1137, old_hw_ptr=1065)
[ 3504.150102] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=80, new_hw_ptr=1217, old_hw_ptr=1137)
[ 3504.156337] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=72, new_hw_ptr=1489, old_hw_ptr=1417)
[ 3504.157990] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=72, new_hw_ptr=1561, old_hw_ptr=1489)
[ 3504.169408] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=72, new_hw_ptr=2065, old_hw_ptr=1993)
[ 3504.170967] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=72, new_hw_ptr=2137, old_hw_ptr=2065)
[ 3504.179684] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=72, new_hw_ptr=2521, old_hw_ptr=2449)
[ 3504.194902] ALSA: PCM: [Q] Lost interrupts?: (stream=0, delta=80, new_hw_ptr=121, old_hw_ptr=41)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/996906
Title:
periodic audio skips with Intel HDA
Status in PulseAudio sound server:
Confirmed
Status in pulseaudio package in Ubuntu:
Confirmed
Bug description:
When running PulseAudio, if I'm playing music via any source (Exaile, Totem,
Flash in Firefox or Chromium, VLC, etc.) every few minutes the audio will skip
once or twice. top doesn't show any process eating CPU any more when it
happens. dmesg doesn't show anything. Nothing else seems to be affected. It
doesn't seem to happen regularly.
I just installed Ubuntu 12.04 from scratch (with pulseaudio 1:1.1-0ubuntu15),
but the same thing happened in 10.04 on the same hardware. Uninstalling the
PulseAudio packages and going back to ALSA gives me no issues whatsoever, which
is how I know the issue is with PulseAudio. I'm using my onboard audio device:
$ lspci | grep Audio
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel
HDA)
Following mailing list instructions, pulseaudio -vvvv --log-time shows during a
skip:
( 684.030| 5.000) I: [alsa-sink] alsa-sink.c: Underrun!
( 684.030| 0.000) I: [alsa-sink] alsa-sink.c: Increasing minimal latency to
26.00 ms
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 26.00ms
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=60952
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15944
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 26.00ms
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=60952
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15944
( 684.031| 0.000) D: [alsa-sink] protocol-native.c: Underrun on 'ALSA
Playback', 0 bytes in queue.
( 684.036| 0.004) D: [alsa-sink] protocol-native.c: Requesting rewind due to
end of underrun.
( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: Requested to rewind 10940
bytes.
( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: Limited to 3320 bytes.
( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: before: 830
( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: after: 830
( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: Rewound 3320 bytes.
( 684.036| 0.000) D: [alsa-sink] sink.c: Processing rewind...
( 684.036| 0.000) D: [alsa-sink] sink.c: latency = 1337
( 684.036| 0.000) D: [alsa-sink] sink-input.c: Have to rewind 3320 bytes on
render memblockq.
( 684.036| 0.000) D: [alsa-sink] source.c: Processing rewind...
( 696.234| 12.197) I: [alsa-sink] alsa-sink.c: Underrun!
( 696.234| 0.000) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
15.99 ms
( 702.033| 5.799) I: [alsa-sink] alsa-sink.c: Underrun!
( 702.033| 0.000) I: [alsa-sink] alsa-sink.c: Increasing minimal latency to
36.00 ms
( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 36.00ms
( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=59188
( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15680
( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 36.00ms
( 702.034| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=59188
( 702.034| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15680
( 702.034| 0.000) D: [alsa-sink] protocol-native.c: Underrun on 'ALSA
Playback', 0 bytes in queue.
...and it goes on.
The "Underrun!" messages alone happened a few times before, but it
didn't skip.
I'd like to use PulseAudio, but it's pretty annoying having audio skip all the
time.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pulseaudio 1:1.1-0ubuntu15
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: toxite 2136 F.... pulseaudio
/dev/snd/pcmC0D0p: toxite 2136 F...m pulseaudio
Card0.Amixer.info:
Card hw:0 'SB'/'HDA ATI SB at 0xfe024000 irq 16'
Mixer name : 'Realtek ALC889'
Components : 'HDA:10ec0889,1458a102,00100004'
Controls : 48
Simple ctrls : 22
Date: Tue May 8 21:45:17 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: pulseaudio
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/03/2009
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F2
dmi.board.name: GA-790FXTA-UD5
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF2:bd12/03/2009:svnGigabyteTechnologyCo.,Ltd.:pnGA-790FXTA-UD5:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-790FXTA-UD5:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-790FXTA-UD5
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
To manage notifications about this bug go to:
https://bugs.launchpad.net/pulseaudio/+bug/996906/+subscriptions