TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sound drivers



"L. Crisp" wrote:
> 
> I knew it would be something simple that I could not remember.  That worked,
> thank you for the reminder.   However, I have another, slightly related
> question.  One of the main reasons I needed to get to a terminal was to run
> sndconfig.  However, after probing, (and finding the correct card), sndconfig
> just stops.  Upon inspection, dmesg contains the following:
> 
>   ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
>   Found OPL3-SA3 (YMF715)
>   YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
>   opl3: I/O port 0x388 already in use
> 
> It looks to me like the device is there, but is conflicting with
> something else.  According to the I/O ports listing (in KDE, I don't know the
> terminal level way of checking), 0x388 is in use by mpu401, which is sound
> related.  Anyone have any thoughts?  I've been thinking of recompiling my
> kernel, anyone think that will that help?

The 'terminal way' of checking (gee that sounds like such a bad thing to
do ;-) is to 'cat /proc/ioports'  BTW - the proc filesystem is really
fun to hunt around in every once in a while.

Anyway, my guess is that the mpu401 driver loaded before the ad1848
driver (though I don't know why that is happening).  Alternatively, the
ad1848 driver could be controlling the 0x388 I/O port for some strange
reason (I don't really know what that would be, unless the MIDI system
is built into that driver.)

In any event, the best way to diagnose exactly what is going on is to
load the appropriate modules by hand.  A lot of module documentation
comes along with the kernel (well, duh ;-) in
/usr/src/linux/Documentation/modules.txt

There are several modules associated with sound.  On my system (Linux
2.2 with a trusty SB16), the associated modues are sb, uart401, sound,
and soundcore.  When you remove modules, you have to be sure that you
remove them in the right order, otherwise nothing will happen.  For me,
I need to go in the following order:

root ~># rmmod uart401
root ~># rmmod sb
root ~># rmmod sound
root ~># rmmod soundcore

From here, start going through and adding the appropriate modules.  For
your card, I think the order would be pretty simple:

root ~># modprobe sound
root ~># modprobe ad1848

After that, I think that sound _should_ work.  If not, there's probably
a funky configuration in your /etc/conf.modules or /etc/modules.conf
(the new versions of modutils use modules.conf, which is a little less
confusing..)  Or maybe you just haven't set the mixer properly ;-)

Hope that helps..

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Protect Your Rights: 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   http://www.opendvd.org 
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)                             
 [ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@umn.edu ]