Comment 6 for bug 479375

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 479375] [NEW] Audio stutters and glitches (Karmic, Intel HDA ICH8)

If you're using VLC, make sure you're using the pulse output for it and not
the ALSA output.

On Nov 9, 2009 1:25 PM, "Alexander Bethke" <email address hidden>
wrote:

Public bug reported:

I'm having the problem of crackling and stuttering audio since Ubuntu
Karmic (final). Sometimes gstreamer even kills the current playback
stream with an error. I did a fresh install to make sure it is not
caused by any update artefacts. I have not had any audio problems with
this setup since Intrepid: ThinkPad R61, soundcard: 82801H (ICH8 Family)
HD Audio Controller

I opened a new bug as even though the symptoms seem to be similar to
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/376374 . Still I
think this is not a duplicate of that bug for the following reasons:
- As opposed to some people with the above-mentioned bug, the problem is not
fixed by changing the resampling method.
- Also when I kill pulseaudio and let a player use alsa straight, the
problem persists.
Based on that I guess the problem should not be in pulseaudio, but either in
the alsa driver or something else. I somehow have a hunch that there could
be something broken in the process-scheduling/resource-prioritisation. Here
my observations regarding that:

The drop-outs appear irregularly. Sometimes there is around half a minute
between them, sometimes the appear several times a second. It seems to
depend on what happens else in the system, even though I could not make out
any pattern. System and CPU load figures are not proportional to the
problems, neither are net or disk I/O. I could not make out any suspicious
processes in top or system monitor.
Another observation is that there is similar stuttering behaviour in the
mouse movement, that one hangs frequently for a little moment. Sometimes I
can reproduce that by hitting enter in the firefox search box while circling
the mouse pointer, but then sometimes this does not interrupt the
mouse-movement at all.

In lack of an idea how to log on the alsa-level, I made a verbose-log
(attached) of pulse playing back a file (using vlc), producing those
glitches. I gonna attach a log with an output example of vlc and a
corresponding top snapshot corresponding to this case.

I know the information is not very focussed, but this should get you
started to help me to get to the right places for finding out what is
actually wrong.

Regards, Alex

ProblemType: Bug
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC0D0p: alex 3269 F...m vlc
 /dev/snd/timer: alex 3269 F.... vlc
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe220000 irq 17'
  Mixer name : 'Analog Devices AD1984'
  Components : 'HDA:11d41984,17aa20bb,00100400'
  Controls : 29
  Simple ctrls : 18
Date: Mon Nov 9 19:42:18 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: alsa-base 1.0.20+dfsg-1ubuntu5
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_DK.UTF-8
 LANG=en_DK.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: alsa-driver
Tags: ubuntu-unr
Uname: Linux 2.6.31-14-generic i686

** Affects: alsa-driver (Ubuntu)
    Importance: Undecided
        Status: New

** Tags: apport-bug i386 ubuntu-unr

--
Audio stutters and glitches (Karmic, Intel HDA ICH8)
https://bugs.launchpad.net/bugs/479375
You received this bug notification because you are a member of Ubuntu
Audio Team, which is subscribed to alsa-driver in ubuntu.

Status in “alsa-driver” package in Ubuntu: New

Bug description:
I'm having the problem of crackling and stuttering audio since Ubuntu Karmic
(final). Sometimes gstreamer even kills the current playback stream with an
error. I did a fresh install to make sure it is not caused by any update
artefacts. I have not had any audio problems with this setup since Intrepid:
ThinkPad R61, soundcard: 82801H (ICH8 Family) HD Audio Controller

I opened a new bug as even though the symptoms seem to be similar to
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/376374 . Still I
think this is not a duplicate of that bug for the following reasons:
- As opposed to some people with the above-mentioned bug, the problem is not
fixed by changing the resampling method.
- Also when I kill pulseaudio and let a player use alsa straight, the
problem persists.
Based on that I guess the problem should not be in pulseaudio, but either in
the alsa driver or something else. I somehow have a hunch that there could
be something broken in the process-scheduling/resource-prioritisation. Here
my observations regarding that:

The drop-outs appear irregularly. Sometimes there is around half a minute
between them, sometimes the appear several times a second. It seems to
depend on what happens else in the system, even though I could not make out
any pattern. System and CPU load figures are not proportional to the
problems, neither are net or disk I/O. I could not make out any suspicious
processes in top or system monitor.
Another observation is that there is similar stuttering behaviour in the
mouse movement, that one hangs frequently for a little moment. Sometimes I
can reproduce that by hitting enter in the firefox search box while circling
the mouse pointer, but then sometimes this does not interrupt the
mouse-movement at all.

In lack of an idea how to log on the alsa-level, I made a verbose-log
(attached) of pulse playing back a file (using vlc), producing those
glitches. I gonna attach a log with an output example of vlc and a
corresponding top snapshot corresponding to this case.

I know the information is not very focussed, but this should get you started
to help me to get to the right places for finding out what is actually
wrong.

Regards, Alex

ProblemType: Bug
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC0D0p: alex 3269 F...m vlc
 /dev/snd/timer: alex 3269 F.... vlc
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe220000 irq 17'
  Mixer name : 'Analog Devices AD1984'
  Components : 'HDA:11d41984,17aa20bb,00100400'
  Controls : 29
  Simple ctrls : 18
Date: Mon Nov 9 19:42:18 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: alsa-base 1.0.20+dfsg-1ubuntu5
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_DK.UTF-8
 LANG=en_DK.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: alsa-driver
Tags: ubuntu-unr
Uname: Linux 2.6.31-14-generic i686