Skip to contentSkip to conversation

: periodic noise in audio output

ALSA - driver 0000728 [email protected] 1 participant 1 message Dec 30, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=728>
======================================================================
Reported By: virtualman
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   728
Category:                   SPARC - cs4231
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             12-16-2004 23:12 CET
Last Modified:              12-30-2005 21:48 CET

======================================================================
Summary: periodic noise in audio output
Description:
I am having a periodic crackling noise in my audio output. I sounds like the audio signal was not continuous at block boundaries.

I installed alsa-drivers (1.0.7) on a gentoo system. Therefore a number of patches have been applied.

My audio hardware is a CS4231 on a Sun Ultra 10, the driver module therefore is snd-sun-cs4231.

======================================================================

----------------------------------------------------------------------
subdino - 06-11-05 10:14
----------------------------------------------------------------------
Same problem here (U10, debian sid, same with kernel.org kernel). Loaded modules : snd_sun_cs4231, snd_ioctl32 (and dependencies) Alsa version : alsa-base 1.0.9b-1, alsa-utils 1.0.8-4 (debian packages)

With xmms, playing a sound file, the glitches aren't critical (periodic noise, but play speed is normal). Here is my xmms config (as in output plugin configuration window) :
***
Soundcard :
Buffer size = 500ms
Period length = 500ms
XMMS :
Buffer size = 1000ms
Multithread mode & mmap mode enabled
***
The most important part is, as far as I tried, that both soundcard buffer must have the same size.

With scummvm, the sound is first almost correct, but goes worse and worse as time goes. Pausing the game & resuming doesn't work, while exitting it & launching it again works. At a certain point the CPU use goes crazy, like 50% system time & 50% user time. But kernel doesn't crash, when program is stopped the cpu usage goes back to normal. As far as I've tested, it doesn't happens with xmms.

Alsaplayer is also really convenient to test different buffer sizes.

I used to get more sound corruptions when intensively using the mixer settings while playing, but it hasn't happened recently (since I switched to 2.6.11 maybe).

Of course, playing a CD (through analogic audio cable) works perfectly.

----------------------------------------------------------------------
rlrevell - 12-30-05 21:48
----------------------------------------------------------------------
You can't set the buffer and period sizes to the same values because at least 2 periods need to fit in a buffer.

Try it with the default settings:

Soundcard :
Buffer size = 500ms
Period length = 50ms (not 500ms!)
XMMS :
Buffer size = 3000ms

Issue History
Date Modified Username Field Change
======================================================================

12-16-04 23:12 virtualman     New Issue                                    
12-21-04 19:01 tiwai          Note Added: 0002905                          
12-21-04 20:09 virtualman     Note Added: 0002906                          
06-11-05 10:12 subdino        Note Added: 0004987                          
06-11-05 10:14 subdino        Note Edited: 0004987                         
06-18-05 17:42 subdino        Issue Monitored: subdino                     
12-30-05 21:48 rlrevell       Note Added: 0007265                          

======================================================================

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click