From alsa-user-owner@alsa.jcu.cz  Tue Oct 27 09:20:55 1998
Received: from mail.metaphasetech.com (mail.metaphasetech.com [206.147.80.50])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id JAA09447
	for <alsa-user@alsa.jcu.cz>; Tue, 27 Oct 1998 09:16:03 +0100
Received: from MetaphaseTech.com (rgg@dell48.metaphasetech.com [206.147.81.145])
	by mail.metaphasetech.com (8.8.5/8.8.5) with ESMTP id CAA10854
	for <alsa-user@alsa.jcu.cz>; Tue, 27 Oct 1998 02:15:31 -0600 (CST)
Message-ID: <36358122.1690CE7E@MetaphaseTech.com>
Date: Tue, 27 Oct 1998 08:15:30 +0000
From: Ryan Gustafson <Ryan.Gustafson@MetaphaseTech.com>
MIME-Version: 1.0
To: alsa-user@alsa.jcu.cz
Subject: CS4236B unable to load with /etc/conf.comdules options
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

Hi,

I've been trying to get ALSA loaded because it claims support for
the CS4236B.  I've only had partial success with the sound drivers
that come with Redhat.  I was able to use 'xplaycd' to listen CD's.
But, I was not able to play .wav or .mp3 files, and I tried about a
half dozen different players, none worked.

So first, my setup:

   Dell Workstation 400
   PII-300 w/ 128MB
   Crystal CS4236B (on motherboard)
   Redhat 5.1
   Kernel 2.0.35 (custom)

I read the INSTALL document.  First step is says was to remove
the OSS/Lite driver.  I assume this is was Redhat has.  So, I did
a 'make menuconfig' and completely disabled the sound support.
Rebuilt the kernel, and rebooted.  Is that the right thing to do?

Then, I build ALSA and installed:

   ./configure
   make install
   ./snddevices

All was good.  I then ran 'pnpdump' to get information about the
sound chip.  Using that information, I put the following into
the '/etc/conf.modules':

   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-cs4236
   options snd snd_major=14 snd_cards_limit=1
   options snd-cs4236 snd_index=1 snd_port=0x0534 snd_cport=0x0f00
           snd_mpu_port=0x0330 snd_jport=0x03a0 snd_irq=5
           snd_dma1=1 snd_dma1_size=64 snd_dma2=0 snd_dma2_size=64

I was not able to find an MPU IRQ in the output, or information
about an FM port.

Then, I ran 'isapnp' on the configuration file I got from 'pnpdump'
after I uncommented to appropriate lines.  The output seemed okay,
and was simply:

   Board 1 has Identity 1d ff ff ff ff 36 68 63 0e:  CSC6836 Serial No
4294967295 [checksum 1d]

Then, I tried to load the ALSA modules.  I ran the 'alsasound'
utility with the 'start' option (which is basically just
'modprobe snd-cs4236').  However, I get error output when I do
this:

   Starting sound driver: snd-cs4236
/lib/modules/2.0.35/misc/snd-cs4236.o:
         symbol for parameter snd_index not found
   snd-pcm: Device or resource busy
   done

An 'nm' on /lib/modules/2.0.35/misc/snd-cs4236.o shows there is NO
snd_index
symbol in that object file.  I check on the other .o files in the
directory
show that other object files DO have that symbol.

So, what's wrong here?

Then, I tried removing the options line from /etc/conf.modules.  That
seemed
to avoid the problem.  But I'm not sure how the module is going to get
itself
configure properly without them.  Does it do it automagically?

The module shows as being loaded:

   [rgg@dell48]$ lsmod
   Module         Pages    Used by
   snd-cs4231         3            0
   snd-mixer          4    [snd-cs4231]    0
   snd-pcm1           4    [snd-cs4231]    0
   snd-pcm            2    [snd-cs4231 snd-pcm1]   0
   snd-timer          1    [snd-cs4231]    0
   snd                7    [snd-cs4231 snd-mixer snd-pcm1 snd-pcm
snd-timer]      0
   nfs               12            5 (autoclean)

For a test, I tried using the 'aplay' utility to play a .wav file.
I get an error when I do that:

   [rgg@dell48]$ ./aplay bsun.wav
   Error: audio open error: No such file or directory

I'm at a complete loss here.

Oh, and more information:

   [rgg@dell48]$ cat /proc/interrupts 
    0:     559889   timer
    1:      24063   keyboard
    2:          0   cascade
    8:          1 + rtc
   11:      31628   eth0
   12:     191098   PS/2 Mouse
   13:          1   math error
   14:      13541 + ide0
   15:        817 + ide1

   [rgg@dell48]$ cat /proc/ioports 
   0000-001f : dma1
   0020-003f : pic1
   0040-005f : timer
   0060-006f : keyboard
   0070-007f : rtc
   0080-009f : dma page reg
   00a0-00bf : pic2
   00c0-00df : dma2
   00f0-00ff : npu
   0170-0177 : ide1
   01f0-01f7 : ide0
   02f8-02ff : serial(auto)
   0376-0376 : ide1
   03c0-03df : vga+
   03f0-03f5 : floppy
   03f6-03f6 : ide0
   03f7-03f7 : floppy DIR
   03f8-03ff : serial(auto)
   ecc0-ecdf : 3c905 Boomerang 100baseTx
   ffa0-ffa7 : IDE DMA
   ffa8-ffaf : IDE DMA

What is wrong?  I don't see the sound chip anywhere.  IRQ 5
seems to be open, and none of the corresponding IO port ranges
are in use.

Also, would it be of any use to try building with either of the
debug options?

   ./configure --with-debug=full
   ./configure --with-debug=detect

Thanks for any assistance!  And take care.

Ryan

P.S. I've only be using Linux for a week, so go easy on me.  :)
     I only installed Redhat for the first time last Thursday.
     My first impressions are great.  Most everything works dandy,
     and the performance kicks butt over NT.  Only problem seems
     to be the lack of drivers (My home PC has a Matrox Millenium
     G200 I can't seem to use quite yet).

     Next weeks project is to try out the new 2.1.x/2.2 kernels.
     That or get the cable modem that is coming this week to work
     with Linux, and then setup a private LAN with my buddy using
     IP Masquerading.  I'm just in love with Linux.  I couldn't
     even dream of doing this with NT.  And all the HOWTOs are
     absolutely amazing, almost all the tech-support you could need!
     Until now I haven't had to ask anyone for help.

-- 
Metaphase Technology Division                           Ryan Gustafson
Structural Dynamics Research Corp.               voice: (651) 482-4338
4201 Lexington Avenue North                      fax:   (651) 482-4001
Arden Hills, MN  55126         mailto:Ryan.Gustafson@MetaphaseTech.com
--
"You know the old saying -- any technology sufficiently advanced is
indistinguishable from a Perl script." -- Programming Perl 2nd Edition

