[linux-audio-dev] ALSA => OSS compatibility 2

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] ALSA => OSS compatibility 2
From: Doru-Catalin Togea (doru-cat_AT_ifi.uio.no)
Date: Mon Mar 18 2002 - 11:31:19 EET


Hi again!

I am trying to learn sound programming with Linux, and I struggle to make
my sound system work. Please ignore this posting if you find it too little
related to CODING sound apps.

In file "/usr/src/linux-2.2.18/.config" I have the following line:
   CONFIG_SOUND_OSS=m

So I guess I should have OSS compatibility available as a module, even
though it is not built into the kernel.

By reading the alsa-mini-howto I was directed to look at things in the
following files and directories:

linux:/proc/asound # ls
. 1 cards devices oss-devices seq timers
.. card2 dev hwdep pcm sndstat version
linux:/proc/asound #

Why don't I have a card0 and card1 entry? It this bad?

linux:/proc/asound # more cards
1 [card2 ]: YMFPCI - Yamaha DS-XG PCI (YMF754)
                     Yamaha DS-XG PCI (YMF754) at 0xefff0000, irq 11
linux:/proc/asound #

In connection with my previous question: shouldn't my card have been
configured as card0?

linux:/proc/asound/card2 # ls
. pcmloopD0S0c pcmloopD0S16p pcmloopD0S23p pcmloopD0S30p
pcmloopD0S9p|
.. pcmloopD0S0p pcmloopD0S17p pcmloopD0S24p pcmloopD0S31p
pcmloopD1S0p
ac97 pcmloopD0S10p pcmloopD0S18p pcmloopD0S25p pcmloopD0S3p
pcmloopD2S0c
ac97regs pcmloopD0S11p pcmloopD0S19p pcmloopD0S26p pcmloopD0S4p
ymfpci
midiD0 pcmloopD0S12p pcmloopD0S1p pcmloopD0S27p pcmloopD0S5p
mixerD0 pcmloopD0S13p pcmloopD0S20p pcmloopD0S28p pcmloopD0S6p
pcmD0o pcmloopD0S14p pcmloopD0S21p pcmloopD0S29p pcmloopD0S7p
pcmD1o pcmloopD0S15p pcmloopD0S22p pcmloopD0S2p pcmloopD0S8p
linux:/proc/asound/card2 #

I guess, these are the alsa device names.

Some config data from "/etc/modules.conf":

#*****************************************************************************
# Example configs for ALSA
# You don't need to run isapnp with ALSA, it has full PnP support.
# See /usr/share/doc/packages/alsa/README.SuSE
#*****************************************************************************
#
# ALSA native device support and OSS emulation support. Uncomment these
# lines to enable ALSA:

 alias char-major-14 soundcore
 alias char-major-116 snd
 alias sound-slot-0 snd-card-0
 alias sound-service-0-0 snd-mixer-oss
 alias sound-service-0-1 snd-seq-oss
 alias sound-service-0-3 snd-pcm-oss
 alias sound-service-0-8 snd-seq-oss
 alias sound-service-0-12 snd-pcm-oss

# Uncomment this line too, you can setup your ALSA device permissions
here:
#
# options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666
snd_device_gid=\
17 snd_device_uid=0

linux:~ # more /proc/modules
snd-pcm-oss 18288 0 (autoclean) (unused)
snd-pcm-plugin 14032 0 (autoclean) [snd-pcm-oss]
snd-mixer-oss 4544 0 (autoclean) [snd-pcm-oss]
mousedev 3856 0 (unused)
hid 11680 0 (unused)
input 2880 0 [mousedev hid]
usb-uhci 19056 0 (unused)
3c589_cs 8656 1
ds 6608 2 [3c589_cs]
i82365 23408 2
pcmcia_core 46848 0 [3c589_cs ds i82365]
snd-seq-midi 4144 0 (unused)
snd-seq-midi-event 2896 0 [snd-seq-midi]
snd-seq 42912 0 [snd-seq-midi snd-seq-midi-event]
snd-card-ymfpci 4384 0
snd-ymfpci 38656 0 [snd-card-ymfpci]
snd-pcm 35296 0 [snd-pcm-oss snd-pcm-plugin snd-ymfpci]
snd-ac97-codec 27168 0 [snd-ymfpci]
snd-mixer 28624 0 [snd-mixer-oss snd-ymfpci snd-ac97-codec]
snd-opl3 5232 0 [snd-card-ymfpci]
snd-hwdep 4208 0 [snd-opl3]
snd-timer 10688 0 [snd-seq snd-pcm snd-opl3]
snd-mpu401-uart 3184 0 [snd-card-ymfpci]
snd-rawmidi 10624 0 [snd-seq-midi snd-mpu401-uart]
snd-seq-device 4080 0 [snd-seq-midi snd-seq snd-rawmidi]
snd 43632 1 [snd-pcm-oss snd-pcm-plugin snd-mixer-oss
snd-seq-
midi snd-seq-midi-event snd-seq snd-card-ymfpci snd-ymfpci snd-pcm
snd-ac97-codec s
nd-mixer snd-opl3 snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi
snd-seq-device]
soundcore 2576 6 [snd]
usbcore 45104 1 [hid usb-uhci]
linux:~ #

I wonder why I don't have OSS compatibility installed. I can not find the
snd-pcm1-oss module on my system:

linux:/dev # locate snd-pcm1-oss
linux:/dev #

Still /dev/dsp IS created, but somehow "turned off":

linux:/dev # ls -l dsp
lrwxrwxrwx 1 root root 4 Mar 13 18:23 dsp -> dsp0
linux:/dev #

(I tryed also "chown username /dev/dsp", but I still cannot access
/dev/dsp with ioctl() calls. I get: "/dev/dsp: No such device".

Any sugestions?

PS: Maybe this helps further with a diagnosis: my CD-player (kscd I
think) plays music, but I can not start other sound apps, like the KDE
Media Player. I get the following error message: "Connection to the sound
server failed - make sure that artsd is really running." When I start kmix
it fires up but there are no controls displayed to set any volumes, just
an empty window-widget and a meny. So I guess my system is somehow
half-way configured.

Thanks if anyone can help,
Catalin

        <<<< ================================== >>>>
        << We are what we repeatedly do. >>
        << Excellence, therefore, is not an act >>
        << but a habit. >>
        <<<< ================================== >>>>


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Mar 18 2002 - 11:21:41 EET