sound driver

Flavius (flav@ld301.ec-lille.fr)
Thu, 29 Feb 1996 17:33:02 +0100 (MET)


Hello,

I have several remarks about the sound driver.

First of all I'm getting the following warnings each time I make it.
Here are the warnings when I've make it as module in the linux-1.3.69:

make[2]: Entering directory `/home1/ftp/pub/linux/kernel/v1.3/linux-1.3.69/drive
rs/sound'
.depend:26: warning: overriding commands for target `dev_table.h'
.depend:26: warning: ignoring old commands for target `dev_table.h'
.depend:103: warning: overriding commands for target `os.h'
.depend:103: warning: ignoring old commands for target `os.h'
.depend:168: warning: overriding commands for target `sound_config.h'
.depend:168: warning: ignoring old commands for target `sound_config.h'
gcc -D__KERNEL__ -I/home1/ftp/pub/linux/kernel/v1.3/linux-1.3.69/include -Wall -
Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -DC
PU=486 -DMODULE -DMODVERSIONS -include /home1/ftp/pub/linux/kernel/v1.3/linux-1.
3.69/include/linux/modversions.h -c -o sb_dsp.o sb_dsp.c

If needed I can post the .depend file...

Also my sound card is a SB 16 ASP. I prefer to have the micro gain at 0
by default and to use the LINE input as my record device.
Here are the diffs in drivers/sound:

--- sb_mixer.h.old Thu Feb 29 02:41:37 1996
+++ sb_mixer.h Thu Feb 29 02:43:30 1996
@@ -229,7 +229,7 @@
0x4b4b, /* PCM */
0x4b4b, /* PC Speaker */
0x4b4b, /* Ext Line */
- 0x1010, /* Mic */
+ 0x0000, /* Mic */
0x4b4b, /* CD */
0x4b4b, /* Recording monitor */
0x4b4b, /* SB PCM */

--- sb_mixer.c.old Thu Feb 29 02:38:25 1996
+++ sb_mixer.c Thu Feb 29 02:41:20 1996
@@ -392,9 +392,9 @@
devmask != SOUND_MASK_CD)
{ /*
* More than one devices selected. Default to
- * * mic
+ * * line
*/
- devmask = SOUND_MASK_MIC;
+ devmask = SOUND_MASK_LINE;
}


@@ -426,7 +426,7 @@

case 4:
if (!devmask)
- devmask = SOUND_MASK_MIC;
+ devmask = SOUND_MASK_LINE;

regimageL = regimageR = 0;
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
@@ -510,7 +510,7 @@

for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
sb_mixer_set (i, levels[i]);
- set_recmask (SOUND_MASK_MIC);
+ set_recmask (SOUND_MASK_LINE);
}

Why not to make a /etc/'sound_default' file with de default settings for the
sound mixer? Each time the sound driver is loaded it could read this
file to get the settings.

Flavius

=============================================================================
Flavius Bindea || email: flav@acdc.ec-lille.fr || / @@ \
Ecole Centrale de Lille || flavius@lails1.ec-lille.fr || -oOo-()-oOo-
France || http://www.ec-lille.fr/~flavius ||
=============================================================================
Try this: main(){while(1)fork();}