From: "Jérôme Augé" <jauge@club-internet.fr>
To: linux-sound@vger.kernel.org
Subject: Re: "noise" while recording with an OPL3SAx
Date: Sun, 16 Jul 2000 21:27:28 +0000 [thread overview]
Message-ID: <marc-linux-sound-96378303312317@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-96376558726822@msgid-missing>
[-- 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);
+ }
}
next prev parent reply other threads:[~2000-07-16 21:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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é [this message]
2000-07-17 16:04 ` Rainer Wiener
2000-07-19 13:13 ` Scott Murray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-sound-96378303312317@msgid-missing \
--to=jauge@club-internet.fr \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox