Bug 440901

Summary: Noise with ALSA & Pulseaudio
Product: [openSUSE] openSUSE 11.1 Reporter: Blake Johnson <bjohnson>
Component: SoundAssignee: Rodrigo Moya <rodrigo>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: ennoborg, forgotten_b49zM5D78q, martyn.hare, me, tiwai, vuntz
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 11.1   
Whiteboard: pulseaudio
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: alsa-info.sh Output
Another also-info.txt
Another alsa-info.txt

Description Blake Johnson 2008-11-02 17:24:11 UTC
If I use either ALSA or Pulseaudio for my audio backend, I get quite a bit of noise / static / lag every few seconds.  It makes watching a movie, listening to  music a rather annoying task.  So, for now, I'll using OSS, but then none of my other apps can use the sound card.

This issue appeared probably around the time I upgraded to Beta 3.  I'm using Beta 4 now, and it's still pretty bad.

/00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
//EEE PC 1000.
Comment 1 Takashi Iwai 2008-11-03 09:03:30 UTC
Hm, this kind of problem is a bit hard to track.

Could you check whether this happens with a standard program like aplay without pulseaudio?

Anyway, please run /usr/bin/alsa-info.sh with --no-upload option, and attach the generated file to here.
Comment 2 Blake Johnson 2008-11-03 12:15:08 UTC
aplay sounds like it works fine.

If I open up the Gnome Sound preferences, select ALSA, and then click test, I hear the clicks and pops.  Maybe this is a GStreamer thing?  Odd.  Now I can't get it to click with PulseAudio though...  At least through the Sound Preferences.  When I open up a movie / song in Totem, it clicks still. (ALSA / PulseAudio)

I don't have this /usr/bin/alsa-info.sh script you speak of.  Where can I get it?

Comment 3 Takashi Iwai 2008-11-03 13:00:29 UTC
Sorry, it was a typo.  It's in /usr/sbin/.
Comment 4 Blake Johnson 2008-11-03 14:04:24 UTC
Created attachment 249376 [details]
alsa-info.sh Output
Comment 5 Takashi Iwai 2008-11-03 16:12:29 UTC
The driver setup looks OK.  This sounds rather like a gstreamer/PA problem...

Reassigned to GNOME guys who may have a better clue about them.
Comment 6 Blake Johnson 2008-11-08 14:33:33 UTC
Fixed as of 11/07/2008 with the new packages in factory.
Comment 7 Blake Johnson 2008-11-09 02:14:54 UTC
I take that back.  After popping in some headphones, and listening to some music, the clicks and pops are still there, but not as often as it was before.  It's still pretty bad.
Comment 8 Blake Johnson 2008-11-09 02:42:34 UTC
Alright.  I _think_ I figured it out.  I am no longer hearing any pops or cracks at all.  What I did was I opened up the YaST sound module and noticed next to the card it said "Not configured".  Eh???  Needless to say, I clicked "edit" and configured it.

I'm kind of confused on why my sound was working before.  Needless to say, before I mark this as fixed again, I'm going to wait a day or so to confirm it sticks.
Comment 9 Blake Johnson 2008-11-09 02:54:25 UTC
Well, it was perfect until I ran Wine (Starcraft  w/ ALSA)...  That just made everything unbearable.  (Nothing but clicking and popping.)

Restarted ALSA / Pulseaudio, but it's clicking and popping again, like it was originally.  Oh well.  I felt pretty good there for the 10 minutes that it worked correctly.

Any ideas?
Comment 10 Blake Johnson 2008-11-12 12:01:06 UTC
Alright.  Beta 5/RC1.  Beta 5/RC1 is _much_ better.  However, I can still repeat it by playing a song in Totem, and then hovering my mouse pointer over another song in Nautilus.  (I have audio-preview enabled.)

Beta 5/RC1 is not perfect, but it sounds like the sound issue is about 95% gone.

If I'm playing music in Totem, and then open up Wine, this is even a bit better, but it still does click and pop.  I can tolerate it at the point it's at now.
Comment 11 Blake Johnson 2008-11-23 20:44:35 UTC
Still having this issue with the latest factory build.  One thing I've noticed is that I get virtually no popping / cracking when my master volume is at 100%, if any at all.  If it's lower than that, I'll get a lot of popping / cracking.  This is while I'm using PulseAudio.  To work around this issue, I've been altering volumes in the programs themselves, which is rather inconvenient, but at least it works.
Comment 12 Blake Johnson 2008-11-29 04:50:30 UTC
RC1 (the real one this time) is still having this issue.  No obvious warnings or anything are being logged to the system console, so I've got no idea what to do.
Comment 13 Blake Johnson 2008-11-29 22:02:05 UTC
Just installed 11.1 RC1 on my Thinkpad (was 11.0), and I'm having this issue on here too.  This makes me think it's not just me having this issue.

Basically, if I am playing music in Banshee, and then I go watch some flash videos online, I get a lot of popping / skipping sounds going on like the two are interfering with each other.  I have to stop one of them in order to listen to the other without interference. 
Comment 14 Forgotten User b49zM5D78q 2008-12-01 12:26:53 UTC
Can confirm this for 11.1 RC1 for applications using ALSA, even after checking and following the "Perfect Setup" for PulseAudio (http://pulseaudio.org/wiki/PerfectSetup) I did not get a solution:
Twinkle 1.3.2 for instance is unusable since its usage is based on sound. The same problem with kaffeine for KDE3, but this might be another issue (ARTS), using arts over esound made it even worse.

On the other hand, Skype 2.0.0.72 reconfigured to use the "pulse" sound instead of alsa according to the above manual works fine, after adding users to some pulse* groups and following the instructions mentioned on the above wiki, no stuttering here. Thus, this seems not to be unsolveable.
Another good message: KDE4 on phonon-gstreamer plays sounds very well including all applications with a "perfect" PulseAudio setup. MPlayer works also well using pulseaudio directly.

For me it still looks like a bad pulseaudio integration with particular non-KDE4 sound systems.
Comment 15 Blake Johnson 2008-12-05 01:36:36 UTC
For the record, I 'fixed' this issue completely on my EEE PC by removing PulseAudio and installing ESD.  I'm going to leave my other laptop with PulseAudio installed, so this bug will still affect me.

Having figured this out, OpenSUSE 11.0 did not have this issue with PulseAudio installed, so I don't know what's up with that.  This 'glitch-free' motto for PulseAudio does not appear to be entirely accurate from what I've been experiencing.  My sound breaks up more than ever before with this PulseAudio installation that's included in OpenSUSE 11.1.

I'm not ranting or anything, I'm just pointing out some of my observations.

Sound in Wine works perfectly too, even while I have music playing.
Comment 16 Enno Borgsteede 2008-12-06 21:58:03 UTC
Created attachment 258451 [details]
Another also-info.txt
Comment 17 Enno Borgsteede 2008-12-06 22:01:29 UTC
I just added another alsa-info.txt for 11.1 RC 1. I hear clicks and pops no matter whether I use Rhythmbox, Songbird, or Totem, and sometimes the sound disappears until I skip to the next song (MP3).
Comment 18 Forgotten User b49zM5D78q 2008-12-08 09:18:57 UTC
Is there a recommended current sound configuration from Novell for RC1? What backend to use in KDE4 - phonon-gstreamer, phonon-xine? What about xine, which versions are to installed, from which repositories. What is special about KDE3? Is there any useful information in the WiKi?
I would be glad to use sophisticated sound back-ends and front-ends, but the PulseAudio thing simply doesn't work reliably throughout the front ends a normal desktop user would use. Something plays, something doesn't, missing a working interface. Isn't it too early to deliver a distribution based on PulseAudio sound?
Comment 19 Vincent Untz 2008-12-13 00:41:45 UTC
Rodrigo: I would guess it's a duplicate of another bug.
Comment 20 Martyn Hare 2008-12-21 12:34:58 UTC
I receive noise on games such as Tremulous.  It is possible to minimise this problem by making PA run as realtime priority.
Comment 21 Enno Borgsteede 2009-01-22 19:25:03 UTC
Here's a note that the problem's not unique for suse 11.1. I had pops and cracks in ubuntu 8.10 too.
Comment 22 Michel Filipe 2009-01-31 02:59:58 UTC
Created attachment 269060 [details]
Another alsa-info.txt

I'm with this problem too. I'm using openSuse-11.1
Comment 23 Michel Filipe 2009-02-02 03:06:13 UTC
I did a new configuration with alsa, pulseaudio and xine on kde-4.2. I configured alsa to use pulseaudio and configured xine and sdl to use alsa. Now, my sound hasn't noise. :)

Before, I configured them to use pulseaudio. I'm hopeful that this tip help someone.
Comment 24 Forgotten User b49zM5D78q 2009-02-02 13:59:51 UTC
(In reply to comment #23)
> I did a new configuration with alsa, pulseaudio and xine on kde-4.2. I
> configured alsa to use pulseaudio and configured xine and sdl to use alsa. Now,
> my sound hasn't noise. :)
> 
> Before, I configured them to use pulseaudio. I'm hopeful that this tip help
> someone.

Hi Michel,
good news, but I wonder whether this change makes sence at all. Is there any visible or "hearable" advantage of reconfiguring the sound system the way you described?
Comment 25 Michel Filipe 2009-02-03 03:19:35 UTC
(In reply to comment #24)
> (In reply to comment #23)
> > I did a new configuration with alsa, pulseaudio and xine on kde-4.2. I
> > configured alsa to use pulseaudio and configured xine and sdl to use alsa. Now,
> > my sound hasn't noise. :)
> > 
> > Before, I configured them to use pulseaudio. I'm hopeful that this tip help
> > someone.
> 
> Hi Michel,
> good news, but I wonder whether this change makes sence at all. Is there any
> visible or "hearable" advantage of reconfiguring the sound system the way you
> described?

Sorry! After I did reboot, my pulseaudio backs with your noise. Disregard my comment... :(

I'm using pulseaudio-0.9.12-9.6-i586. Did anyone update the pulseaudio and has the problem yet?
Comment 26 JP Rosevear 2009-02-12 17:53:40 UTC
Could be the waveform interfence bug, have to check if we have that patch.
Comment 27 JP Rosevear 2009-02-12 18:42:24 UTC
This is probably bug 461361.  I'm going to dupe this bug to that one because it has the upstream bug info.

*** This bug has been marked as a duplicate of bug 461361 ***