[cs46xx] Need tweaks to daemon.conf to eliminate crackle/distortion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
pulseaudio (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Ever since the pulseaudio updates on 9/11 (1:0.9.16-0ubuntu1, see http://
The output will vary from normal, to crackling, to distorted, to the stuck "machine-gun" sound if and only if I change the audio volume up and down. This is the same across all sound sources.
Audio card is cs46xx based hercules game theater XP. Running latest Karmic.
Related branches
- Luke Yelavich: Pending requested
thathatman (aaron-dorman) wrote : apport-collect data | #1 |
thathatman (aaron-dorman) wrote : AlsaDevices.txt | #2 |
thathatman (aaron-dorman) wrote : AplayDevices.txt | #3 |
thathatman (aaron-dorman) wrote : BootDmesg.txt | #4 |
thathatman (aaron-dorman) wrote : Card0.Amixer.values.txt | #5 |
thathatman (aaron-dorman) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt | #6 |
thathatman (aaron-dorman) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt | #7 |
thathatman (aaron-dorman) wrote : Card0.Codecs.codec97.0.ac97.1.1.txt | #8 |
thathatman (aaron-dorman) wrote : Card0.Codecs.codec97.0.ac97.1.1.regs.txt | #9 |
thathatman (aaron-dorman) wrote : CurrentDmesg.txt | #10 |
thathatman (aaron-dorman) wrote : Dependencies.txt | #11 |
thathatman (aaron-dorman) wrote : PciMultimedia.txt | #12 |
tags: | added: apport-collected |
thathatman (aaron-dorman) wrote : Re: pulseaudio crackle/distortion with cs46xx on latest update | #13 |
Bug still present in 1:0.9.17-0ubuntu1.
Crackling/
What other information would be helpful?
knarf (launchpad-ubuntu-f) wrote : | #14 |
Same problem here on different hardware running latest pulseaudio from ubuntu-audio-dev. Symptoms are the same: sound is sort of allright when the volume client is maxed, anything below that sounds from bad to worse. Being that the symptoms seem to be volume-related I wonder if this is due to some bug in the new SSE-optimized volume code...
Daniel T Chen (crimsun) wrote : Re: [Bug 428619] Re: pulseaudio crackle/distortion with cs46xx on latest update | #15 |
On Sun, Sep 20, 2009 at 11:26 AM, knarf <email address hidden> wrote:
> Same problem here on different hardware running latest pulseaudio from
> ubuntu-audio-dev. Symptoms are the same: sound is sort of allright when
> the volume client is maxed, anything below that sounds from bad to
> worse. Being that the symptoms seem to be volume-related I wonder if
> this is due to some bug in the new SSE-optimized volume code...
If this is indeed the case, you can test:
echo autospawn = no|tee -a ~/.pulse/
killall pulseaudio
PULSE_NO_SIMD=1 pulseaudio -vvvv
knarf (launchpad-ubuntu-f) wrote : Re: pulseaudio crackle/distortion with cs46xx on latest update | #16 |
After modifying that incantation a bit by adding PULSE_NO_SIMD=1 to the mpd init script as mpd starts its own version of pulseaudio the noise dissappeared... in other words the recent problems with distorted sound ARE caused by the SSE-optimized code... There are very few changes to the actual assembler code in svolume_sse.c, I'll try a version of current pulseaudio with these changes reverted to see if that makes a difference... be right back...
knarf (launchpad-ubuntu-f) wrote : | #17 |
Reverted svolume_sse.c does NOT solve the problem - the bug lives elsewhere.
knarf (launchpad-ubuntu-f) wrote : | #18 |
Another observation: the volume control on a client (in my case mpd) does not actually change the volume. There are three states:
volume maxed, sound OK
volume between maxed and minimum, sound distorted at full volume
volume minimized, no sound
knarf (launchpad-ubuntu-f) wrote : | #19 |
- revert svolume_mmx.c back to last known good version Edit (2.5 KiB, text/plain)
OK, I found it. The problem - in my case at least - lies in svolume_mmx.c (not svolume_sse.c). Reverting that file back to the previous version gets rid of the problem. These are the changes which caused the appearance of the distorted sound problem on my box:
diff -pruN ../pulseaudio-
--- ../pulseaudio-
+++ src/pulsecore/
@@ -57,14 +57,12 @@
" punpcklwd %%mm4, "#s" \n\t" /* .. | 0 | p0 | */ \
" pcmpgtw "#v", %%mm4 \n\t" /* .. | 0 | s(vl) | */ \
" pand "#s", %%mm4 \n\t" /* .. | 0 | (p0) | (vl >> 15) & p */ \
- " movq %%mm6, %%mm5 \n\t" /* .. | ffff | 0 | */ \
- " pand "#v", %%mm5 \n\t" /* .. | vh | 0 | */ \
- " por %%mm5, %%mm4 \n\t" /* .. | vh | (p0) | */ \
- " pmulhw "#s", "#v" \n\t" /* .. | 0 | vl*p0 | */ \
- " paddw %%mm4, "#v" \n\t" /* .. | vh | vl*p0 | vh + sign correct */ \
- " pslld $16, "#s" \n\t" /* .. | p0 | 0 | */ \
- " por %%mm7, "#s" \n\t" /* .. | p0 | 1 | */ \
- " pmaddwd "#s", "#v" \n\t" /* .. | p0 * v0 | */ \
+ " movq "#s", %%mm5 \n\t" \
+ " pmulhw "#v", "#s" \n\t" /* .. | 0 | vl*p0 | */ \
+ " paddw %%mm4, "#s" \n\t" /* .. | 0 | vl*p0 | + sign correct */ \
+ " psrld $16, "#v" \n\t" /* .. | 0 | vh | */ \
+ " pmaddwd %%mm5, "#v" \n\t" /* .. | p0 * vh | */ \
+ " paddd "#s", "#v" \n\t" /* .. | p0 * v0 | */ \
" packssdw "#v", "#v" \n\t" /* .. | p1*v1 | p0*v0 | */
/* approximately advances %3 = (%3 + a) % b. This function requires that
@@ -105,10 +103,6 @@ pa_volume_s16ne_mmx (int16_t *samples, i
__asm__ __volatile__ (
" xor %3, %3 \n\t"
" sar $1, %2 \n\t" /* length /= sizeof (int16_t) */
- " pcmpeqw %%mm6, %%mm6 \n\t" /* .. | ffff | ffff | */
- " pcmpeqw %%mm7, %%mm7 \n\t" /* .. | ffff | ffff | */
- " pslld $16, %%mm6 \n\t" /* .. | ffff | 0 | */
- " psrld $31, %%mm7 \n\t" /* .. | 0 | 1 | */
" test $1, %2 \n\t" /* check for odd samples */
" je 2f \n\t"
The simplest solution is to revert that piece of assembly back to what it was. The attached patch accomplishes this.
knarf (launchpad-ubuntu-f) wrote : | #20 |
I should add that I run pulseaudio on a Thinkpad T23 with a Pentium III-m which does NOT support SSE2. As I do not have any systems available which do support SSE2 I can not test the validity of svolume_sse.c (which actually contains SSE2 code, not SSE...). Someone else, like the original bug reporter (who seems to run a Pentium 4 which does support SSE2) should try to revert svolume_sse.c back to a previous version and test with that.
thathatman (aaron-dorman) wrote : | #21 |
knarf, thanks for all your work. Can you give me some help reverting and testing?
Thanks
knarf (launchpad-ubuntu-f) wrote : | #22 |
Looking at the differences between svolume_sse.c from pulseaudio 0.9.16 and the current one I noticed that those changes are only cosmetical - only a comment has changed. It does not make sense to try to patch that... But you can of course try the patch I posted in #19 and see if that works for you.
It is quite simple really. Assuming you...
- keep your sources in /usr/src
- downloaded the patch to your home directory
- have not built pulseaudio before so there are no pulseaudio*.deb or libpulse*.deb packages in /usr/src
...it goes something like this:
(first get the build dependencies:)
sudo apt-get build-dep pulseaudio
(now get the source:)
cd /usr/src
apt-get source pulseaudio
(patch the source:)
(cd whatever directory the source was installed to, currently pulseaudio-0.9.18 so...)
cd pulseaudio-0.9.18
patch -p1 < ~/revert_
(build the binary packages:)
fakeroot dpkg-buildpackage -b
(install pulseaudio and libpulse:)
(while still in the pulseaudio source directory, directly after the build has finished:)
sudo dpkg -i ../libpulse0_*.deb ../pulseaudio_*.deb
As to how to test the new build depends on how you use it. If you run a sound-generating package like mplayer or totem it should be sufficient to kill any running pulseaudio daemon with:
pulseaudio -k
It should autostart the next time you start any sound-generating program... unless you have autospawn=no in your personal pulseaudio config of course... in that case you need to start it manually.
If you run some sound-generating daemon like mpd you may need to restart that to make sure it starts a fresh copy of pulseaudio.
Now try to change volume...
Launchpad Janitor (janitor) wrote : | #23 |
This bug was fixed in the package pulseaudio - 1:0.9.18-0ubuntu3
---------------
pulseaudio (1:0.9.18-0ubuntu3) karmic; urgency=low
* debian/patches/:
+ 0052-revert-
anomalies (LP: #428619)
-- Daniel T Chen <email address hidden> Tue, 22 Sep 2009 22:19:42 -0400
Changed in pulseaudio (Ubuntu): | |
status: | New → Fix Released |
Rob Speer (rspeer) wrote : | #24 |
I have pulseaudio 0.9.18-0ubuntu3, and I am still experiencing terrible "machine-gun" noises, crackling, and distortion on my cs46xx.
thathatman (aaron-dorman) wrote : | #25 |
Whoa, I didn't even see that this bug was marked as fixed. The patch posted above did not fix this bug for me. Sounds like Knarf and Daniel fixed a similar bug above.
I'm guessing that this must be a cs46xx related bug... How can I help track this bug down?
Rob, can you add all your system information to this bug?
Do you experience sound problems on volume changes? I've found that if I change the volume three or four times, it will temporarily fix the audio problems.
Changed in pulseaudio (Ubuntu): | |
status: | Fix Released → Confirmed |
Rob Speer (rspeer) wrote : | #26 |
I know how to use ubuntu-bug to add my system information to a new bug, but how do I add it to an existing one?
Rob Speer (rspeer) wrote : apport-collect data | #27 |
Architecture: i386
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: CS46xx [Sound Fusion CS46xx], device 0: CS46xx [CS46xx]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Card0.Amixer.info:
Card hw:0 'CS46xx'/'Sound Fusion CS46xx at 0xf9200000/
Mixer name : 'Cirrus Logic CS4297A rev 4,Cirrus Logic CS4294 rev 5'
Components : 'AC97a:43525914 AC97a:4352592d'
Controls : 71
Simple ctrls : 45
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: pulseaudio 1:0.9.18-0ubuntu3
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_US.UTF-8
LANGUAGE=
ProcVersionSign
Uname: Linux 2.6.31-12-generic i686
UserAsoundrc:
# ALSA library configuration file
# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin netdev plugdev powerdev pulse pulse-access scanner video
XsessionErrors:
(gnome-
(gnome-
(polkit-
(nautilus:2392): Eel-CRITICAL **: eel_preferences
(gnome-
mtime.conffile.
Rob Speer (rspeer) wrote : AlsaDevices.txt | #28 |
Rob Speer (rspeer) wrote : AplayDevices.txt | #29 |
Rob Speer (rspeer) wrote : BootDmesg.txt | #30 |
Rob Speer (rspeer) wrote : Card0.Amixer.values.txt | #31 |
Rob Speer (rspeer) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt | #32 |
Rob Speer (rspeer) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt | #33 |
Rob Speer (rspeer) wrote : Card0.Codecs.codec97.0.ac97.1.1.txt | #34 |
Rob Speer (rspeer) wrote : Card0.Codecs.codec97.0.ac97.1.1.regs.txt | #35 |
Rob Speer (rspeer) wrote : CurrentDmesg.txt | #36 |
Rob Speer (rspeer) wrote : Dependencies.txt | #37 |
Rob Speer (rspeer) wrote : PciMultimedia.txt | #38 |
Rob Speer (rspeer) wrote : UserAsoundrcAsoundconf.txt | #39 |
Rob Speer (rspeer) wrote : modified.conffile..etc.pulse.system.pa.txt | #40 |
26 comments hidden Loading more comments | view all 106 comments |
shanen (Shannon Jacobs) (shanen) wrote : Re: pulseaudio crackle/distortion with cs46xx on latest update | #67 |
This bug is listed as a duplicate of a different bug report that more accurately described the symptoms that I am seeing. In my machines. What I see is total sound failure (apart from a few intermittent clicks at boot time) on machines that worked fine with 9.04. That includes three machines from two different makers, Lenovo and Sharp. Actually, it might be three makers, since one of the machines is old enough that it is probably an IBM. I've tried upgrades, clean installs, running live from the CD, and also from VMware Player. Most of the machines are fairly new.
Excuse me, but this is a massive failure. Ubuntu needs to do much better regression testing. I like Ubuntu, but it is no longer an OS that I can recommend to anyone. Off topic, but I think the main problem with Ubuntu is now the broken economic model that is driving the adoption of features without adequate testing, while at the same time leaving old bugs open, sometimes for years... (I've already suggested an alternative funding mechanism, but never detected any interest at the Ubuntu end...) Unless these massive show-stopping problems are fixed, Ubuntu is going to fail.
shanen (Shannon Jacobs) (shanen) wrote : | #68 |
Whoops, I meant to say at least 3 machines, but I think I may have tested it on as many as five machines that failed, and found only one machine where the sound worked properly (from the live CD, as I recall).
thathatman (aaron-dorman) wrote : | #69 |
Has anyone tested Lucid yet? Is this bug still present?
affects: | pulseaudio (Ubuntu) → linux (Ubuntu) |
Mobius (jharag) wrote : | #70 |
I have a Santa Cruz 5.1 card using Sound Fusion CS46xx. My sound actually stopped working when I went from 8.10 to 9.04. 9.04 to 9.10 got sound with pulseaudio troubleshooting. Exhibits the symptoms thathatman described unless I set the hardware in pulseaudio to 4.0 output, but only heard playback in audacious.
"Kosmonaut" Bernd Müller (bernado-tornado) wrote : | #71 |
@thatthatman: Yes, this bug is still present in Lucid :-(
Jeff Sumner (jdos2) wrote : | #72 |
Indeed- still present in Lucid.
Can't use the sound card for anything where I need to rely on it- like fldigi, where my transmission might become illegal if the sound card goes into a loop.
Jeff Sumner (jdos2) wrote : | #73 |
Still a problem, right up to release date.
Is there a file, a log, any kind of information that might help in troubleshooting this?
jimbo (jimbobubbadj) wrote : | #74 |
I am running a turtle beach santa cruz sound card cs46xx chipset. I had the same problems with motorboating noise in ubuntu 9.10 and ubuntu 10.04. With linuxmint 8, based on ubuntu 9.10, the sound is great! No problems at all! In windows xp the sound is also problem free!
Joseph Huber (huber-joseph) wrote : | #75 |
Same problem here...Turtle Beach Santa Cruz PCI with CS4630 chipset in a Dell Optiplex 620. This card was working wonderfully in 9.04. I skipped the 9.10 upgrade after reading that support for this card was broken. I had to upgrade to 10.04 LTS to work on another project, and as mentioned above, the card is broken in 10.04 LTS. There are periods (10-15 seconds) of working sound, followed by "motorboating" for 5-10 seconds followed by working sound. When the sound is working, there is crackling. I played around with settings and tried a number of the fixes suggested in other forums and blogs, but nothing has worked so far. The card works wonderfully in Windows XP. This is a nice sound card that serves me well, and I really dislike throwing away working hardware because of buggy software support. Hopefully someone can find a fix and get it implemented.
Jeff Sumner (jdos2) wrote : | #76 |
Any word? I see that there's no assigned person on this, and the Alsa folk seem just as reluctant to work on it.
rgonnering (roger-gonnering) wrote : | #77 |
Like shanen (Shannon Jacobs), sound was working with 9.04 on my IBM T22 with Sound Fusion CS46xx. When I upgraded to 9.10, sound stopped working. I then upgraded to 10.04, and still no sound. I then loaded the 10.04 live disk and still no sound. Does anyone have a clue what is wrong or how to fix it? I really like Ubuntu, but I have been thinking of Red Hat or SUSE. Sound has become an important part of the User Experience.
Raymond (superquad-vortex2) wrote : | #78 |
I: alsa-sink.c: Using 32.0 fragments of size 2048 bytes (11.61ms), buffer size is 65536 bytes (371.52ms)
I: alsa-sink.c: Time scheduling watermark is 20.00ms
: alsa-sink.c: Starting playback.
D: alsa-sink.c: Cutting sleep time for the initial iterations by half.
D: alsa-sink.c: Cutting sleep time for the initial iterations by half.
D: alsa-sink.c: Cutting sleep time for the initial iterations by half.
cs46xx use snd_pcm_
http://
http://
Luke Yelavich (themuso) wrote : Re: [Bug 428619] Re: pulseaudio crackle/distortion with cs46xx on latest update | #79 |
THis patch is not in the stable queue, so I am hesitant to pull it into the package for maverick, and this is probably not a patch that would qualify for an SRU. I'll get this patch into a PPA for you to test. if its favourable, then I will consider adding the aptch to the maverick pulseaudio package.
Thanks for pointing out that commit.
Cavia Porcellus (caviaporcellus) wrote : Re: pulseaudio crackle/distortion with cs46xx on latest update | #80 |
I also have the same crackling sound problem on a Dell Dimension 8100 (Cirrus Logic CS 4614/22/24/30 [CrystalClear SoundFusion Audio Accelerator]). It started when I upgraded to Karmic, though now I'm using a fresh install of Maverick. The problem, however, is still there in Ubuntu 10.10.
gigaflop1000 (gigaflop1000) wrote : | #81 |
I do not know much about ubuntu/linux, but I have been trying things blindly for awhile and will only add what has not already been said. I get huge variations in the quality of sound when I adjust the hardware profile under sound preferences. The changes range from no sound, to very tinny sound, to crashing audio on the system, to crackling, to machine gun, and on. All with different profiles. Today, after updating alsa and messing with the profiles some more, I managed to play one song on vlc with absolutely no audio problems. When I closed the audio player and played a different song, it was back to the regular problems and I haven't been able to replicate a good play again. I don't know what that means, but it seems strange as hell. hope that helps someone who knows whats going on.
hoocker (box-) wrote : | #82 |
default-fragments = 2
default-
in daemon.conf, and
load-module module-alsa-sink tsched=0 (only needed if using acpi, acpi=off or apm works nice without it)
in default.pa helped me on thinkpad 570e with snd_cs46xx ( 00:05.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24/30 [CrystalClear SoundFusion Audio Accelerator] (rev 01) )
I'm on Debian, tested on 2.6.32 and 2.6.35 kernels. Pulseaudio 0.9.21-3
note: if you want to use APM with grub2 and get "apm: bios not found" error, try
--- before/10_linux 2010-12-02 19:03:54.000000000 +0300
+++ after/10_linux 2010-12-02 19:03:58.000000000 +0300
@@ -79,12 +79,12 @@
printf '%s\n' "${prepare_
cat << EOF
echo '$(printf "$(gettext_quoted "Loading Linux %s ...")" ${version})'
- linux ${rel_dirname}
+ linux16 ${rel_dirname}
EOF
if test -n "${initrd}" ; then
cat << EOF
echo '$(gettext_quoted "Loading initial ramdisk ...")'
- initrd ${rel_dirname}
+ initrd16 ${rel_dirname}
EOF
fi
cat << EOF
$ update-grub
$reboot
Daniel T Chen (crimsun) wrote : Re: [cs46xx] Need tweaks to default.pa to eliminate crackle/distortion | #83 |
@hoocker Thanks for the recommendation.
Would others with this controller test the workaround? I.e., disable glitch-free by using tsched=0, and modify the default-fragment* parameters in /etc/pulse/
summary: |
- pulseaudio crackle/distortion with cs46xx on latest update + [cs46xx] Need tweaks to default.pa to eliminate crackle/distortion |
summary: |
- [cs46xx] Need tweaks to default.pa to eliminate crackle/distortion + [cs46xx] Need tweaks to daemon.conf to eliminate crackle/distortion |
Cavia Porcellus (caviaporcellus) wrote : | #84 |
I modified daemon.conf and default.pa as per the instructions, but the problem unfortunately remains. (Ubuntu 10.10, pulseaudio version 0.9.21-63.)
Daniel T Chen (crimsun) wrote : | #85 |
@Aibara Would you please attach a verbose log as per https:/
Cavia Porcellus (caviaporcellus) wrote : | #86 |
Daniel T Chen (crimsun) wrote : | #87 |
It doesn't look like you've modified all the necessary bits:
D: module-
glitch-free is still enabled. What modifications did you make to default.pa?
hoocker (box-) wrote : | #88 |
Can you please try to boot without ACPI (acpi=off kernel boot parameter)?
With ACPI I get a "machine gun" sound on volume change for two users, but not with my primary user, which I tested on. Pulse configuration is global (in /etc only, no user configs). It's so strange.. o_O I was not able to figure out the reason, so I'm back to APM for now.
Cavia Porcellus (caviaporcellus) wrote : | #89 |
- pulseverbose.log Edit (151.1 KiB, text/plain)
Err sorry, I had "load-module module-alsa-sink tsched=0" commented out in default.pa. Though it still doesn't seem to work. Here's another log, though I might still be doing something wrong. I'd like to try to turn acpi off, though I'm not sure how to do that (sorry, I'm kind of new at this). Thanks!
Daniel T Chen (crimsun) wrote : | #90 |
You'd specify "apci=off" at the kernel command line in GRUB2.
Raymond (superquad-vortex2) wrote : | #91 |
>> I have an old Turtle Beach Santa Cruz sound card using the CS46xx driver and was having exactly these symptoms after upgrading to Karmic (audio with pulseaudio was working perfectly in Jaunty).
What are the differences of pulseaudio in Jaunty and 0.9.16 ?
e.g. set the stop threshold to boundary to disable automatic stop at underrun/overrun
Cavia Porcellus (caviaporcellus) wrote : | #92 |
- pulseverbose.log Edit (331.3 KiB, text/plain)
Ok, so I turned acpi off, but everything remained the same.
However, with acpi off, but "load-module module-alsa-sink tsched=0" commented out (see attached log), the rapid crackling actually seemed to be gone, but when I would skip around a track it would sometimes go quiet, and changing the volume using volume control in the panel caused the same loud buzzing noise as it did before.
Raymond (superquad-vortex2) wrote : | #93 |
your cs46xx have dual ac97 codecs CS4297A and CS4294
There are two "Master Playback Volume" controls, I guess PA mis calculate the dB range -129.00 dB to 12.00 dB.
I: sink.c: device.description = "CS 4614/22/24/30 [CrystalClear SoundFusion Audio Accelerator] Analog Stereo"
I: sink.c: alsa.mixer_name = "Cirrus Logic CS4297A rev 4,Cirrus Logic CS4294 rev 5"
I: sink.c: alsa.components = "AC97a:43525914 AC97a:4352592d"
D: alsa-mixer.c: Activating path analog-output
D: alsa-mixer.c: Path analog-output (Analog Output), direction=1, priority=99, probed=yes, supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0, max_volume=63, min_dB=-129, max_dB=12
D: alsa-mixer.c: Element Master, direction=1, switch=1, volume=1, enumeration=0, required=0, required_absent=0, mask=0x36000000
D: alsa-mixer.c: Element Master Mono, direction=1, switch=2, volume=2, enumeration=0, required=0, required_absent=0, mask=0x7fffffff
D: alsa-mixer.c: Element Headphone, direction=1, switch=1, volume=3, enumeration=0, required=0, required_absent=0, mask=0x6, n_channels=2, override_map=no
D: alsa-mixer.c: Element PCM, direction=1, switch=1, volume=1, enumeration=0, required=0, required_absent=0, mask=0x402b6000
D: alsa-mixer.c: Element External Amplifier, direction=1, switch=4, volume=0, enumeration=0, required=0, required_absent=0, mask=0x0, n_channels=0, override_map=no
D: alsa-mixer.c: Option on (output-
D: alsa-mixer.c: Option off (output-
D: alsa-mixer.c: Setting output-amplifier-on (Amplifier) priority=10
D: alsa-mixer.c: Setting output-
I: alsa-sink.c: Hardware volume ranges from -129.00 dB to 12.00 dB.
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 63
Mono:
Front Left: Playback 6 [10%] [-85.50dB] [on]
Front Right: Playback 6 [10%] [-85.50dB] [on]
Simple mixer control 'Master',1
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 63
Mono:
Front Left: Playback 0 [0%] [-94.50dB] [off]
Front Right: Playback 0 [0%] [-94.50dB] [off]
Raymond (superquad-vortex2) wrote : | #94 |
>> Aibara Iduas wrote on 2010-12-06: #89
* pulseverbose.log (151.1 KiB, text/plain)
( 10.906| 0.000) D: source.c: Processing rewind...
( 12.662| 1.755) W: ratelimit.c: 16 events suppressed
( 12.662| 0.000) I: alsa-sink.c: Underrun!
( 13.279| 0.616) D: sink-input.c: Requesting rewind due to corking
( 13.279| 0.000) D: module-
( 13.316| 0.036) D: sink-input.c: Requesting rewind due to uncorking
( 13.316| 0.000) D: alsa-sink.c: Requested to rewind 1760 bytes.
( 13.316| 0.000) D: alsa-sink.c: Limited to 1440 bytes.
( 13.316| 0.000) D: alsa-sink.c: before: 360
( 13.316| 0.000) D: alsa-sink.c: after: 360
( 13.316| 0.000) D: alsa-sink.c: Rewound 1440 bytes.
( 13.316| 0.000) D: sink.c: Processing rewind...
( 13.316| 0.000) D: source.c: Processing rewind...
( 13.317| 0.000) D: module-
( 13.322| 0.005) D: protocol-native.c: Requesting rewind due to rewrite.
( 13.322| 0.000) D: alsa-sink.c: Requested to rewind 1760 bytes.
( 13.322| 0.000) D: alsa-sink.c: Limited to 1440 bytes.
( 13.322| 0.000) D: alsa-sink.c: before: 360
( 13.322| 0.000) D: alsa-sink.c: after: 360
( 13.322| 0.000) D: alsa-sink.c: Rewound 1440 bytes.
( 13.322| 0.000) D: sink.c: Processing rewind...
( 13.322| 0.000) D: sink-input.c: Have to rewind 1440 bytes on render memblockq.
( 13.322| 0.000) D: sink-input.c: Have to rewind 1440 bytes on implementor.
( 13.322| 0.000) D: source.c: Processing rewind...
( 13.323| 0.000) D: protocol-native.c: Underrun on ''I Got It Bad and That Ain't Go' by 'Billie Holiday'', 0 bytes in queue.
It is underrun because snd_pcm_rewind() can only rewind to period boundary for those drivers which use snd_pcm_
your card should allow you to run multiple oss playback applications
Does "mplayer -ao oss any.wav" give your bad sound ?
**** List of PLAYBACK Hardware Devices ****
card 0: CS46xx [Sound Fusion CS46xx], device 0: CS46xx [CS46xx]
Subdevices: 30/31
card 0: CS46xx [Sound Fusion CS46xx], device 1: CS46xx - Rear [CS46xx - Rear]
Subdevices: 31/31
card 0: CS46xx [Sound Fusion CS46xx], device 2: CS46xx - IEC958 [CS46xx - IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CS46xx [Sound Fusion CS46xx], device 3: CS46xx - Center LFE [CS46xx - Center LFE]
Subdevices: 31/31
or
try pulseaudio-0.9.14
Cavia Porcellus (caviaporcellus) wrote : | #95 |
Apologies for the late reply, I've been quite busy. I'm away from home (and my desktop), and will continue to be for a few weeks, so I won't be able to test anything out until January. If it is still relevant, I'll try then. Thanks for the suggestions so far.
hoocker (box-) wrote : | #96 |
Hi, I've played a bit more with pulseaudio and have something for you to test.
Try to comment udev line in default.pa, like this
#load-module module-udev-detect
And here is all together:
1) stop pulseaudio server
2) /etc/pulse/
load-module module-alsa-card tsched=0 (not sure, is it really necessary)
load-module module-alsa-sink tsched=0
(...skip...)
### Automatically load driver modules depending on the hardware available
.ifexists module-
#load-module module-udev-detect
.else
3) /etc/pulse/
default-fragments = 2
default-
resample-method = src-linear (helps to fix light crackling noise with some (48 KHz?) media)
4) rm -rf ~/.pulse/ (to be sure)
5) start pulseaudio server
This config works for me with acpi too. Hope it helps.
hoocker (box-) wrote : | #97 |
hoocker (box-) wrote : | #98 |
Cavia Porcellus (caviaporcellus) wrote : | #99 |
Sorry for the delay...
Hoocker, your suggestion fixed it! No more crackling, skipping, or any other distortion while playing sounds; nothing bad happens when I skip around tracks or change the volume.
Thanks!!
hoocker (box-) wrote : | #100 |
Ok, thanks for positive response on this workaround.
Francesco Castellana (xfranky) wrote : Re: [Bug 428619] Re: [cs46xx] Need tweaks to daemon.conf to eliminate crackle/distortion | #101 |
Sorry for replying late but the workaround doesn't seem to work on my PCI
Hercules Fortissimo II.
Might try testing a little bit more tonight.
On Thu, Jan 20, 2011 at 1:23 PM, hoocker <email address hidden> wrote:
> Ok, thanks for positive response on this workaround.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https:/
>
> Title:
> [cs46xx] Need tweaks to daemon.conf to eliminate crackle/distortion
>
> Status in “linux” package in Ubuntu:
> Confirmed
> Status in “pulseaudio” package in Ubuntu:
> New
>
> Bug description:
> Ever since the pulseaudio updates on 9/11 (1:0.9.16-0ubuntu1, see
>
> http://
> ),
> I've had crackling or distortion on the audio output. Audio was
> perfect prior to that update.
>
> The output will vary from normal, to crackling, to distorted, to the
> stuck "machine-gun" sound if and only if I change the audio volume up
> and down. This is the same across all sound sources.
>
> Audio card is cs46xx based hercules game theater XP. Running latest
> Karmic.
>
> To unsubscribe from this bug, go to:
> https:/
>
Andy Whitcroft (apw) wrote : | #102 |
I am closing off the kernel task here as the majority of the issues seem to be pulseaudio related.
Changed in linux (Ubuntu): | |
status: | Confirmed → Invalid |
Launchpad Janitor (janitor) wrote : | #103 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in pulseaudio (Ubuntu): | |
status: | New → Confirmed |
Andrew Schulman (andrex) wrote : | #104 |
I just encountered this bug for the first time after upgrading from 12.04 to 14.04. My old Turtle Beach Santa Cruz card worked fine before, but after the upgrade I started to get distortion and crackling.
hoocker's suggestion in #96 seems to have fixed it! Or at least, greatly reduced it. Thanks much!
Daniel van Vugt (vanvugt) wrote : | #105 |
Thank you for reporting this bug to Ubuntu.
Ubuntu 9.10 (karmic) reached end-of-life on April 30, 2011.
See this document for currently supported Ubuntu releases:
https:/
Please upgrade to the latest version and re-test.
Changed in pulseaudio (Ubuntu): | |
status: | Confirmed → Incomplete |
Launchpad Janitor (janitor) wrote : | #106 |
[Expired for pulseaudio (Ubuntu) because there has been no activity for 60 days.]
Changed in pulseaudio (Ubuntu): | |
status: | Incomplete → Expired |
Architecture: i386 controlC0: aaron 3145 F.... pulseaudio 0xea000000, irq 19' values:
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: CS46xx [Sound Fusion CS46xx], device 0: CS46xx [CS46xx]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: aaron 3145 F...m pulseaudio
Card0.Amixer.info:
Card hw:0 'CS46xx'/'Sound Fusion CS46xx at 0xea100000/
Mixer name : 'Cirrus Logic CS4294 rev 5,Cirrus Logic CS4294 rev 5,Cirrus Logic CS4294 rev 5'
Components : 'AC97a:4352592d AC97m:4352592d'
Controls : 60
Simple ctrls : 43
Card1.Amixer.info:
Card hw:1 'UART'/'MPU-401 UART at 0x330, irq 10'
Mixer name : ''
Components : ''
Controls : 0
Simple ctrls : 0
Card1.Amixer.
CheckboxSubmission: c15b144655902aa fd477daa25c1011 9e e5d44f3cc003437 75 ture: i386 ature: Ubuntu 2.6.31- 10.32-generic
CheckboxSystem: 4ded665cecdcafb
DistroRelease: Ubuntu 9.10
Package: pulseaudio 1:0.9.16-0ubuntu1
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
ProcVersionSign
Uname: Linux 2.6.31-10-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare