This weekend I attempted to install 2 sound cards into my Mandrake 7.0 box, one
for the desktop speakers (system sounds) and one with a
headphone-to-RCA-plug cable plugged into the auxilary input on my receiver
(MP3's). One's a SB16 PNP and one's a PCI Ensoniq 1371.
It does work now, but I noticed some strangeness and wondered if anyone can
shed some light.
After some effort I finally got both kernel modules loaded and both sound
cards working. Strictly using the stock OSS drivers. I had to tweak ISAPNP
to get the IRQ's right for the ISA card, and I had to add an options line for
the sb module to modules.conf to explicitly give the IRQ, IO address, and DMA
number. The es1371 didn't need any tweaking. I wanted xmms and mpg123 to
play MP3's on /dev/dsp1 and ESD to handle "normal" sound on /dev/dsp0.
Here's what I saw:
Device strangeness: The order you do the modprobe for es1371 and sb determines
which card gets which dsp device, but with this weird behavior: If you do sb
then es1371, sb gets /dev/dsp0 and es1371 gets /dev/dsp1, vice versa es1371
gets /dev/dsp0 AND /dev/dsp1, and sb gets /dev/dsp2! What's up with that?
This was determined using esd -d and listening where the test tones came from.
XMMS strangeness: The OSS Driver Output plugin configuration has a selection
widget for audio device, but it only shows the SB16 (on /dev/dsp0), does
that look like a bug?
MPG123 strangeness: version 0.59r ONLY recognizes the device which is
symbolically linked to /dev/dsp. There is a -a option which is supposed to
allow you to specify, but it doesn't work, it always goes to /dev/dsp whichever
device that links to. I sent the author an email asking if that's a known
issue.
My workaround to get at least xmms working was to start up a 2nd ESD daemon
using the -tcp option and the -d /dev/dsp1 device option, and then using the
xmms ESD output plugin and checking "use remote host" and pointing it to
localhost and port 16001 (the default port for ESD). Now xmms plays to the
second sound card using a loopback TCP/IP socket to the 2nd ESD.
So I'm happy, Linux/Unix has once again shown it's amazing flexibility (would
redirecting sound output to a 2nd device even be possible with Windows MP3
apps? I don't really know or care), but I was surprised to see all these
little oddities. It makes me think that likely not many people do this or I'm
not using the software right. As cheap as 16-bit sound cards are, this is a
decent setup I think to support both PC speakers and real sound. And in the
end there were enough setup options to work around the glitches nicely.
Later,
Jeff
--
Message of the Message:
It is always the best policy to tell the truth, unless, of course,
you are an exceptionally good liar.
                -- Jerome K. Jerome
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.