* Re: "noise" while recording with an OPL3SAx
2000-07-16 16:37 "noise" while recording with an OPL3SAx Jérôme Augé
@ 2000-07-16 16:56 ` Rainer Wiener
2000-07-16 18:17 ` I.S.Wolfe
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Rainer Wiener @ 2000-07-16 16:56 UTC (permalink / raw)
To: linux-sound
Hi Jérôme!
On Sun, 16 Jul 2000, Jérôme Augé wrote:
> So I've made a patch for OSS (by looking at Alsa driver source) that fix
> this noise but before posting the patch I'd like to know if someone else
> noticed this noise with OSS or if it occurs only with me ?
I use the Toshiba Satellite 300CDS with a OPL3SAx and I have the same noice.
If I want to record something over my mic I have it but I have it also when
I use the inline. So please send me the patch.
> P.S. I'm using RH6.2 kernel 2.2.14-5.0 and 2.4.0-test4
I use RH6.1beta kernel 2.2.16
Cu
Rainer
--
Computer programmers do it byte by byte.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: "noise" while recording with an OPL3SAx
2000-07-16 16:37 "noise" while recording with an OPL3SAx Jérôme Augé
2000-07-16 16:56 ` Rainer Wiener
@ 2000-07-16 18:17 ` I.S.Wolfe
2000-07-16 20:17 ` Rainer Wiener
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: I.S.Wolfe @ 2000-07-16 18:17 UTC (permalink / raw)
To: linux-sound
> I tried Alsa and I noticed that with Alsa there
> is no more noise but If I boot again with OSS the
> noise is back when recording. I also noticed that
> the noise disappear when using OSS after unloading
> Alsa modules.
I'm unfamiliar with both your Satellite and your
Red Hat, so perhaps I should keep my mouth shut.
But the combination you describe makes me think of
how Alsa mutes the mike (and everything else) and
OSS (I think) doesn't, so if your machine has a
built-in mike, you may be mixing in computer and
other background noises without realizing it, until
you run Alsa and it mutes the mike. If I'm write,
setting a mute mike with aumix, say, doing a save
there, and then running aumix -L when you log in,
might solve the problem.
Regards,
- Irving
-
Irving_Wolfe@Happy-Man.com Happy Man Corporation
+1 206 463 9399, ext. 101 4410 SW Pt Robinson Rd
fax: +1 209 463 9255 Vashon, WA 98070 USA
Solid Value Investment Letter -- more than 14 years
safely outperforming the stock market through wise,
conservative selection: http://www.solid-value.com/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: "noise" while recording with an OPL3SAx
2000-07-16 16:37 "noise" while recording with an OPL3SAx Jérôme Augé
2000-07-16 16:56 ` Rainer Wiener
2000-07-16 18:17 ` I.S.Wolfe
@ 2000-07-16 20:17 ` Rainer Wiener
2000-07-16 21:27 ` Jérôme Augé
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Rainer Wiener @ 2000-07-16 20:17 UTC (permalink / raw)
To: linux-sound
Hi I.S.Wolfe!
On Sun, 16 Jul 2000, I.S.Wolfe@happy-man.com wrote:
> I'm unfamiliar with both your Satellite and your
> Red Hat, so perhaps I should keep my mouth shut.
> But the combination you describe makes me think of
> how Alsa mutes the mike (and everything else) and
> OSS (I think) doesn't, so if your machine has a
> built-in mike, you may be mixing in computer and
> other background noises without realizing it, until
> you run Alsa and it mutes the mike. If I'm write,
> setting a mute mike with aumix, say, doing a save
> there, and then running aumix -L when you log in,
> might solve the problem.
Yes, the problem is also there. I have an external mic and even when I plug
it out and record something from my MD I have the same noises. So it would
not be the mic. At the first time I thought it was the mic but this is not so.
Cu
Rainer
--
All programmers are optimists. Perhaps this modern sorcery especially attracts
those who believe in happy endings and fairy godmothers. Perhaps the hundreds
of nitty frustrations drive away all but those who habitually focus on the end
goal. Perhaps it is merely that computers are young, programmers are younger,
and the young are always optimists. But however the selection process works,
the result is indisputable: "This time it will surely run," or "I just found
the last bug."
-- Frederick Brooks, "The Mythical Man Month"
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: "noise" while recording with an OPL3SAx
2000-07-16 16:37 "noise" while recording with an OPL3SAx Jérôme Augé
` (2 preceding siblings ...)
2000-07-16 20:17 ` Rainer Wiener
@ 2000-07-16 21:27 ` Jérôme Augé
2000-07-17 16:04 ` Rainer Wiener
2000-07-19 13:13 ` Scott Murray
5 siblings, 0 replies; 7+ messages in thread
From: Jérôme Augé @ 2000-07-16 21:27 UTC (permalink / raw)
To: linux-sound
[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]
Rainer Wiener wrote:
>
> Hi I.S.Wolfe!
>
> On Sun, 16 Jul 2000, I.S.Wolfe@happy-man.com wrote:
>
> > I'm unfamiliar with both your Satellite and your
> > Red Hat, so perhaps I should keep my mouth shut.
> > But the combination you describe makes me think of
> > how Alsa mutes the mike (and everything else) and
> > OSS (I think) doesn't, so if your machine has a
> > built-in mike, you may be mixing in computer and
> > other background noises without realizing it, until
> > you run Alsa and it mutes the mike. If I'm write,
> > setting a mute mike with aumix, say, doing a save
> > there, and then running aumix -L when you log in,
> > might solve the problem.
>
> Yes, the problem is also there. I have an external mic and even when I plug
> it out and record something from my MD I have the same noises. So it would
> not be the mic. At the first time I thought it was the mic but this is not so.
>
I thought it was a problem with some input level/gain but when sampling
my voice, for example, and then later listening at it I could hear my
voice + some "scratch" noises.
This is a quick patch based on comparison between OSS and Alsa driver
initialization. I'm not an expert with kernel/sound programming so test
this patch and tell me if I'm wrong somewhere ...
I tested it with kernel 2.2.14 and 2.4.0-test4.
[-- Attachment #2: patch-2.4.0-test4-opl3sa2-dma-init --]
[-- Type: text/plain, Size: 698 bytes --]
diff -u --recursive linux-2.4.0-test4.orig/drivers/sound/opl3sa2.c linux-2.4.0-test4/drivers/sound/opl3sa2.c
--- linux-2.4.0-test4.orig/drivers/sound/opl3sa2.c Tue Mar 7 22:40:24 2000
+++ linux-2.4.0-test4/drivers/sound/opl3sa2.c Sun Jul 16 17:50:05 2000
@@ -598,6 +598,15 @@
request_region(hw_config->io_base, 2, chipset_name);
devc->cfg_port = hw_config->io_base;
+
+ /*printk("OPL3-SAx dma init ...");*/
+ if( hw_config->dma == hw_config->dma2 ) {
+ /*printk(" DMA1=DMA2=%d\n", hw_config->dma );*/
+ opl3sa2_write(devc->cfg_port, 0x06, 0x03);
+ } else {
+ /*printk(" DMA1=%d DMA2=%d\n", hw_config->dma, hw_config->dma2);*/
+ opl3sa2_write(devc->cfg_port, 0x06, 0x21);
+ }
}
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: "noise" while recording with an OPL3SAx
2000-07-16 16:37 "noise" while recording with an OPL3SAx Jérôme Augé
` (3 preceding siblings ...)
2000-07-16 21:27 ` Jérôme Augé
@ 2000-07-17 16:04 ` Rainer Wiener
2000-07-19 13:13 ` Scott Murray
5 siblings, 0 replies; 7+ messages in thread
From: Rainer Wiener @ 2000-07-17 16:04 UTC (permalink / raw)
To: linux-sound
Moin Jérôme!
Jérôme Augé schrieb am Sonntag, den 16. Juli 2000:
> > Yes, the problem is also there. I have an external mic and even when I plug
> > it out and record something from my MD I have the same noises. So it would
> > not be the mic. At the first time I thought it was the mic but this is not so.
> >
>
> I thought it was a problem with some input level/gain but when sampling
> my voice, for example, and then later listening at it I could hear my
> voice + some "scratch" noises.
> This is a quick patch based on comparison between OSS and Alsa driver
> initialization. I'm not an expert with kernel/sound programming so test
> this patch and tell me if I'm wrong somewhere ...
with 2.2.16 it works great.
Thanks
Cu
Rainer
--
What the hell is it good for?
-- Robert Lloyd (engineer of the Advanced Computing Systems
Division of IBM), to colleagues who insisted that the
microprocessor was the wave of the future, c. 1968
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: "noise" while recording with an OPL3SAx
2000-07-16 16:37 "noise" while recording with an OPL3SAx Jérôme Augé
` (4 preceding siblings ...)
2000-07-17 16:04 ` Rainer Wiener
@ 2000-07-19 13:13 ` Scott Murray
5 siblings, 0 replies; 7+ messages in thread
From: Scott Murray @ 2000-07-19 13:13 UTC (permalink / raw)
To: linux-sound
On Sun, 16 Jul 2000, Jirtme Augi wrote:
[snip]
> I tried Alsa and I noticed that with Alsa there is no more noise but If
> I boot again with OSS the noise is back when recording. I also noticed
> that the noise disappear when using OSS after unloading Alsa modules.
> So I've made a patch for OSS (by looking at Alsa driver source) that fix
> this noise but before posting the patch I'd like to know if someone else
> noticed this noise with OSS or if it occurs only with me ?
I'm currently at OLS, but I'll look at the patch in more detail when
I get home. When I pieced together the OSS OPL3-SAx driver that's in
the kernel I assumed that the recording limitations were in the under-
lying ad1848 code, but obviously I missed something in Yamaha's docs.
I'm planning on sending a patch for 2.4.0-test to Linus/Alan soon after
OLS, as a couple of people have sent me PnP integration code that I need
to merge and test.
Scott
--
======================================Scott Murray email: scott@spiteful.org
http://www.interlog.com/~scottm ICQ: 10602428
-----------------------------------------------------------------------------
"Good, bad ... I'm the guy with the gun." - Ash, "Army of Darkness"
^ permalink raw reply [flat|nested] 7+ messages in thread