[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Creative Labs SoundBlaster AWE64 question



Cliff Rice wrote:

> Hello all,
>
> Newbie question:  I get the error below when I attempt to
> do a cat endoftheworld to /dev/dsp.  Obviously I've not
> configured something right for my soundcard since the test
> failed. I've included the files below.  Any help is most
> welcome.
>
> Thanks in advance
>
> Cliff
>
> Sound error: Couldn't allocate DMA buffer
> AWE32-0.4.2c (RAM4096k)
> ***********************************************************************
> cat /proc/devices
> Character devices:
>  1 mem
>  2 pty
>  3 ttyp
>  4 ttyp
>  5 cua
>  7 vcs
> 10 misc
> 14 sound
>
> Block devices:
>  2 fd
>  3 ide0
>  7 loop
> 22 ide1
>
> *************************************************************************
>
> Device:  Sound Blaster AWE64
> Version for AWE driver : "0.4.2c" from awe_version.h
>
> uncommented these lines out in awe_config.h, got big number
> when I didn't do this.
> #define AWE_DEFAULT_BASE_ADDR   0x620   /* base port address */
> #define AWE_DEFAULT_MEM_SIZE    4096    /* kbytes */
>
> **************************************************************************
>  /etc/isapnp.conf
> (shows this stuff also when booting , but not in dmesg )
>
> [snip]
> #
> # Compiler flags: -DREALTIME -DNEEDSETSCHEDULER
> #
> # Trying port address 0203
> # Trying port address 020b
> # Board 1 has serial identifier 85 14 be a1 d2 c5 00 8c 0e
>
> # (DEBUG)
> (READPORT 0x020b)
> (ISOLATE PRESERVE)
> (IDENTIFY *)
> (VERBOSITY 2)
> (CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING
>
> # Card 1: (serial identifier 85 14 be a1 d2 c5 00 8c 0e)
> # Vendor Id CTL00c5, Serial Number 348037586, checksum 0x85.
> # Version 1.0, Vendor version 1.0
> # ANSI string -->Creative SB AWE64 PnP<--
> # Vendor defined tag:  73 02 45 01
> #
> # Logical device id CTL0045
> #     Device supports vendor reserved register @ 0x39
> #     Device supports vendor reserved register @ 0x3a
> #     Device supports vendor reserved register @ 0x3c
> #     Device supports vendor reserved register @ 0x3d
> #
> # Edit the entries below to uncomment out the configuration required.
> # Note that only the first value of any range is given, this may be changed if required
> # Don't forget to uncomment the activate (ACT Y) when happy
>
> (CONFIGURE CTL00c5/348037586 (LD 0
> #     ANSI string -->Audio<--
>
> # Multiple choice time, choose one only !
>
> (INT 0 (IRQ 5 (MODE +E)))
> (DMA 0 (CHANNEL 1))
> (DMA 1 (CHANNEL 5))
> #(IO 0  (BASE 0x0220))   --- these didn't work either ---
> #(IO 1  (BASE 0x0330))   ---- copied from AWE howto -----
> #(IO 2  (BASE 0x0388))
> (IO 0 (SIZE 16) (BASE 0x0220))
> (IO 1 (SIZE 2) (BASE 0x0330))
> (IO 2 (SIZE 4) (BASE 0x0388))
> (NAME "CTL00c5/348037586[0]{Audio               }")
> #     End dependent functions
> (ACT Y)
> ))
> #
> (CONFIGURE CTL00c5/348037586 (LD 1
> #     Compatible device id PNPb02f
> #     ANSI string -->Game<--
> (IO 0 (SIZE 8) (BASE 0x0200))
> #(IO 0  (BASE 0x0200))
> (NAME "CTL00c5/348037586[1]{Game                }")
> #     End dependent functions
> (ACT Y)
> ))
> #
> (CONFIGURE CTL00c5/348037586 (LD 2
> #     ANSI string -->WaveTable<--
> (IO 0 (SIZE 4) (BASE 0x0620))
> (IO 1 (SIZE 4) (BASE 0x0A20))  (added as per awe32  for Wavetable)
> (IO 2 (SIZE 4) (BASE 0x0E20))  (since pnpdump does not find these )
> #(IO 0  (BASE 0x0620))  ----- these also didn't work -----
> #(IO 1  (BASE 0x0A20)) ----- From AWE howto -------
> #(IO 2  (BASE 0x0E20))
> (NAME "CTL00c5/348037586[2]{WaveTable           }")
> (ACT Y)
> ))
> # End tag... Checksum 0x00 (OK)
>
> # Returns all cards to the "Wait for Key" state
> (WAITFORKEY)
>
> *********************************************************************
>
> output from cat /dev/sndstat
>
> Type 7: SB MPU-401
>
> Card config:
> Sound Blaster at 0x220 irq 5 drq 1,5
> SB MPU-401 at 0x330 irq 5
> OPL-2/OPL-3 FM at 0x388 drq 0
>
> Audio devices:
> 0: Sound Blaster 16 (4.16)
>
> Synth devices:
> 0: Yamaha OPL-3
> 1: AWE32-0.4.2c (RAM4096k)
>
> Midi devices:
> 0: Sound Blaster 16
>
> Timers:
> 0: System clock
>
> Mixers:
> 0: Sound Blaster
> 1: AWE32 Equalizer
>
> ***********************************************************************
> dmesg output
> Memory: sized by int13 0e801h
> Console: 16 point font, 400 scans
> Probing PCI hardware.
> Calibrating delay loop.. ok - 901.12 BogoMIPS
> Memory: 257080k/262080k available (696k kernel code, 384k reserved, 3920k data)
> Swansea University Computer Society NET3.035 for Linux 2.0
> NET3: Unix domain sockets 0.13 for Linux NET3.035.
> Swansea University Computer Society TCP/IP for NET3.034
> IP Protocols: ICMP, UDP, TCP
> Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
> Checking 'hlt' instruction... Ok.
> Linux version 2.0.36 (root@loki) (gcc version 2.7.2.3) #1 Fri Oct 22 11:49:22 CD
> T 1999
> Starting kswapd v 1.4.2.2
> Floppy drive(s): fd0 is 1.44M
> FDC 0 is a post-1991 82077
> PS/2 auxiliary pointing device detected -- driver installed.
> AWE32-0.4.2c (RAM4096k)
>
> [snip here ]
>
> Sound error: Couldn't allocate DMA buffer
> Sound error: Couldn't allocate DMA buffer
> AWE32-0.4.2c (RAM4096k)
>
> --
> Cliff
>
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

Just a thought, but is it an Awe64 Value?  If so, the ram is only 512k.  I seem to
remember somewhere in the distant past something about the Awe driver sometimes not
getting the ram size right.

This part you uncommented -

#define AWE_DEFAULT_BASE_ADDR   0x620   /* base port address */
#define AWE_DEFAULT_MEM_SIZE    4096    /* kbytes */

Try replacing the 4096 with 512?

Unless you are sure you have 4096k..... otherwise, I'd suggest trying the latest kernel
(2.2.13), or at least a newer one that comes with 0.4.3 Awe drivers built-in.

Probably not related, your isapnp.conf settings look OK but I had to put a line
(VERIFYLD N)
above the readport part at the top.

***Ah, having read your dmesg output (properly, this time!), I think I can see what the
problem is.  You've compiled the AWE driver straight in to the kernel.  For an isapnp
card, you have to do ALL of the sound stuff as modules - including the low-level one and
the Awe driver.  Then run modconf to load them, passing the correct parameters to each
(only sb and opl3 modules need parameters).

Tacking on the Awe driver to the 2.0.whatever kernel that comes with Debian is not ideal,
get the latest kernel and use it.

Jonathan.


Reply to: