From alsa-user-owner@alsa.jcu.cz  Wed Nov 25 21:05:38 1998
Received: from gwyn.tux.org (gwyn.tux.org [207.96.122.8])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id VAA29029
	for <alsa-user@jcu.cz>; Wed, 25 Nov 1998 21:00:19 +0100
Received: from localhost (chessman@localhost)
	by gwyn.tux.org (8.9.1/8.9.1) with ESMTP id PAA12842
	for <alsa-user@jcu.cz>; Wed, 25 Nov 1998 15:00:18 -0500
Date: Wed, 25 Nov 1998 15:00:17 -0500 (EST)
From: Samuel S Chessman <chessman@tux.org>
To: alsa-user@jcu.cz
Subject: Success with SB16
In-Reply-To: <19981124232327.11531.rocketmail@send104.yahoomail.com>
Message-ID: <Pine.LNX.4.04.9811251428370.12110-100000@gwyn.tux.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

I wanted to report success with the latest release ALSA v0.2.0-pre10p1
on an SB 16.  The make went ok after I read the message about
automake --foreign; and once I found alsaconf and made the devices
with alsa-driver/snddevices the only issue was to ensure that the
OSS pcm emulation module was loaded and levels were non-zero;

I used this script to build; a top level Makefile seems appropriate

/share/schessma$ cat alsa/MAKE 
--------------- cut here -----------------------
#!/bin/sh
# export CVSROOT=':pserver:anonymous@alsa.jcu.cz:/home/alsa/cvsroot'
# echo passwd guest
# cvs login
# cvs -z3 update

DIRS="
alsa-driver
alsa-lib
alsa-lib++
alsa-utils
"
top=`pwd`

for dir in $DIRS
do
        cd $dir
        aclocal; automake --foreign; autoconf
        ./configure
        make clean
        make
        sudo make install
        cd $top
done

--------------- cut here -----------------------


My configuration:
/share/schessma$ uname -a
Linux schessma-pc 2.1.129 #1 SMP Tue Nov 24 16:04:22 EST 1998 i586 unknown
Not really smp, I just built the default.  It slows things down < 5%.

/share/schessma/alsa$ lsmod
Module                  Size  Used by
snd-pcm1-oss           15060   1 
snd-sb16                3580   2 
snd-sb-dsp             16092   0  [snd-sb16]
snd-pcm1               17740   0  [snd-pcm1-oss snd-sb-dsp]
snd-mpu401-uart         1848   0  [snd-sb16]
snd-mixer              14708   1  [snd-pcm1-oss snd-sb16 snd-sb-dsp]
snd-midi               16300   0  [snd-sb16 snd-sb-dsp snd-mpu401-uart]
snd-pcm                 9516   0  [snd-pcm1-oss snd-sb16 snd-sb-dsp snd-pcm1]
snd-opl3                2056   0  [snd-sb16]
snd-synth               1132   0  [snd-sb16 snd-opl3]
snd-timer               3052   0  [snd-opl3]
snd                    27904   0  [snd-pcm1-oss snd-sb16 snd-sb-dsp snd-pcm1 snd-mpu401-uart snd-mixer snd-midi snd-pcm snd-opl3 snd-synth snd-timer]

/share/schessma/alsa$ cat /etc/conf.modules
alias eth0 3c509
alias scsi_hostadapter aic7xxx
# alias char-major-14 sb
# post-install sb /sbin/modprobe "-k" "adlib_card"
# options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330
# options adlib_card io=0x388     # FM synthesizer

# --- BEGIN: Generated by ALSACONF, do not edit. ---
alias char-major-14 snd
alias snd-minor-oss-0 snd-sb16
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-sb16
options snd snd_major=14 snd_cards_limit=1 snd_device_mode=0660 snd_device_gid=1003 snd_device_uid=0
options snd-sb16 snd_index=1 snd_id=CARD_1 snd_port=0x220 snd_mpu_port=0x300 snd_irq=5 snd_dma8=1 snd_dma8_size=8 snd_dma16=5 snd_dma16_size=16 snd_mic_agc=1
# --- END: Generated by ALSACONF, do not edit. ---
post-install snd /sbin/modprobe "-k" "snd-pcm1-oss"

/share/schessma/alsa/alsa-utils/alsamixer$ amixer
CLI ALSA Mixer v0.11 (c) 1998 Adnans

Master          100% (  0.00dB) : 100% (  0.00dB)         
Bass            50 % (  0.00dB) : 50 % (  0.00dB)         
Treble          50 % (  0.00dB) : 50 % (  0.00dB)         
Synth           90 % ( -6.00dB) : 90 % ( -6.00dB)         
PCM             90 % ( -6.00dB) : 90 % ( -6.00dB)         
Line-In         0  % (-62.00dB) : 0  % (-62.00dB) Mute    
MIC             1  % (-62.00dB) : 1  % (-62.00dB) Mute    
CD              0  % (-62.00dB) : 0  % (-62.00dB) Mute    
In-Gain         0  % (-18.00dB) : 0  % (-18.00dB)         
Out-Gain        0  % (-18.00dB) : 0  % (-18.00dB)         
PC Speaker      0  % (-18.00dB) : 0  % (-18.00dB)  

I note much better performance playing mp3 with x11amp than OSS.  No skips
when I open windows, move data, etc.

I hope to be testing with more tools on other PCs with SBawe32 and SBawe64
later this week.  SLab, Lilypond, Rosegarden;
none of which have a native ALSA mode (yet).
--------------------------------------------------------------------------------
   Sam Chessman                                              chessman@tux.org
                 "Id imperfectum manet dum confectum erit."


