Import 2.1.99pre2
[davej-history.git] / Documentation / sound / mwave
blob8bf73a039fcf9f789ea4f47f0abc39115dbbd0e9
1         How to try and survive an IBM Mwave under Linux SB drivers
4 * IBM refuse to provide documentation. If anyone can ever find out what
5   MWD50430.EXE actually does to load firmware then this comedy could go
6   away.
8 * If you'd like to ask IBM why they don't release Mwave information.
9   phone IBM (425-556-8822) and ask them why they still haven't 
10   released any documentation.
11   [http://204.200.238.31/cgi-bin/link.pl?co=i&cl=/ts/ibm/contact.html]
13 ----------------------------------------------------------------------------
15 OK, First thing - the IRQ problem IS a problem, whether the test is bypassed or
16 not. And it is NOT a linux problem - it is an MWAVE problem that is fixed with
17 the latest MWAVE patches. So, in other words, DON'T bypass the test for MWAVES!!
19 My config is Win 95 on HDA1, swap on HDA2, RH 5 on HDA3.
21 The steps, then:
23     Boot to Linux. 
24     Mount Win95 file system (assume mount mount = /dos95)
25     mkdir /dos95/linux
26     mkdir /dos95/linux/boot
27     mkdir /dos95/linux/boot/parms
29     Copy the kernel, any initrd image, and loadlin to /dos95/linux/boot
31     Reboot to win 95
33     Edit C:/msdos.sys and add/change the following:
35         Logo=0
36         BootGUI=0
38         [Note msdos.sys IS a text file but it needs to be 'unhidden' and make
39          read-writable before it can be edited]
41     Edit Config .sys to have multiple config menus. I have one for win95, and
42     five for linux. Like this:
43 ------------
44 [menu]
45 menuitem=W95, Windows 95
46 menuitem=LINTP, Linux - ThinkPad
47 menuitem=LINTP3, Linux - ThinkPad Console
48 menuitem=LINDOC, Linux - Docked
49 menuitem=LINDOC3, Linux - Docked Console
50 menuitem=LIN1, Linux - Single User Mode
51 REM menudefault=W95,10
53 [W95]
55 [LINTP]
57 [LINDOC]
59 [LINTP3]
61 [LINDOC3]
63 [LIN1]
65 [COMMON]
66 FILES=30
67 REM Please read README.TXT in C:\MWW subdirectory before changing the DOS= statement.
68 DOS=HIGH,UMB
69 DEVICE=C:\MWW\MANAGER\MWD50430.EXE
70 SHELL=c:\command.com /e:2048
71 -------------------
73 The important things are the SHELL and DEVICE statements
75     Then change Autoexec.bat. Basically everything in there originally should be
76     done ONLY when Win95 is booted. Then you add new things specifically for
77     Linux.  Mine is as follows
79 ---------------
80 @ECHO OFF
81 if "%CONFIG%" == "W95" goto W95
83 REM
84 REM Linux stuff
85 REM
86 SET MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
87 SET BLASTER=A220 I5 D1
88 SET MWROOT=C:\MWW
89 SET LIBPATH=C:\MWW\DLL
90 SET PATH=C:\WINDOWS;C:\MWW\DLL;
91 CALL MWAVE START NOSHOW
92 c:\linux\boot\loadlin.exe @c:\linux\boot\parms\%CONFIG%.par
94 :W95
95 REM
96 REM Windows 95 stuff
97 REM
98 c:\toolkit\guard
99 SET MSINPUT=C:\MSINPUT
100 SET MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
101 REM The following is used by DOS games to recognize Sound Blaster hardware.
102 REM If hardware settings are changed, please change this line as well.
103 REM See the Mwave README file for instructions.
104 SET BLASTER=A220 I5 D1
105 SET MWROOT=C:\MWW
106 SET LIBPATH=C:\MWW\DLL
107 SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;E:\ORAWIN95\BIN;f:\msdev\bin;e:\v30\bin.dbg;v:\devt\v30\bin;c:\JavaSDK\Bin;C:\MWW\DLL;
108 SET INCLUDE=f:\MSDEV\INCLUDE;F:\MSDEV\MFC\INCLUDE
109 SET LIB=F:\MSDEV\LIB;F:\MSDEV\MFC\LIB
112 ------------------------
114 Now build a file in c:\linux\boot\parms for each linux config that you have.
116 For example, my LINDOC3 config is for a docked Thinkpad at runlevel 3 with no
117 initrd image, and has a parm file named LINDOC3.PAR in c:\linux\boot\parms:
119 -----------------------
120 #   LOADLIN @param_file image=other_image root=/dev/other
122 #       Linux Console in docking station
124 c:\linux\boot\zImage.krn         # first value must be the filename of the Linux-kernel
125 root=/dev/hda3                    # the device which gets mounted as root FS
126 ro                                      # Other kernel arguments go here
127 apm=off
128 doc=yes
130 -----------------------
132 the doc=yes parm is an environment variable that my init scripts use, it is not
133 a kernel argument.
135 However, the apm=off parm IS a kernel argument!!!!!!! APM, at least in my setup,
136 causes the kernel to crash when loaded via loadlin (but NOT when loaded via
137 LILO). The APM stuff COULD be forced out of the kernel via the kernel compile
138 options. BUT I, instead, got hold of an unofficial patch to the APM drivers that
139 allows them to be dynamically deactivated via kernel arguments. Whatever you
140 chose to document, APM, it seems, MUST be off for setups like mine.
142 Now check the C:\MWW\MWCONFIG.REF looks like this:
144 ----------------------
145 [NativeDOS]
146 Default=SB1.5
147 SBInputSource=CD
148 SYNTH=FM
149 QSound=OFF
150 Reverb=OFF
151 Chorus=OFF
152 ReverbDepth=5
153 ChorusDepth=5
154 SBInputVolume=5
155 SBMainVolume=10
156 SBWaveVolume=10
157 SBSynthVolume=10
158 WaveTableVolume=10
159 AudioPowerDriver=ON
161 [FastCFG]
162 Show=No
163 HideOption=Off
164 -----------------------------
166 OR the Default= line COULD be
168 Default=SBPRO
170 Reboot to Win95 and choose Linux. When booted, use sndconfig to configure the  
171 sound modules and VOILA - ThinkPad sound with Linux.
173 Now the gotchas - You can either have CD sound OR Mixers but not both. That's a
174 problem with the SB1.5(CD sound) or SBPRO(Mixers) settings. No-one knows why
175 this is!
177 And, for some reason MPEG3 files, when played through mpg123, sound like they
178 are playing at 1/8th speed - not very useful!!!!!!!!!!!! If you have ANY insight
179 on why this second thing might be happening I would be grateful.
181 ===========================================================
182     _/      _/_/_/_/
183    _/_/  _/_/     _/
184   _/ _/_/ _/_/_/_/      Martin John Bartlett
185  _/  _/  _/     _/      (martin@nitram.demon.co.uk)
186 _/      _/_/_/_/
187        _/
188 _/    _/
189  _/_/
190 ===========================================================