[ltp] nm256AV, thinkpad and RH 9.0, finally sound works !

Samy linux-thinkpad@linux-thinkpad.org
Thu, 29 May 2003 17:55:02 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0020_01C3260B.6E10DB00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Finally, i'm getting the sound working. The standrard nm256_audio module =
is not suitable. Despite it loads correctly, it didn't include any sound =
capabilities. From my own experience, i think that the "correct" driver =
for old Neomagic nm256AV sound cards specially those inside old laptops =
depend tightly on hardware configuration. It behaves like a mixture of =
various audio chipsets packaged into one. The challenge is to find the =
correct combination. So, i don't know if the following statement work =
for non IBM thinkpad user's.

First, and this the most important thing, i start by catching my own =
audio BIOS setting :

SB I/O address : 220
WSS I/O address : 530
adlib I/O address : 388
MPU I/O address : 300
CTRL I/O address : 120
DMA A : DMA 0
DMA B : DMA 1
IRQ : 5
joystick : enabled

IBM thinkpad owners can download and use ps2.exe configuration utility =
program from IBM site. It shows for me :

ADDress : 530
Sbaddress : 220
ADLibaddress : 388
MIDIport : 300
CTRLaddress : 120
IRQ : 5
DMA : 0

Then to configure the card, i proceed by adding this lines to =
/etc/modules.conf before rebooting the machine :

alias sound opl3sa2
options sound dmabuf=3D1
alias synth0 opl3
options opl3 io=3D0x388
options opl3sa2 mss_io=3D0x530 irq=3D5 dma=3D0 dma2=3D1 mpu_io=3D0x300 =
io=3D0x120

If at startup, in the stage where modules are loading, an error occurs =
it's probably because thr IRQ and/or I/O parameters were not set =
correctly in /etc/modules.conf and then they have to be changed.

As last resort, when everything seems not working despite your generous =
painful efforts, try before you give up, this general setting in =
/etc/modules.conf :

alias sound sb
options sound dmabuf=3D1
options sb io=3D0x220 irq=3D5 dma=3D0 mpu_io=3D0x300

With some lucks, you get low-quality sound, mainly, at peak volume the =
output remains not strong as it should be :-)



------=_NextPart_000_0020_01C3260B.6E10DB00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Finally, i'm getting the sound working. =
The=20
standrard nm256_audio module is not suitable. Despite it loads =
correctly, it=20
didn't include any sound capabilities. From my own experience, i think =
that the=20
"correct" driver for old Neomagic nm256AV sound cards specially those =
inside old=20
laptops depend tightly on hardware configuration. It behaves like a =
mixture of=20
various audio chipsets packaged into one. The challenge is to find the =
correct=20
combination. So, i don't know if the following statement work for non =
IBM=20
thinkpad user's.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>First, and this the most important =
thing, i start=20
by catching my own audio BIOS setting :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>SB I/O address : 220</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>WSS&nbsp;I/O address :=20
530</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>adlib I/O address : 388</FONT></DIV>
<DIV>MPU I/O address : 300</DIV>
<DIV>CTRL I/O address : 120</DIV>
<DIV>DMA A : DMA 0</DIV>
<DIV>DMA B : DMA 1</DIV>
<DIV>IRQ : 5</DIV>
<DIV><FONT face=3DArial size=3D2>joystick : enabled</FONT></DIV>
<DIV></FONT>&nbsp;</DIV></DIV>
<DIV><FONT face=3DArial size=3D2>IBM thinkpad owners can download and =
use ps2.exe=20
configuration utility program from IBM site. It shows for me =
:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>ADDress : 530</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sbaddress : 220</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ADLibaddress : 388</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>MIDIport : 300</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>CTRLaddress : 120</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>IRQ : 5</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>DMA : 0</FONT></DIV>
<DIV></FONT>&nbsp;</DIV></DIV>
<DIV><FONT face=3DArial size=3D2>Then to configure the card, i proceed =
by adding=20
this lines to /etc/modules.conf before rebooting the machine =
:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>alias sound opl3sa2</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>options sound dmabuf=3D1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>alias&nbsp;synth0 opl3</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>options opl3 io=3D0x388</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>options opl3sa2 mss_io=3D0x530 irq=3D5 =
dma=3D0 dma2=3D1=20
mpu_io=3D0x300 io=3D0x120</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If at startup, in the stage where =
modules are=20
loading, an error occurs it's probably because thr IRQ and/or I/O =
parameters=20
were not set correctly in /etc/modules.conf and then they have to be=20
changed.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>As last resort, when everything seems =
not working=20
despite your generous painful efforts, try before you give up, this =
general=20
setting in /etc/modules.conf :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>alias sound sb</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>options sound dmabuf=3D1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>options sb io=3D0x220 irq=3D5 dma=3D0=20
mpu_io=3D0x300</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>With some lucks, you get low-quality =
sound, mainly,=20
at peak volume the output remains not strong as it should be =
:-)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0020_01C3260B.6E10DB00--