Subject: Re: PCI sound on the Hades
To: WITEK Wnuk <witek@atari.org>
From: Leo Weppelman <leo@wau.mis.ah.nl>
List: port-atari
Date: 11/05/1999 21:19:00
On Fri, Nov 05, 1999 at 03:08:45PM +0100, WITEK Wnuk wrote:
> On Fri, 5 Nov 1999, Leo Weppelman wrote:
> 
> > I have been trying the Ensoniq AudoiPCI ES1370 too, but to no avail :-( I
> > suspect the Hades PCI-bus here, but I am not entirely sure (wish I had an
> > analyzer ;-)
> 
> Why do you suspect Hades PCI-bus?

Because it has been wacky before. Things _are_ better now (new PAL's ed.),
but I am not totally convinced. Given the time I already spend on this bus,
you should grant me some reserve ;-)

> Is card detected at all?

Yes it is.
  eap0 at pci0 dev 2 function 0: vendor 0x1274 product 0x5000 (rev. 0x01)
  eap0: interrupting at irq 1

I have the driver running in debug mode. At the end, the relevant
snippets from the dmesg output can be found.

> If yes, and it doesn't hang whole system, then it may be problem somewhere
> in card driver code as well.

It _is_ possible of course. And I keep trying since I just can't stand these
kind of problems ;-)

> Could you give some more detail, perhaps i can help a bit? (I don't have
> Hades, but i used to have Falcon; i have some experience with PCI audio
> drivers)

I saw your driver for the ac97 (es1371 right?), and I happend to see your
mail address ;-))
Well back to the facts. The card is recognized. When I try to play a sample
(or just open&close I just found out), there starts an irritating beep on
the right-channel. I _can_ control the volume of this 'beep' with 'audioctl
-w play.gain=30'. Soo, the card&driver do function a bit.
All ideas are gladly accepted!

Thanks,

Leo.

Debug output (printing of 'sc=...' is my own addition).

eap0 at pci0 dev 2 function 0: vendor 0x1274 product 0x5000 (rev. 0x01)
eap0: interrupting at irq 1
eap: codec 22 prog: icss=0x00000660 sc=0x252600
eap: codec 22 prog: icss=0x00000660 sc=0x252600
eap: codec 22 prog: icss=0x00000660 sc=0x252600
eap: codec 23 prog: icss=0x00000660 sc=0x252600
eap: codec 16 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x10 = 0x7f
eap: codec 17 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x11 = 0x3c
eap: codec 0 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x00 = 0x06
eap: codec 1 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x01 = 0x06
eap: codec 2 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x02 = 0x06
eap: codec 3 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x03 = 0x06
eap: codec 4 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x04 = 0x06
eap: codec 5 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x05 = 0x06
eap: codec 6 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x06 = 0x06
eap: codec 7 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x07 = 0x06
eap: codec 8 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x08 = 0x06
eap: codec 9 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x09 = 0x06
eap: codec 10 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x0a = 0x06
eap: codec 11 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x0b = 0x06
eap: codec 14 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x0e = 0x1f
eap: codec 25 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x19 = 0x00
eap: codec 18 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x12 = 0x00
eap: codec 19 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x13 = 0x00
eap: codec 20 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x14 = 0x80
eap: codec 21 prog: icss=0x00000660 sc=0x252600
eap_mixer_set_port port 0x15 = 0x80
audio0 at eap0: full duplex

----- here i 'cat boing.au > /dev/audio'

Nov  5 21:15:43  /netbsd: eap_set_params: old ICSC = 0x00000002
Nov  5 21:15:43  /netbsd: eap_set_params: set ICSC = 0x00ae0402
Nov  5 21:15:44  /netbsd: eap_trigger_output: sc=0x252600 start=0x2344000 end=0x2353d20 blksize=800 intr=0x21642(0x25b000)
Nov  5 21:15:44  /netbsd: eap_trigger_output: DAC2_ADDR=0x802fc000, DAC2_SIZE=0x3f47
Nov  5 21:15:44  /netbsd: eap_trigger_output: set ICSC = 0x00ae0402
Nov  5 21:15:55  /netbsd: eap: eap_halt_output
Nov  5 21:15:55  /netbsd: eap: eap_halt_output
Nov  5 21:15:55  /netbsd: eap: eap_halt_input