public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.3+ sound distortion
@ 2001-04-21 16:04 Victor Julien
  2001-04-21 19:05 ` Nigel Gamble
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Victor Julien @ 2001-04-21 16:04 UTC (permalink / raw)
  To: linux-kernel

Hi,

I've never posted here before, so if i do anything wrong, just let me know.

I have a problem with kernels higher than 2.4.2, the sound distorts when 
playing a song with xmms while the seti@home client runs. 2.4.2 did not have 
this problem. I tried 2.4.3, 2.4.4-pre5 and 2.4.3-ac11. They al showed the 
same problem.

This is my hardware:
AMD Duron 600@800 (6x133)
MSI K7T Turbo-R
320MB PC133
ASUS v6800 Geforce 1 DDR
Creative PCI128

victor@victor:~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.3/specs
gcc version 2.95.3 20010219 (prerelease)

victor@victor:~$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 3
model name      : AMD Duron(tm) Processor
stepping        : 0
cpu MHz         : 796.830
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov 
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips        : 1589.24

victor@victor:~$ cat /proc/pci     
PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 3).
      Prefetchable 32 bit memory at 0xc0000000 [0xcfffffff].
  Bus  0, device   1, function  0:
    PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (rev 0).
      Master Capable.  No bursts.  Min Gnt=12.
  Bus  0, device   7, function  0:
    ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 64).
  Bus  0, device   7, function  1:
    IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 6).
      Master Capable.  Latency=32.  
      I/O at 0xc000 [0xc00f].
  Bus  0, device   7, function  4:
    Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 64).
  Bus  0, device  10, function  0:
    Ethernet controller: Winbond Electronics Corp W89C940 (rev 11).
      IRQ 10.
      I/O at 0xcc00 [0xcc1f].
  Bus  0, device  13, function  0:
    Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 6).
      IRQ 11.
      Master Capable.  Latency=32.  Min Gnt=12.Max Lat=128.
      I/O at 0xd000 [0xd03f].
  Bus  0, device  15, function  0:
    RAID bus controller: Promise Technology, Inc. 20265 (rev 2).
      IRQ 11.
      Master Capable.  Latency=32.  
      I/O at 0xd400 [0xd407].
      I/O at 0xd800 [0xd803].
      I/O at 0xdc00 [0xdc07].
      I/O at 0xe000 [0xe003].
      I/O at 0xe400 [0xe43f].
      Non-prefetchable 32 bit memory at 0xdb000000 [0xdb01ffff].
  Bus  1, device   0, function  0:
    VGA compatible controller: nVidia Corporation GeForce 256 DDR (rev 16).
      IRQ 9.
      Master Capable.  Latency=248.  Min Gnt=5.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xd8000000 [0xd8ffffff].
      Prefetchable 32 bit memory at 0xd0000000 [0xd7ffffff].

If i need to suply more information please let me know. If you respond please 
put my emailadres in the CC, i am not a member of this mailing-list.

Victor Julien

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: 2.4.3+ sound distortion
@ 2001-04-22 17:47 Victor Julien
       [not found] ` <20010422110902.C1093@ulthar.internal.mclure.org>
  2001-04-22 18:53 ` Alan Cox
  0 siblings, 2 replies; 19+ messages in thread
From: Victor Julien @ 2001-04-22 17:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: Alan Cox

>We are still playing with the VIA fixups, but this may also be VM related.
I'm
>currently playing with several VM ideas, and potential fixes which might
>impact overall performance.
>
>Test 2.4.4pre6 that has the VIA fixes but does not have the VM changes

2.4.4-pre6 did only compile when I aplied the '__builtin_expect'-patch. It
crashed at boot however, when initializing my onboard raidcontroller
(PDC20265 on a MSI K7T Turbo-R). It seems to be the same problem as
reported by Manuel A. McLure. So no word yet about the sound
distortion-problem being fixed.

Victor Julien


^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: 2.4.3+ sound distortion
@ 2001-04-23 15:01 Woller, Thomas
  0 siblings, 0 replies; 19+ messages in thread
From: Woller, Thomas @ 2001-04-23 15:01 UTC (permalink / raw)
  To: 'David', linux-kernel

David,
your report sounds like a problem that we have seen in the test lab, but no
one has reported in the field... yet. :)
if the problem is the same as we have seen... unloading the driver and
reloading the driver should also clear up the problem.  but typically the
problem only occurs after playing for several hours without a break in the
audio stream.  

we think that we understand the problem (theoretically), in that we believe
that we need to manipulate a static DSP image location periodically that
gets too far out of value.  the issue is that internal variables for the
static DSP image are not reinitialized on a task restart (e.g. restarting up
an audio stream).  reloading the static image (i.e. suspend/resume or
reloading the driver) clears up the tinny sound here.  it hadn't been
reported, so I haven't taken the time to plough through the static image map
to try to figure out where all the locations are for all the task images
that need manipulation.  might take a while, but since we now have a problem
report, i'll try to find some time to start negotiating the DSP map.  i'll
send the fix to you for testing when/if... i can get the problem resolved.
thanks

tom
twoller@crystal.cirrus.com 

> -----Original Message-----
> From:	David [SMTP:david@blue-labs.org]
> Sent:	Sunday, April 22, 2001 10:08 PM
> To:	linux-kernel@vger.kernel.org
> Subject:	Re: 2.4.3+ sound distortion
> 
>   I have noticed a problem with sound lately.  I have a cs46xx card and 
> it randomly gets distorted.  Normally I just reboot but on this last 
> occurence I simply left it as it was.  The distortion sounds someone 
> punched the speaker core, it's tinny and mangled.  Today it fixed itself 
> out of the blue in the middle of playing a sound. All sound programs are 
> equally affected.
> 
> It's only done this in the 2.4 series, I haven't had the desire to look 
> into it.
> 
> David
> 
> Mike Castle wrote:
> 
> >On Sat, Apr 21, 2001 at 06:04:47PM +0200, Victor Julien wrote:
> >
> >>I have a problem with kernels higher than 2.4.2, the sound distorts when
> 
> >>playing a song with xmms while the seti@home client runs. 2.4.2 did not
> have 
> >>
> >
> >Would this be the same issue as describe in these threads:
> >
> >http://www.uwsg.indiana.edu/hypermail/linux/kernel/0104.0/0233.html
> >http://www.uwsg.indiana.edu/hypermail/linux/kernel/0104.1/0231.html
> >
> >That is, the change in how nice is recalculated.
> >
> >mrc
> >
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: 2.4.3+ sound distortion
@ 2002-03-06  5:08 David Ford
  0 siblings, 0 replies; 19+ messages in thread
From: David Ford @ 2002-03-06  5:08 UTC (permalink / raw)
  To: Woller, Thomas, linux-kernel

I have several questions regarding the Santa Cruz Voyetra:

a) please read the below text and those in the know, please advise me of 
any updates to the current situation where sound is very tinny.  at 
present i have to deal with this constantly.
b) there have been some vague references made to adjusting the other 
line IN/OUT channels which in the source i read from, stated that this 
seems to act as a fade control and was able to adjust the level of 
tinniness that was heard.
c) are there any (linux/open source) mixers which have the capability of 
controlling this card in any fashion that is better than the dark age 
mixers currently found on freshmeat?  i.e., something that takes 
advantage of the gobs of onboard features such as the onboard hardware 
equalizer, configurable in/out ports, etc.
d) if no to (c), is Mr. Woller from cirrus.com interested in helping us 
develop such features in a mixer application?

David

Recap from April of 2001;

Woller, Thomas said:

David,
your report sounds like a problem that we have seen in the test lab, but no
one has reported in the field... yet. :)
if the problem is the same as we have seen... unloading the driver and
reloading the driver should also clear up the problem. but typically the
problem only occurs after playing for several hours without a break in the
audio stream.

we think that we understand the problem (theoretically), in that we believe
that we need to manipulate a static DSP image location periodically that
gets too far out of value. the issue is that internal variables for the
static DSP image are not reinitialized on a task restart (e.g. restarting up
an audio stream). reloading the static image (i.e. suspend/resume or
reloading the driver) clears up the *tinny* sound here. it hadn't been
reported, so I haven't taken the time to plough through the static image map
to try to figure out where all the locations are for all the task images
that need manipulation. might take a while, but since we now have a problem
report, i'll try to find some time to start negotiating the DSP map. i'll
send the fix to you for testing when/if... i can get the problem resolved.
thanks

tom
twoller@crystal.cirrus.com <mailto:twoller@crystal.cirrus.com>

/> -----Original Message-----/
/> From: David [SMTP:david@blue-labs.org]/
/> Sent: Sunday, April 22, 2001 10:08 PM/
/> To: *linux*-kernel@vger.kernel.org <mailto:linux-kernel@vger.kernel.org>/
/> Subject: Re: 2.4.3+ sound distortion/
/> /
/> I have noticed a problem with sound lately. I have a *cs46xx* card and /
/> it randomly gets distorted. Normally I just reboot but on this last /
/> occurence I simply left it as it was. The distortion sounds someone /
/> punched the speaker core, it's *tinny* and mangled. Today it fixed 
itself /
/> out of the blue in the middle of playing a sound. All sound programs 
are /
/> equally affected./
/> /
/> It's only done this in the 2.4 series, I haven't had the desire to look /
/> into it./
/> /
/> David/




^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: 2.4.3+ sound distortion
@ 2002-03-06 16:43 Woller, Thomas
  0 siblings, 0 replies; 19+ messages in thread
From: Woller, Thomas @ 2002-03-06 16:43 UTC (permalink / raw)
  To: 'David Ford', Woller, Thomas, linux-kernel

david, et al
a) i am very sorry about the tinny sound you are experiencing. we
no longer have any DSP pc audio engineers working at cirrus, and
pc audio products are no longer developed or supported here at
cirrus. i have talked this problem over with the only person that
might help, and the debugging effort involved is extensive and
may not yield results.  we do not fully understand the issue, but
believe that several internal points in the DSP become misaligned
resulting in the tinny sound.
b) the static DSP image that is currently used with the linux
cs46xx driver, is not capable of any of the fancy extensive
feature set, and the work involved would require an engineer with
intimate knowledge of the DSP which no longer is present.
c) see b
d) i am always willing to assist the linux effort, it's just
difficult due to the lack of any support at cirrus for pc audio
any longer.  i am working on embedded RTOS in my official job,
but always try to fix any linux pc audio related bugs as i am
able. also, without any DSP engineers we can not create another
static DSP image with the additional tasks necessary to take
advantage of the wonderful features of cards with the cs46xx
controller. we are stuck with the current DSP images that are
available. 

there is a small glimmer of light concerning secondary codec
support and SPDIF support.  i had found 2 other "test" static DSP
images that might be useful.  
i placed 2 piles of code out on a cirrus ftp site (see below).
the first is a cs46xx driver with an untested static DSP image
that snoops the data to the primary codec and pumps it to the
secondary, so that there is sound coming from the rear speakers,
although the same as the the front.
the second pile of code (EOLT) contains a set of tests that we
used for testing the cs4630.  the static image used in these
tests contained in this directory functioned with SPDIF in/out. i
am unsure whether the other tasks are loaded in this image to
support the general audio data paths, so this static image may
not support more than spdif.  i tried using the static "spdif"
image on the latest cs46xx linux driver, but it did not work with
a simple static image replacement in the source. specific problem
definition and resolution using the spdif EOLT static image with
the linux cs46xx sources, has not been determined.  anyone and
everyone are welcome to look over these 2 piles of source, but my
time is very limited concerning any new development for spdif
and/or secondary codec.

here is the ftp site info. the cs46xx code is based on an older
version of the 2.4 kernel.

server: ftp1.cirrus.com
login: ftppclink
password: cSPxQMd

thanks
Tom Woller


-----Original Message-----
From: David Ford [mailto:david+cert@blue-labs.org]
Sent: Tuesday, March 05, 2002 11:08 PM
To: Woller, Thomas; linux-kernel
Subject: Re: 2.4.3+ sound distortion


I have several questions regarding the Santa Cruz Voyetra:

a) please read the below text and those in the know, please
advise me of 
any updates to the current situation where sound is very tinny.
at 
present i have to deal with this constantly.
b) there have been some vague references made to adjusting the
other 
line IN/OUT channels which in the source i read from, stated that
this 
seems to act as a fade control and was able to adjust the level
of 
tinniness that was heard.
c) are there any (linux/open source) mixers which have the
capability of 
controlling this card in any fashion that is better than the dark
age 
mixers currently found on freshmeat?  i.e., something that takes 
advantage of the gobs of onboard features such as the onboard
hardware 
equalizer, configurable in/out ports, etc.
d) if no to (c), is Mr. Woller from cirrus.com interested in
helping us 
develop such features in a mixer application?

David

Recap from April of 2001;

Woller, Thomas said:

David,
your report sounds like a problem that we have seen in the test
lab, but no
one has reported in the field... yet. :)
if the problem is the same as we have seen... unloading the
driver and
reloading the driver should also clear up the problem. but
typically the
problem only occurs after playing for several hours without a
break in the
audio stream.

we think that we understand the problem (theoretically), in that
we believe
that we need to manipulate a static DSP image location
periodically that
gets too far out of value. the issue is that internal variables
for the
static DSP image are not reinitialized on a task restart (e.g.
restarting up
an audio stream). reloading the static image (i.e. suspend/resume
or
reloading the driver) clears up the *tinny* sound here. it hadn't
been
reported, so I haven't taken the time to plough through the
static image map
to try to figure out where all the locations are for all the task
images
that need manipulation. might take a while, but since we now have
a problem
report, i'll try to find some time to start negotiating the DSP
map. i'll
send the fix to you for testing when/if... i can get the problem
resolved.
thanks

tom
twoller@crystal.cirrus.com <mailto:twoller@crystal.cirrus.com>

/> -----Original Message-----/
/> From: David [SMTP:david@blue-labs.org]/
/> Sent: Sunday, April 22, 2001 10:08 PM/
/> To: *linux*-kernel@vger.kernel.org
<mailto:linux-kernel@vger.kernel.org>/
/> Subject: Re: 2.4.3+ sound distortion/
/> /
/> I have noticed a problem with sound lately. I have a *cs46xx*
card and /
/> it randomly gets distorted. Normally I just reboot but on this
last /
/> occurence I simply left it as it was. The distortion sounds
someone /
/> punched the speaker core, it's *tinny* and mangled. Today it
fixed 
itself /
/> out of the blue in the middle of playing a sound. All sound
programs 
are /
/> equally affected./
/> /
/> It's only done this in the 2.4 series, I haven't had the
desire to look /
/> into it./
/> /
/> David/



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2002-03-06 16:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-21 16:04 2.4.3+ sound distortion Victor Julien
2001-04-21 19:05 ` Nigel Gamble
2001-04-21 19:40   ` Victor Julien
2001-04-21 20:52     ` Erik Mouw
2001-04-21 21:07       ` Victor Julien
2001-04-21 23:05       ` 2.4.3-pre3+ " Victor Julien
2001-04-21 23:15 ` 2.4.3+ " Alan Cox
2001-04-21 23:31   ` Victor Julien
2001-04-22  7:55   ` Marcel J.E. Mol
2001-04-22 12:17     ` Alan Cox
2001-04-22 13:46 ` Mike Castle
2001-04-23  3:08   ` David
  -- strict thread matches above, loose matches on Subject: below --
2001-04-22 17:47 Victor Julien
     [not found] ` <20010422110902.C1093@ulthar.internal.mclure.org>
2001-04-22 18:37   ` Victor Julien
2001-04-22 18:55     ` Alan Cox
2001-04-22 18:53 ` Alan Cox
2001-04-23 15:01 Woller, Thomas
2002-03-06  5:08 David Ford
2002-03-06 16:43 Woller, Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox