lkml.org 
[lkml]   [1996]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sound volume and kerneld
On Tue, 9 Apr 1996, William E. Roadcap wrote:

> On Tue, 9 Apr 1996, B. Galliart wrote:
>
> > I'm running into a problem with using the sound module with kerneld.
> > Every time the modules is reloaded by kerneld it re-initalizes the volume.
> > .......
> > Is there some configuration option I missed to set TASD (the sound
> > module) to load without re-setting the volume?
> > ........
> > I also would be interested in hearing if anyone has come up with any sort
> > of work around (regardless of how hokie it might be).
>
> This is an example line you can place in /etc/conf.modules. It is a work
> around only, and still causes the mixer to be reset to the values you
> specify. The problem being, that if you have set your mixer to values
> other than those in conf.modules, they will still be reset.
>
> options sound ; { mixer vol 90 ; mixer pcm 90 ;} >/dev/null 2>&1
>
> There may be another work around, but I'm not sure. At some point
> recently there was a patch to the kernel code of kerneld which would allow
> modules to remember settings between loads. I don't know how this works,
> but it's a clue to go explore. If you figure out anything more, will
> you please share it with me.

Of course, you can just insmod the module and leave it in memory...
:)
And if you have a volume you like, you can edit the sources....
For the SB cards, there are two "level" structs in sb_mixer.h with
the sound volumes (in hex). Just edit the correct struct to the levels
you like and enjoy.

If you still have the PAS, Ben, check out line 54 of pas2_mixer.c in
kernel sources 1.3.85 (it's also named "levels").. Here is the code:

static unsigned short levels[SOUND_MIXER_NRDEVICES] =
{
0x3232, /* Master Volume */
0x3232, /* Bass */
0x3232, /* Treble */
0x5050, /* FM */
0x4b4b, /* PCM */
0x3232, /* PC Speaker */
0x4b4b, /* Ext Line */
0x4b4b, /* Mic */
0x4b4b, /* CD */
0x6464, /* Recording monitor */
0x4b4b, /* SB PCM */
0x6464 /* Recording level */
};

It's in stereo pairs. I believe that the left pair is left and the right,
right.

Christian G. Holtje (aka Doctor What)

---
--- --- --- - - - - --- ----- docwhat@uiuc.edu
+ - + - + + + - + - + - CS major at Illinois
* + * + * * + * +*+* +*+*+ * ---- finger me at ----
**** *** *** ** ** * * * * * docwhat@students.uiuc.edu
also: http://www.uiuc.edu/ph/www/docwhat

Q: Why would the government want to get rid of PBS?
A: Fifteen more minutes of Pentagon running time.


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.451 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site