From alsa-devel-owner@alsa.jcu.cz  Thu Mar  4 06:58:10 1999
Received: from herzfeld.com.au (johna@ah.herzfeld.com.au [203.30.248.66])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id GAA18846
	for <alsa-devel@alsa.jcu.cz>; Thu, 4 Mar 1999 06:57:40 +0100
Received: from localhost (johna@localhost) by herzfeld.com.au (8.7.5/8.7.3) with SMTP id QAA13591 for <alsa-devel@alsa.jcu.cz>; Thu, 4 Mar 1999 16:57:37 +1100
Date: Thu, 4 Mar 1999 16:57:36 +1100 (EST)
From: John August <johna@ah.herzfeld.com.au>
To: alsa-devel@alsa.jcu.cz
Subject: alsa sound - mixer problem
Message-ID: <Pine.LNX.3.93.990304163111.12570A-100000@ah.herzfeld.com.au>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

Hi,

I am trying to get an on mother board card going using the alsa driver. While
I can manage to load the module, it does not work properly. The greatest
problem is that no matter what I do, I cannot undo muting on the mixer
channels.

I'm running a 2.0.35 kernel using libc5. Sound exists as a module, and
presumably the sound interface needs to be compiled in - which I have
done.

I have run the system with the modifications you propose (debug) and it
returns :

snd: snd: requested ports 0x1000-0x103f busy

It does, however, seem to depend on the order in which modules are 
activated changes whether this message turns up. But changing the
sequence does not seem to mean I can get everything loaded without
this error message.

OK, it could be I need to set the dependencies, or something like that,
but I thought the modprobe would take care of that.

More detail on the problem :

The following works OK :

mcc:/proc/asound/0# cat mixer0
Mixer 'AC97' 'AC97 generic'
Channel 'Master' 0 63 63 63 lmute rmute
Channel 'Master M' 0 63 0 0 lmute rmute
Channel 'PCM' 0 31 0 0 lmute rmute
Channel 'Line-In' 0 31 0 0 lmute rmute
Channel 'MIC' 0 31 0 0 lmute rmute
Channel 'CD' 0 31 31 31 lmute rmute
Channel 'Video' 0 31 0 0 lmute rmute
Channel 'Phone' 0 31 0 0 lmute rmute
Channel 'Record-Gain' 0 15 15 15 lmute rmute
Channel 'PC Speaker' 0 15 15 15 lmute rmute
Channel 'Aux A' 0 31 0 0 lmute rmute

But conversely, the following does not work :

mcc:/proc/asound/0# cat ~/sndf >mixer0
bash: mixer0: No such device

mcc:/usr/local/bin# cmix mute off
Segmentation fault
mcc:/usr/local/bin# ldd cmix
        libc.so.5 => /lib/libc.so.5 (0x4000a000)

But, it is possible to use cmix to alter most other volume settings.

in order to install the modules, I use (with the resultant loaded modules
following) :

mcc:/lib/modules/2.0.35/sound# modprobe snd-audiopci
mcc:/lib/modules/2.0.35/sound# lsmod
Module         Pages    Used by
snd-audiopci       1            0
snd-es1370         3    [snd-audiopci]  0
snd-pcm1           4    [snd-es1370]    0
snd-ac97-codec     3    [snd-es1370]    0
snd-mixer          3    [snd-audiopci snd-es1370 snd-ac97-codec]        0
snd-midi           4    [snd-audiopci snd-es1370]       0
snd-pcm            3    [snd-audiopci snd-pcm1] 0
snd                7    [snd-audiopci snd-es1370 snd-pcm1 snd-ac97-codec snd-mixer snd-midi snd-pcm]    0
lp                 2            1

The loaded module information is :

mcc:/proc/asound# cat *
cat: 0: Invalid argument
cat: card1: Invalid argument
0 [card1          ]: AudioPCI - Ensoniq AudioPCI
                     Ensoniq AudioPCI ES1371 at 0x1000, irq 11
cat: dev: Invalid argument
144: [0]   : control
152: [0- 0]: mixer
168: [0- 0]: digital audio
169: [0- 1]: digital audio
200: [0- 0]: raw midi
Driver using 3 pages (12288 bytes) of kernel memory for data.
  0: [0- 0]: mixer
  2: [0- 2]: raw midi
  6:       : sndstat
  9: [0- 9]: raw midi
00-00: ES1370/1 : ES1371 DAC2/ADC
00-01: ES1370/2 : ES1371 DAC1
Advanced Linux Sound Architecture Driver Version 0.2.0-pre10p3.
Compiled in Feb 17 1999 for kernel 2.0.35.

You will notice that the Audio device has not been loaded in. However,
by loading in random modules you can get this to load, but the mixer still
has problems going. In any case, I thought I would focus on this problem.

As far as chips on the mother board go, there is a "Creative ES1373" chip
on board, and the motherboard manual states that the features are based
on the Creative/Ensoniq 1373 based audio subsystem (for reference, we are
talking about a Gateway computer). I could look for other chips, but this
seems the major one.

Perhaps the 1373 chip is causing an incompatibility, but I have disabled 
the on board sound card and tried to get an ensoniq 1371 card going
(this was written on the chip) with similar results. I can give
you more information if you are after it. 

Relevant pci information is :

mcc:/usr/local/bin# cat /proc/pci | more
PCI devices found:
  Bus  0, device  16, function  0:
    Multimedia video controller: Zoran ZR36120 (rev 3).
      Fast devsel.  IRQ 9.  Master Capable.  Latency=64.  Min Gnt=2.Max Lat=16.
      Non-prefetchable 32 bit memory at 0xf4000000.
  Bus  0, device  12, function  0:
    Multimedia audio controller: Unknown vendor Unknown device (rev 4).
      Vendor id=1274. Device id=1371.
      Slow devsel.  IRQ 11.  Master Capable.  Latency=96.  Min Gnt=12.Max Lat=128.
      I/O at 0x1000.
<remainder snipped> 

From which (curiously) the device id reads as 1371.

Any help you can give me would be appreciated. I'm willing to hack into
the module a bit myself, but not without _some_ guidance.

This may be a simple error on my part; sorry if it is - I hope it is 
something genuine.

Regards,

John August.  



