2002-08-24 22:09:23

by Frank v Waveren

[permalink] [raw]
Subject: auto-muting pcm when not in use

I have an el-cheapo sound card in my desktop machine, which works fine
for the odd mail notification sound. However, it tends to produce
quite some white noise and a highpitched tone when not in use. I
vaguely remember some buzz (well, at least a light hum) a while back
about automatically setting the mixer to zero for synth/pcm when not
in use.. Was there ever a patch created for this, and if not, would
anyone be interested in one?

--
Frank v Waveren Fingerprint: 0EDB 8787
fvw@[var.cx|stack.nl|dse.nl|chello.nl] ICQ#10074100 09B9 6EF5 6425 B855
Public key: hkp://wwwkeys.pgp.net/[email protected] 7179 3036 E136 B85D


2002-09-01 01:47:10

by Frank v Waveren

[permalink] [raw]
Subject: [PATCH] Re: auto-muting pcm when not in use

On Sun, Aug 25, 2002 at 12:13:36AM +0200, Frank v Waveren wrote:
> I have an el-cheapo sound card in my desktop machine, which works
> fine for the odd mail notification sound. However, it tends to
> produce quite some white noise and a highpitched tone when not in
> use. [I recall a patch doing this] and if not, would anyone be
> interested in one?

Well, I've made the patch, it's rather kludgy but to do this
properly would require modify quite a lot of the code and possibly
API's (I'd hoped to be easily able to create an extra mixer channel
that was visible to userspace instead of pcm, and whose level would
get written to the pcm mixer channel when the audio device was
opened), but it does work rather nicely for me.

If there's any interest in having it in the main tree (as I said, it's
a kludge, but one that's needed/useful on a lot of machines) I'll put
some kernel option or module paramater if's around it, let me know.

As always, suggestions/fixes/flames welcome.

--
Frank v Waveren Fingerprint: 0EDB 8787
fvw@[var.cx|stack.nl|dse.nl|chello.nl] ICQ#10074100 09B9 6EF5 6425 B855
Public key: hkp://wwwkeys.pgp.net/[email protected] 7179 3036 E136 B85D


Attachments:
(No filename) (1.19 kB)
linux-2.4.19-sb-automute-pcm.diff (1.46 kB)
Download all attachments