From alsa-devel-owner@alsa.jcu.cz  Wed Feb 10 04:18:25 1999
Received: from uria.its.uu.se (uria.its.uu.se [130.238.7.14])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id EAA19187
	for <alsa-devel@alsa.jcu.cz>; Wed, 10 Feb 1999 04:17:44 +0100
Received: from heoh1717.STUDENT.UU.SE ([172.23.2.25]:62167 "EHLO student.uu.se" ident: "IDENT-NOT-QUERIED") by uria.its.uu.se with ESMTP id <34881-8278>; Wed, 10 Feb 1999 04:17:20 +0100
Message-ID: <36C1079F.680179D0@student.uu.se>
Date: 	Wed, 10 Feb 1999 05:14:23 +0100
From: heoh1717@student.uu.se
MIME-Version: 1.0
To: alsa-devel@alsa.jcu.cz
Subject: OPL3-SA2 & OSS compability
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list


Hi, I've been trying to get OSS compability into alsa for the better
part of the evening
and I haven't succeeded, despite a lot of help from various
linux-channels on EFNet. 

aplay works fine, so the alsa-driver should be working properly. My
module list looks like 
follows 

---
calliope:/etc/init.d# cat /proc/modules
snd-pcm1-oss           14072   0 (unused)
snd-opl3sa              5216   0
snd-cs4231             12336   0 [snd-opl3sa]
snd-mixer              13396   0 [snd-pcm1-oss snd-opl3sa snd-cs4231]
snd-pcm1               16864   0 [snd-pcm1-oss snd-cs4231]
snd-pcm                 9020   0 [snd-pcm1-oss snd-opl3sa snd-cs4231
snd-pcm1]
snd-opl3                2100   0 [snd-opl3sa]
snd-timer               3244   0 [snd-cs4231 snd-opl3]
snd-synth               1196   0 [snd-opl3sa snd-opl3]
snd-mpu401-uart         1672   0 [snd-opl3sa]
snd-midi               14436   0 [snd-opl3sa snd-mpu401-uart]
snd                    39420   0 [snd-pcm1-oss snd-opl3sa snd-cs4231
snd-mixer snd-pcm1 snd-pcm snd-opl3 snd-timer snd-synth snd-mpu401-uart
snd-midi]
---

where the (unused) is what confuses me. 

Running, for instance, mpg123 gives the following strace output

calliope:/mp3# strace -e trace=open mpg123 Erek\ \&\ JepPe\ -\ All\
Star\ Sidz\ 2.mp3 
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59o (1998/Feb/08). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
open("/dev/dsp", O_WRONLY)              = -1 ENODEV (Operation not
supported by device)
Can't open /dev/dsp!

and my /dev/dsp and /dev/audio looks as follows

calliope:/mp3# ls -la /dev/dsp /dev/dsp0
lrwxrwxrwx   1 root     root            9 Feb 10 03:57 /dev/dsp ->
/dev/dsp0
crw-rw----   1 root     audio     14,   3 Feb 10 03:57 /dev/dsp0
calliope:/mp3# ls -la /dev/audio /dev/audio0
lrwxrwxrwx   1 root     root           11 Feb 10 03:57 /dev/audio ->
/dev/audio0
crw-rw----   1 root     audio     14,   4 Feb 10 03:57 /dev/audio0

which also seems ok. 


Have I just made a stupid mistake or is OSS unsupported for the OPL-SAx? 

Thanks, Henrik.

PS. As I'm not on the mailinglist, please CC all replies to my Reply-To.
DS

spiff.devotion

