[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: newbie soundcard problem



On Mon, Mar 18, 2002 at 11:29:32AM -0500, nick phillips wrote:
> hello debian laptop list!
> 
> i'm a complete linux newbie who's recently installed debian 2.2.17 on a
> toshiba tecra 8000. everything seems to have worked ok except for the
> soundcard. i use wmaker, and using the cdplayer or other sound utilities i
> get no sound whatsoever. when i run gnome-session, i get a string of error
> messages saying '\dev\dsp: no such device." when i run 'car \dev\sndstat' i
> show no drivers loaded.
> 
> so, all this leads me to believe i need to load a driver for the soundcard,
> which is a yamaha opl-sa3. however, i'm not sure how i do that! 

I've got a Toshiba 490CDT, which I think uses Yamaha OPL-SA2, which I believe
to be much the same as -SA2.

As others already said, you want to recompile your kernel, switching on
support for the sound card.  In my current 2.4 kernel I've got:
CONFIG_SOUND=m
CONFIG_SOUND_OSS=m
CONFIG_SOUND_DMAP=y
CONFIG_SOUND_YM3812=m
CONFIG_SOUND_OPL3SA2=m

All other CONFIG_SOUND options are not set.  Unfortunately, if you're still
using a 2.2 kernel, they simplified a couple of the options in 2.4 compared
to 2.2, but hopefully you'll find what you need.  I found the sound needs to
be compiled as a module, not directly into the kernel, otherwise it doesn't
get reset properly after a suspend/resume cycle.

I get the soundcard to configure itself automatically on boot and resume by
defining /etc/modutils/sound with:
#####################################################
# Sound
#alias char-major-14 opl3sa2
#pre-install opl3sa2 modprobe "-k" "ad1848"
post-install opl3sa2 modprobe "-k" "opl3"
alias sound-slot-0 opl3sa2
#alias sound-service-0-0 off
#alias sound-service-0-6 off
alias synth0 opl3
options opl3 io=0x388
options -k opl3sa2 isapnp=0 io=0x538 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0 ymode=1 loopback=0
post-install opl3 /usr/bin/aumix -L

# see kernel/Documentation/sound/README.modules for explanation
# (persistent DMA buffers)
options sound dmabuf=1
###########################################################

The reference to ad1848 was one of the extra modules required in the 2.2
kernel, which is now simplified in 2.4.  You might need to adapt slightly
for 2.2.  When /etc/modutils/sound is defined in this way, you won't need to
run "insmod" on the sound module explicitly, it'll be handled automatically.
The reference to aumix near the bottom readjusts the mixing levels using
aumix.

Good luck!

Drew

-- 
PGP public key available at http://people.debian.org/~dparsons/drewskey.txt
Fingerprint: A110 EAE1 D7D2 8076 5FE0  EC0A B6CE 7041 6412 4E4A



Reply to: