Multimedia :: Got sound working on Toshiba laptop



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 :)

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.

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

hmm, dunno, x runs beautifuly at 800x600x16 with Xvesa. How do I switch to Xfbdev in an HD-install?
Now here's a question; is it possible to automate this process? Are scripts capable of reading info off the BIOS?
Next Page...
original here.