From alsa-user-owner@alsa.jcu.cz  Tue Sep 15 21:52:14 1998
Received: from smtp3.erols.com (smtp3.erols.com [207.172.3.236])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id VAA10400
	for <alsa-user@alsa.jcu.cz>; Tue, 15 Sep 1998 21:52:05 +0200
Received: from oemcomputer (207-172-126-72.s9.as9.nyb.erols.com [207.172.126.72])
	by smtp3.erols.com (8.8.8/8.8.5) with SMTP id PAA21146
	for <alsa-user@alsa.jcu.cz>; Tue, 15 Sep 1998 15:52:03 -0400 (EDT)
Message-ID: <35FEC4FC.6E79@erols.com>
Date: Tue, 15 Sep 1998 15:50:20 -0400
From: Paul Winkler <zarmzarm@erols.com>
MIME-Version: 1.0
To: alsa-user@alsa.jcu.cz
Subject: Can't use OSS-compatible apps
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

I've just installed ALSA 0.2.0-pre7, and I'm somewhat encouraged because
alsamixer runs and works fine with xplaycd. So at least I can play
CDs. I've also verified that I can control the mic input gain. 

But I can't figure out how to get OSS-compatible apps to work. I read
the FAQ and tried  'modprobe snd-pcm1-oss' by hand. Now I see this in
/proc/asound/oss-devices: 

  0: [0- 0]: mixer
  2: [0- 2]: raw midi
  3: [0- 3]: digital audio
  4: [0- 4]: digital audio
  5: [0- 5]: digital audio
  6:       : sndstat
  9: [0- 9]: raw midi
 16: [1- 0]: mixer
 19: [1- 3]: digital audio
 20: [1- 4]: digital audio
 21: [1- 5]: digital audio


This looks promising. But still, any app I try to use to record or
play just hangs. I've tried MiXViews, DAP, and sox. Is there something
else I need to do to get OSS-compatible apps to work?

Here's my setup:

RedHat 5.0, kernel patched to 2.0.34, glibc 2.0.7-19
Pentium 133
2 soundcards: 
  Turtle Beach Malibu (CS-4237B)
  Creative Labs Vibra16C (should be usable as a SoundBlaster 16 PnP)

I have had this setup working with OSS-Linux, and before that with
OSS-lite and isapnp. Configuration is tricky because both cards have
an OPL-3 synth which seem to want the same pnp resources. Usually I
just disable the Vibra16's devices because I only use the Malibu. (I
would take the Vibra out of the machine, but it's built in to the
motherboard!)

When I do '/sbin/isapnp isapnp.conf ; alsasound start', the messages
look fine:

  Starting sound driver: snd-card-cs4236 done
  Starting sound driver: snd-sb16 done

------------------------------------

This is the output of 'cat /dev/sndstat':

Sound Driver:3.8.1a-980706 (ALSA v0.2.0-pre7 emulation code)
Kernel: Linux localhost.localdomain 2.0.34 #1 Tue Aug 18 23:22:57 EDT
1998 i586
Config options: 0

Installed drivers: 
Type 10: ALSA emulation


Card config: 
CS4237B at 0x534, irq 7, dma 1&0
Sound Blaster 16 at 0x240, irq 10, dma 3&7

Audio devices:               --Note: This looks fine, right?
0: CS4237B                     These devices didn't show up until
1: DSP v4.13                   I did 'modprobe snd-pcm1-oss'

Synth devices: 
0: OPL3 FM
1: OPL3 FM

Midi devices: 
0: MPU-401 (UART)

Timers: 
0: CS4237B
7: system timer

Mixers: 
0: CS4237B
1: CTL1745


------------------------------------------------------

Here is my /etc/conf.modules. I admit I don't understand all
that major and minor stuff. To make things more readable, I split a
lot of it up onto separate lines using backslashes, which seems to be
OK.  As far as I can see, everything here matches isapnp.conf

alias char-major-14 snd
alias snd-minor-oss-0 snd-mixer
alias snd-minor-oss-3 snd-pcm1-oss
alias snd-minor-oss-4 snd-pcm1-oss
alias snd-minor-oss-5 snd-pcm1-oss
alias snd-minor-oss-12 snd-pcm1-oss
alias snd-card-0 snd-card-cs4236
alias snd-card-1 snd-sb16
options snd snd_major=14 snd_cards_limit=2

# Malibu configuration.
options snd-card-cs4236 snd_index=1 \
snd_port=0x534 \
snd_irq=7 \
snd_dma1=1 snd_dma2=0 \
snd_cport=0x120 \
snd_mpu_port=330 snd_mpu_irq=9 \
snd_fm_port=0x388 \
snd_jport=0x208 

# Vibra16 configuration.
options snd-sb16 snd_index=2 \
snd_port=0x220 \
snd_irq=5 \
snd_mpu_port=-1 \
snd_dma8=3 snd_dma16=5 \
snd_mic_agc=0

--------------------------------------------------
Here's my isapnp.conf file (most comments removed):


(READPORT 0x0203)
(ISOLATE)
(IDENTIFY *)
# ANSI string -->Turtle Beach Malibu <--
(CONFIGURE CSC7537/-1 (LD 0
#     ANSI string -->WSS/SB <--
 (DMA 0 (CHANNEL 1))
 (DMA 1 (CHANNEL 0))
 (IO 0 (BASE 0x0534))
 (IO 1 (BASE 0x0388))
 (IO 2 (BASE 0x0220))
 (ACT Y)
))
(CONFIGURE CSC7537/-1 (LD 1
#     ANSI string -->GAME <--
 (IO 0 (BASE 0x0208))
 (ACT Y)
))
(CONFIGURE CSC7537/-1 (LD 2
#     ANSI string -->CTRL <--
 (IO 0 (BASE 0x0120))
 (ACT Y)
))
(CONFIGURE CSC7537/-1 (LD 3
#     ANSI string -->MPU <--
 (IO 0 (BASE 0x0330))
 (INT 0 (IRQ 9 (MODE +E)))
 (ACT Y)
))

# ANSI string -->Creative ViBRA16C PnP<--
(CONFIGURE CTL0070/-1 (LD 0
#     ANSI string -->Audio<--
 (DMA 0 (CHANNEL 3))
 (DMA 1 (CHANNEL 7))
 (IO 0 (BASE 0x0240))
 (IO 1 (BASE 0x0300))
 (INT 0 (IRQ 10 (MODE +E)))
 (ACT Y)
))
(CONFIGURE CTL0070/-1 (LD 1
#     ANSI string -->Game<--
))
# ANSI string -->TelePath for Windows with x2<--
(CONFIGURE USR1001/1711370611 (LD 0
))
(WAITFORKEY)

------------------------------------------------

Thanks for any suggestions!

Regards,

PW

