Sound on 5.1 system distorted after changing the volume

Bug #796262 reported by zzarko
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: pulseaudio

I have 32-bit Ubuntu 11.04, and Asus P5B Deluxe MB with onboard audio (Intel Corporation 82801H (ICH8 Family) HD Audio Controller rev 02). A few days ago, I bought 5.1 sound system, and after enabling 5.1 setup in preferences, I noticed something weird about sound. After a few hours of fiddling with various controls and googling, here is what I found:
1. Changing Balance, Fade or Subwoofer settings in Sound Preferences/Output makes very heavy distortion of sound from any program (any audio player, mplayer, vlc,...). The distortion is present on all speakers on 5.1 system, and on headphone output on MB also.
2. Changing volume (sound indicator) makes slight metallic distortion (all outputs).
3. Changing sound setup back to Analog Stereo Output makes sound OK again (but, then, 5.1 system isn't working as it is supposed to do).
4. Starting alsamixer and just changing the PCM slider makes sound OK. Also, I had to turn all other sliders except Master to 0db to get good sound (when using sound indicator, it changes Master and PCM settings in alsamixer).

alsamixer makes everything OK, but it is not the way I want to change the volume (I'm used to MM keys for that). Is there a way to make system sound volume to affect alsa's Master control only? This would solve my problem till better solution is found. I tried to restart pulseaudio with PULSE_NO_SIMD=1 (as advised in one bug report), but that didn't solve the problem. Tried to load module-x11-xsmp also (another advice), but also not working.

I suppose that this bug is a duplicate of some other, but I didn't know which one. I saw similar bugs, but none for natty (maybe I didn't search enough).

I must say that I was pleasantly surprised how audio subsystem recognised 5.1 setup and if only wasn't for this distortion, it would be perfect 'plug and play'.

Revision history for this message
zzarko (zzarko-gmail) wrote :

As I was unable to resolve this in a better way, I made a script that resets the PCM volume to 100% every 3 seconds:

#!/bin/bash
#reset PCM volume to 100% (and remove distortion)
while [ 1 ]; do
        amixer sset PCM 100%
        sleep 3s
done

I put it in a Startup Applications, so I don't forget to start it after login. Now I can use standard controls for volume up/down, and the sound is distorted only for a short time. But, I hope that better solution could be found.

Revision history for this message
zzarko (zzarko-gmail) wrote :

The latest patch found in ppa:diwic/ppa (on 21 Jun 2011) solves problem with metallic sound on my system.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
mmalmeida (mmalmeida) wrote :

Issue still present even after zzarko's suggestion.

Revision history for this message
zzarko (zzarko-gmail) wrote :

I changed motherboard on my computer, I now have one with Z68 chipset, and my problems with audio have returned. lspci gives this output:
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)

If I set any audio setup that includes subwoofer (4.1, 5.1) as soon as I touch volume setting (with keyboard or mouse, any way), the sound becomes very distorted (see ogg recording I made).

To make the matter worse, I installed 12.04 beta 2 and I have the exact same problem with audio. The recording I made is from 12.04. Changing PCM level doesn't help anymore.

Revision history for this message
zzarko (zzarko-gmail) wrote :

EDIT: It happens on 4.0 and 5.0 settings also, just right after choosing the setup, but sometimes later. 12.04 is 64-bit.

Revision history for this message
zzarko (zzarko-gmail) wrote :

This problem persists on final Ubuntu 12.04 64-bit, fully updated. It doesn't happen all the time, but at least once a day. When it happens, I have to change Mode in Sound settings from current to something else, and then to take it back. This fixes the sound for some time, but it happens again aftr a while.

Revision history for this message
Raymond (superquad-vortex2) wrote :

Can you post the output of

amixer -c 0

and

amixer -Dpulse

after you get distorted sound with 5.1 sound setting

Revision history for this message
zzarko (zzarko-gmail) wrote :
Download full text (4.3 KiB)

amixer -c 0
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 47 [73%] [-17.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 1 [33%] [10.00dB]
  Front Right: 1 [33%] [10.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 16 [35%] [0.00dB] [on]
  Front Right: Capture 16 [35%] [0.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  It...

Read more...

Revision history for this message
zzarko (zzarko-gmail) wrote :

Interesting thing: If I close the audio source (movie or audio player), and then execute "amixer -c 0", and start the player again, the sound gets back on normal.
Also, I found that If change the volume up and down a couple of times, the sound always becomes distorted. I guess, that's the nature of "random" distortion starting - when I change a volume enough number of times.

Revision history for this message
zzarko (zzarko-gmail) wrote :

I just installed 12.10, updated it, and I still have heavily distorted sound in 5.1 configuration after changing a volume a couple of times. Is there any solution to this?

Revision history for this message
zzarko (zzarko-gmail) wrote :

I also tried adding tsched=0 to default.pa, proposed in Bug #927323, but without success.

Using command proposed in Bug #975135:

pasuspender alsactl init

makes playback normal again. I guess I'll put this in my 3-second bash script for now...

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 11.04 (natty) reached end-of-life on October 28, 2012.
And Ubuntu 12.10 (quantal) reached end-of-life on May 16, 2014.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in pulseaudio (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pulseaudio (Ubuntu) because there has been no activity for 60 days.]

Changed in pulseaudio (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.