Find the answer to your Linux question:
Results 1 to 4 of 4
Hello all, I have bad sound quality in Linux. I cannot play loud music without distorted sound. What's even worse, when I change the volume, I hear crackling (or pops ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    323

    Crackling sound


    Hello all,

    I have bad sound quality in Linux. I cannot play loud music without distorted sound. What's even worse, when I change the volume, I hear crackling (or pops or clipping or whatever, like "kr kr kr").

    I don't have these problems in Windows XP, but I did have them in my Ubuntu installation and I do have them my current Slackware install.

    I use a PCI soundcard, Terratec DMX Xfire, and I have disabled the onboard sound in the BIOS.

    I have PCM at 70%.

    I use XMMS to experiment using different output plugins (OSS, ALSA, ESD) and changing their configurations (e.g. buffersize) but its does not help.

    I also tried to change the latencies of the PCI devices (read that on a forum), like this:

    Code:
    # setpci -v -d '*:*' latency_timer=b0
    01:00.0:0d b0
    00:0d.0:0d b0
    00:0c.0:0d b0
    00:04.0:0d b0
    00:03.3:0d b0
    00:03.0:0d b0
    00:03.1:0d b0
    00:03.2:0d b0
    00:02.5:0d b0
    00:02.0:0d b0
    00:01.0:0d b0
    00:00.0:0d b0
    # setpci -v -s 00:0d.0 latency_timer=ff
    00:0d.0:0d ff
    # lspci -v
    00:00.0 Host bridge: Silicon Integrated Systems [SiS] 746 Host (rev 02)
            Subsystem: Elitegroup Computer Systems: Unknown device 1808
            Flags: bus master, medium devsel, latency 176
            Memory at d0000000 (32-bit, non-prefetchable) [size=128M]
            Capabilities: [c0] AGP version 2.0
    
    00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SG86C202 (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 176
            Bus: primary=00, secondary=01, subordinate=02, sec-latency=64
            Memory behind bridge: cdb00000-cfcfffff
            Prefetchable memory behind bridge: c5700000-cd9fffff
    
    00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge) (rev 04)
            Flags: bus master, medium devsel, latency 0
    
    00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (prog-if 80 [Master])
            Subsystem: Elitegroup Computer Systems: Unknown device 1808
            Flags: bus master, medium devsel, latency 176
            I/O ports at ff00 [size=16]
    
    00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
            Subsystem: Elitegroup Computer Systems: Unknown device 1808
            Flags: bus master, medium devsel, latency 176, IRQ 11
            Memory at cfffc000 (32-bit, non-prefetchable) [size=4K]
    
    00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
            Subsystem: Elitegroup Computer Systems: Unknown device 1808
            Flags: bus master, medium devsel, latency 176, IRQ 10
            Memory at cfffd000 (32-bit, non-prefetchable) [size=4K]
    
    00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
            Subsystem: Elitegroup Computer Systems: Unknown device 1808
            Flags: bus master, medium devsel, latency 176, IRQ 5
            Memory at cfffe000 (32-bit, non-prefetchable) [size=4K]
    
    00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller (prog-if 20 [EHCI])
            Subsystem: Elitegroup Computer Systems: Unknown device 1808
            Flags: bus master, medium devsel, latency 176, IRQ 10
            Memory at cffff000 (32-bit, non-prefetchable) [size=4K]
            Capabilities: [50] Power Management version 2
    
    00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
            Subsystem: Elitegroup Computer Systems: Unknown device 1808
            Flags: bus master, medium devsel, latency 176, IRQ 10
            I/O ports at dc00 [size=256]
            Memory at cffdb000 (32-bit, non-prefetchable) [size=4K]
            Expansion ROM at cffa0000 [disabled] [size=128K]
            Capabilities: [40] Power Management version 2
    
    00:0c.0 Ethernet controller: Digital Equipment Corporation DECchip 21041 [Tulip Pass 3] (rev 21)
            Flags: bus master, medium devsel, latency 176, IRQ 11
            I/O ports at d800 [size=128]
            Memory at cfffbf80 (32-bit, non-prefetchable) [size=128]
            Expansion ROM at cff40000 [disabled] [size=256K]
    
    00:0d.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
            Subsystem: TERRATEC Electronic GmbH: Unknown device 112e
            Flags: bus master, slow devsel, latency 248, IRQ 10
            Memory at cfffa000 (32-bit, non-prefetchable) [size=4K]
            Memory at cfe00000 (32-bit, non-prefetchable) [size=1M]
            Capabilities: [40] Power Management version 2
    
    01:00.0 VGA compatible controller: nVidia Corporation NV20 [GeForce3 Ti 500] (rev a3) (prog-if 00 [VGA])
            Subsystem: nVidia Corporation: Unknown device 010c
            Flags: bus master, 66Mhz, medium devsel, latency 176, IRQ 11
            Memory at ce000000 (32-bit, non-prefetchable) [size=16M]
            Memory at c8000000 (32-bit, prefetchable) [size=64M]
            Memory at cd980000 (32-bit, prefetchable) [size=512K]
            Expansion ROM at cfcf0000 [disabled] [size=64K]
            Capabilities: [60] Power Management version 2
            Capabilities: [44] AGP version 2.0

    It did not help either (And I also don't really know what it all means).

    What can I do to get better sound?

    Also: if i want to experiment and skip as many layers between an mp3 and the soundcard, which output plugin should I use? OSS? ESD?

    Thanks if you take the time to help me.

    P.S. I hope I'm in the right forum. My problem is not Linux distro specific, otherwise I would post it in the forum of my distro.

  2. #2
    Linux Newbie
    Join Date
    Aug 2005
    Posts
    214
    You experienced the same crackling while using ALSA, OSS, aRts... is that true?

    Could this be an encoder problem? Do you hear noise while playing only mp3 or any other file also? Try playing wav, or audio CD. If sound is crackling in all cases then I would recommend you to look for the latest driver available for you soundcard, otherwise examine audio codec you use.

    P.S.: OSS is deprecated, I would recommend using ALSA.

  3. #3
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    323
    Hi RustamB!

    thanks for the reply!

    I took me a while to be able to play an audio CD (at the moment I can only play them as root), but there's not much improvement: still the crackling when I slide the volume up or down, which ever output plugin use.

    I've just noticed this crackling is only coming from the right speaker. Odd...

    Let me hear if there's still crackling when I plug in headphones...

    ...there is.

    I'm going to experiment some more with the hardware and then report back here...

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    323
    There's only crackling from both channels of one of the line outs of my soundcard, the one that's amplified (but only in Linux).

    There's also crackling when I'm not playing any music, as long as I change the volume of this amplified line out, through the PCM or Master slides in e.g. Aumix or ALSAmixer. It becomes louder if I turn up the volume.

    I'm trying some of the tricks here:

    http://www.alsa-project.org/alsa-doc...&module=cs46xx


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •