Got sound working on Toshiba laptop


Forum: Multimedia
Topic: Got sound working on Toshiba laptop
started by: Multichill

Posted by Multichill on Oct. 22 2004,23:11
Hi peepz,

Just reporting how i got the sound working on my Toshiba Satellite 310CDT laptop. Maybe someone can use it some time in the future.

When you boot the latop and hold the ESC key you get into the bios.
In the bios you can find a sorts of info about the soudcard, it's quite hidden (i didnt see it at first, thanks Clint for pointing out  :laugh: )

The info from the bios:
Code Sample

WSS I/O address = 530H
SBPRO I/O address = 220H
Synthesizer I/O address = 388H

WSS & SBPRO & MPU401 address IRQ level = IRQ 5
WSS(play) DMA = channel 1
WSS(rec) & sbpro DMA = channel 0
Control I/O address = 370 H
MPU 401 (midi I/F) = 330 H

Boot the laptop and become root.

After some googleing if found out i had to have the "opl3sa2" module.
When you type "modinfo opl3sa2" you get a lot of info about the driver.
Code Sample

filename:    /lib/modules/2.4.26/kernel/drivers/sound/opl3sa2.o
description: "Module for OPL3-SA2 and SA3 sound cards (uses AD1848 MSS driver)."
author:      "Scott Murray <scott@spiteful.org>"
license:     "GPL"
parm:        io int, description "Set I/O base of OPL3-SA2 or SA3 card (usually 0x370.  Address must be even and must be from 0x100 to 0xFFE)"
parm:        mss_io int, description "Set MSS (audio) I/O base (0x530, 0xE80, or other. Address must end in 0 or 4 and must be from 0x530 to 0xF48)"
parm:        mpu_io int, description "Set MIDI I/O base (0x330 or other. Address must be even and must be from 0x300 to 0x334)"
parm:        irq int
parm:        dma int, description "Set MSS (audio) first DMA channel (0, 1, 3)"
parm:        dma2 int, description "Set MSS (audio) second DMA channel (0, 1, 3)"
parm:        ymode int, description "Set Yamaha 3D enhancement mode (0 = Desktop/Normal, 1 = Notebook PC (1), 2 = Notebook PC (2), 3 = Hi-Fi)"
parm:        loopback int, description "Set A/D input source. Useful for echo cancellation (0 = Mic Rch (default), 1 = Mono output loopback)"
parm:        isapnp int, description "When set to 0, ISA PnP support will be disabled"
parm:        multiple int, description "When set to 0, will not search for multiple cards"

For some strange reason the bios uses WSS and the driver uses MSS, but who cares :P

I put those 2 together and got:
Code Sample

#modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0


Now i have sound :)

Posted by SaidinUnleashed on Oct. 23 2004,01:25
woo-hoo! thanks for the info.

Got the info from my BIOS (didn't know how to get into 'em before) got the info, and manually set up the sb.o driver on my 420CDS, and now the sound works.
I can't play music and run X at the same time, but with mpg123, it sounds great.

thanks a lot!!

now if I can just figure how to get the text in runlevel 2 to not run past the bottom of the screen, it would be a perfect world.

-J.P.

Posted by ke4nt1 on Oct. 23 2004,02:41
Good Work, MultiChill !

Quote
now if I can just figure how to get the text in runlevel 2 to not run past the bottom of the screen, it would be a perfect world.


Usually, selecting the proper framebuffer at boottime solves this...
Perhaps the screen resolution is a non-standard size ?
How can I help?

73
ke4nt

Posted by SaidinUnleashed on Oct. 23 2004,04:01
hmm, dunno, x runs beautifuly at 800x600x16 with Xvesa. How do I switch to Xfbdev in an HD-install?
Posted by l0st on Oct. 23 2004,07:15
Now here's a question; is it possible to automate this process? Are scripts capable of reading info off the BIOS?
Posted by caulktel on Oct. 24 2004,05:14
Yes 10st, you just need to place this line in your /opt/bootlocal.sh.
modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0, then save it. If you are using the bootable cd, make sure to backup your settings to a thumb drive or some other disk partition. If its a hard drive install it should work on reboot. You don't know how hard I looked for this very information about a year ago, and I found here in these forums.

Posted by thenuke on Nov. 09 2004,04:16
Thanks, that worked for my laptop too :-)
Posted by vhangell on Aug. 02 2005,22:12
Thanks MultiChill and caulktel :D  :D  :D  I have a toshiba portege 7000ct and uses an opl3sa3 but opl3sa2 module works fine. ive been using wss_io i didnt know mss_io is the correct one. darn! i was using dsl since day 1.. and i've only made this soundcard work today..  :p

for other tohsiba portege7000ct users

Quote
modprobe opl3sa2 io=0x538 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0

Posted by twirlz on Aug. 12 2005,01:25
i just recently got DSL working on my toshiba laptop and i must thank you guys for being really helpfull it seems on this forum.

i did that whole command "modprobe opl3sa2 yada yada yada" and it worked wonderfully.  then i went and edited my bootlocal.sh with said command and on boot up i get an error that says
Quote
/lib/modules/2.4.26/kernel/drivers/sound/sound.o: create_module: Operation not Permitted
/lib/modules/2.4.26/kernel/drivers/sound/sound.o: insmod /lib/modules/2.4.26/kernel/drivers/sound/sound.o failed
/lib/modules/2.4.26/kernel/drivers/sound/sound.o: insmod opl3sa2 failed


did i do something wrong when editing the bootlocal.sh

also i am running DSL on a toshiba satellite 220cds with 133mhz with 48 megs of ram and a 3 gig HDD

any help will be great!

Thanks

Posted by Hobbesian on Aug. 20 2005,02:08
Thanks Multichill, got sound going on my Toshiba Sat Pro 480CDT.

And to play MP3 through X, enable the MP3 plug-in in Xmms

Thanks guys!

Posted by Impi on Aug. 27 2005,13:26
Sound is also working on my Laptop. My problem is that I can't control my volume. Wmix says "error: device mask ioctl failed". The xmms-volume slider doesn't work, too.

I have controlled my addresses in the bios several times, they're allright...

Posted by edgecrusher on Sep. 20 2005,02:57
Quote (caulktel @ Oct. 24 2004,01:14)
Yes 10st, you just need to place this line in your /opt/bootlocal.sh.
modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0, then save it. If you are using the bootable cd, make sure to backup your settings to a thumb drive or some other disk partition. If its a hard drive install it should work on reboot. You don't know how hard I looked for this very information about a year ago, and I found here in these forums.

This worked perfectly to get the sound working on my Gateway Solo 9100 laptop.  Thanks for the help!

Posted by spock on Dec. 18 2005,23:11
On my Toshiba 430 CDS (Pentium 120 MHz with 48 MB RAM) I had to do the following :

Code Sample
modprobe sb io=0x220 irq=5 dma=1 esstype=688


Now I can play Mp3 music saved on disk (I never could do that with Win 95) but only with mpg321 in Joe's Window Manager. And if I move the mouse or do anything the sound starts cracking. In Fluxbox 0.9.11 (my default WM) the CPU seems to be overloaded, especially with XMMS it's inaudible.

But well the goal is achieved : turning this 9 year old computer into a 1 Gig Mp3 player which I can use with the 15 year old stereo of my wife to listen to downloaded music.

DSL beams me up  :D

Edit : after compressing the audio files with a different bit rate it works much better.

Posted by xitonghan on Mar. 04 2007,05:04
thanks !
my NB is LENEND Soleil 5200
CPU:MMX166
RAM:16+64M

opl3sa2 now can work!!!!!
thanks !
DSL is great

Posted by xitonghan on Mar. 04 2007,05:43
Quote (twirlz @ Aug. 11 2005,21:25)
i just recently got DSL working on my toshiba laptop and i must thank you guys for being really helpfull it seems on this forum.

i did that whole command "modprobe opl3sa2 yada yada yada" and it worked wonderfully.  then i went and edited my bootlocal.sh with said command and on boot up i get an error that says
Quote
/lib/modules/2.4.26/kernel/drivers/sound/sound.o: create_module: Operation not Permitted
/lib/modules/2.4.26/kernel/drivers/sound/sound.o: insmod /lib/modules/2.4.26/kernel/drivers/sound/sound.o failed
/lib/modules/2.4.26/kernel/drivers/sound/sound.o: insmod opl3sa2 failed


did i do something wrong when editing the bootlocal.sh

also i am running DSL on a toshiba satellite 220cds with 133mhz with 48 megs of ram and a 3 gig HDD

any help will be great!

Thanks

no matter!
mine too, but the soundcard work ok!

Posted by peacerist on July 21 2010,10:52
Hi all,

I got Yamaha OPL3-SAx which worked by following on Asus L7000:

The resource link: < see sound card section >

1. check cat /proc/isapnp (usually inactive)
2. activate cart using the script on the page above.
Code Sample
#!/bin/sh
echo "card 0 YMH0800
dev 0 YMH0021
port 0 0x220
port 1 0x530
port 2 0x388
port 3 0x330
port 4 0x370
irq 0 5
dma 0 0
dma 1 1
activate
dev 0 YMH0022
port 0 0x201
activate
" > /proc/isapnp

3. sudo modprobe drivers...
Code Sample

sudo modprobe opl3 io=0x388
sudo modprobe opl3sa2 ymode=2 isapnp=1

Tested on DSL 4.4.10

Cheers!

Mahmut

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.