[FreeBSD 5.3-RELEASE] Failing to load envy24 sounddriver...

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

Postby uripui » Thu Mar 24, 2005 6:52 pm

Perhaps this sysctl-output can help:

Code: Select all
reebsd60test:/usr/sbin# sysctl -a | grep -i dma
      ATA DMA     2     1K      1K        2  128
vfs.nfs.iodmax: 20
vfs.nfs.iodmaxidle: 120
hw.ata.atapi_dma: 1
hw.ata.ata_dma: 1
hw.busdma.total_bpages: 34
hw.busdma.zone0.total_bpages: 32
hw.busdma.zone0.free_bpages: 32
hw.busdma.zone0.reserved_bpages: 0
hw.busdma.zone0.active_bpages: 0
hw.busdma.zone0.total_bounced: 0
hw.busdma.zone0.total_deferred: 0
hw.busdma.zone0.lowaddr: 0xffffffff
hw.busdma.zone0.alignment: 2
hw.busdma.zone0.boundary: 65536
hw.busdma.zone1.total_bpages: 1
hw.busdma.zone1.free_bpages: 1
hw.busdma.zone1.reserved_bpages: 0
hw.busdma.zone1.active_bpages: 0
hw.busdma.zone1.total_bounced: 0
hw.busdma.zone1.total_deferred: 0
hw.busdma.zone1.lowaddr: 0xffffffff
hw.busdma.zone1.alignment: 256
hw.busdma.zone1.boundary: 0
hw.busdma.zone2.total_bpages: 1
hw.busdma.zone2.free_bpages: 1
hw.busdma.zone2.reserved_bpages: 0
hw.busdma.zone2.active_bpages: 0
hw.busdma.zone2.total_bounced: 0
hw.busdma.zone2.total_deferred: 0
hw.busdma.zone2.lowaddr: 0xffffffff
hw.busdma.zone2.alignment: 4096
hw.busdma.zone2.boundary: 0
dev.atapci.0.%desc: SiS 962/963 UDMA133 controller
dev.atdma.0.%desc: AT DMA controller
dev.atdma.0.%driver: atdma
dev.atdma.0.%location: handle=\_SB_.PCI0.SBRG.DMAD
dev.atdma.0.%pnpinfo: _HID=PNP0200 _UID=0
dev.atdma.0.%parent: acpi0


Why are hw.busdma.zone*.lowaddr all 0xffffffff?


Regards,
Uri
uripui
Member
 
Posts: 10
Joined: Wed Nov 17, 2004 10:38 pm

Postby dev » Thu Mar 24, 2005 11:16 pm

uripui wrote:Perhaps this sysctl-output can help:

Code: Select all
reebsd60test:/usr/sbin# sysctl -a | grep -i dma
      ATA DMA     2     1K      1K        2  128
vfs.nfs.iodmax: 20
vfs.nfs.iodmaxidle: 120
hw.ata.atapi_dma: 1
hw.ata.ata_dma: 1
hw.busdma.total_bpages: 34
hw.busdma.zone0.total_bpages: 32
hw.busdma.zone0.free_bpages: 32
hw.busdma.zone0.reserved_bpages: 0
hw.busdma.zone0.active_bpages: 0
hw.busdma.zone0.total_bounced: 0
hw.busdma.zone0.total_deferred: 0
hw.busdma.zone0.lowaddr: 0xffffffff
hw.busdma.zone0.alignment: 2
hw.busdma.zone0.boundary: 65536
hw.busdma.zone1.total_bpages: 1
hw.busdma.zone1.free_bpages: 1
hw.busdma.zone1.reserved_bpages: 0
hw.busdma.zone1.active_bpages: 0
hw.busdma.zone1.total_bounced: 0
hw.busdma.zone1.total_deferred: 0
hw.busdma.zone1.lowaddr: 0xffffffff
hw.busdma.zone1.alignment: 256
hw.busdma.zone1.boundary: 0
hw.busdma.zone2.total_bpages: 1
hw.busdma.zone2.free_bpages: 1
hw.busdma.zone2.reserved_bpages: 0
hw.busdma.zone2.active_bpages: 0
hw.busdma.zone2.total_bounced: 0
hw.busdma.zone2.total_deferred: 0
hw.busdma.zone2.lowaddr: 0xffffffff
hw.busdma.zone2.alignment: 4096
hw.busdma.zone2.boundary: 0
dev.atapci.0.%desc: SiS 962/963 UDMA133 controller
dev.atdma.0.%desc: AT DMA controller
dev.atdma.0.%driver: atdma
dev.atdma.0.%location: handle=\_SB_.PCI0.SBRG.DMAD
dev.atdma.0.%pnpinfo: _HID=PNP0200 _UID=0
dev.atdma.0.%parent: acpi0


Why are hw.busdma.zone*.lowaddr all 0xffffffff?


Regards,
Uri



Maybe that's the problem. The Envy24 driver needs lowmemory from
0-0xffffff range (24bits) but since your memory only starts at 0xffffffff (32bit) the cure could be to try an go down to 512MB and see if that fixes the problem - if it does then we know what to fix.

Unfortunately we don't have 1GB in our machines - only 256 (and can be boosted to 512)


regards
Dev Mazumdar
dev
Developer
 
Posts: 578
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby kpanic » Fri Mar 25, 2005 11:57 am

Hi Dev, hi Uri,

I am currently running 5.4-PRERELEASE, haven't updated since I've told I'm using this.
And indeed, I have "only" 512MByte of memory.
I think you might be interested in my sysctl output, too:
Code: Select all
verleihnix# sysctl -a | grep dma
vfs.nfs.iodmax: 20
vfs.nfs.iodmaxidle: 120
hw.ata.atapi_dma: 1
hw.ata.ata_dma: 1
hw.busdma.total_bpages: 33
hw.busdma.zone0.total_bpages: 1
hw.busdma.zone0.free_bpages: 1
hw.busdma.zone0.reserved_bpages: 0
hw.busdma.zone0.active_bpages: 0
hw.busdma.zone0.total_bounced: 0
hw.busdma.zone0.total_deferred: 0
hw.busdma.zone0.lowaddr: 0xffffffff
hw.busdma.zone0.alignment: 256
hw.busdma.zone0.boundary: 0
hw.busdma.zone1.total_bpages: 32
hw.busdma.zone1.free_bpages: 32
hw.busdma.zone1.reserved_bpages: 0
hw.busdma.zone1.active_bpages: 0
hw.busdma.zone1.total_bounced: 0
hw.busdma.zone1.total_deferred: 0
hw.busdma.zone1.lowaddr: 0xffffffff
hw.busdma.zone1.alignment: 2
hw.busdma.zone1.boundary: 65536
hw.busdma.zone2.total_bpages: 0
hw.busdma.zone2.free_bpages: 0
hw.busdma.zone2.reserved_bpages: 0
hw.busdma.zone2.active_bpages: 0
hw.busdma.zone2.total_bounced: 0
hw.busdma.zone2.total_deferred: 0
hw.busdma.zone2.lowaddr: 0xffffffff
hw.busdma.zone2.alignment: 1024
hw.busdma.zone2.boundary: 0
hw.busdma.zone3.total_bpages: 0
hw.busdma.zone3.free_bpages: 0
hw.busdma.zone3.reserved_bpages: 0
hw.busdma.zone3.active_bpages: 0
hw.busdma.zone3.total_bounced: 0
hw.busdma.zone3.total_deferred: 0
hw.busdma.zone3.lowaddr: 0xffffffff
hw.busdma.zone3.alignment: 2048
hw.busdma.zone3.boundary: 0
dev.atdma.0.%desc: AT DMA controller
dev.atdma.0.%driver: atdma
dev.atdma.0.%parent: isa0


Maybe this helps you. As said, it's running like a charm without any problems.
But maybe it is of some worth of you: It only works if I load the nV driver directly at boot time and the OSS driver via /etc/rc.local, otherwise OSS tells me about wrong EEPROM code for SPDIF or something like that.

@Dev: Maybe you could tell me what the problem was? I'm just curious :D
And if you need somebody for alpha/beta-testing OSS 4.0, I would be glad to help you :)
kpanic
New Member
 
Posts: 8
Joined: Tue Mar 15, 2005 6:12 pm

Postby Guest » Fri Mar 25, 2005 12:27 pm

Hi dev and kpanic,

sorry, but I can't try using only 512MB of RAM because I only have one single RAM module that's 1GB large. ;-)

But, I've deleted FreeBSD 6.0 and installed FreeBSD 5.4-PRERELEASE and it's working now. No matter, if I load nvidia kernel module before or after the OSS module. Used the same OSS and nvidia versions as in FreeBSD 6.0.

Code: Select all
freebsd54beta:/# cat /dev/sndstat
OSS/FreeBSD 3.99.2c (C) 4Front Technologies 1996-2004

License serial number: E00000008
**** UNREGISTERED VERSION ****

Drivers: ALL
License will expire after: 06/2005


*** Unregistered version ***

Build: 200503230837
Kernel: FreeBSD 5.4-BETA1 #0: Fri Mar 18 09:28:57 UTC 2005
    root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC


Card config:
IC Ensemble ENVY24

Audio devices:
0: M Audio Audiophile 2496 out1/2
1: M Audio Audiophile 2496 S/PDIF out
2: M Audio Audiophile 2496 in1/2
3: M Audio Audiophile 2496 S/PDIF in
4: M Audio Audiophile 2496 input from mon. mixer
5: M Audio Audiophile 2496 (all outputs)
6: M Audio Audiophile 2496 (all inputs)

Synth devices:

Midi devices:
0: M Audio Audiophile 2496 #1

Mixers:
0: M Audio Audiophile 2496

History:
dsp0: pid 1311 cmd 'sdlroids' OUT
dsp0: pid 1312 cmd 'tuxracer' OUT
dsp0: pid 1312 cmd 'tuxracer' OUT
dsp0: pid 1317 cmd 'alephone' OUT
dsp0: pid 1317 cmd 'alephone' OUT


Code: Select all
freebsd54beta:/# kldstat
Id Refs Address    Size     Name
1   12 0xc0400000 5da10c   kernel
2    2 0xc09db000 1bd84    linux.ko
3    1 0xc09f7000 4ad9c8   nvidia.ko
4   14 0xc0ea5000 561a0    acpi.ko
5    1 0xc2aa4000 9000     ntfs.ko
6    1 0xc2bc1000 2000     blank_saver.ko
7    1 0xc2c0c000 2bf000   oss_mod.ko


Some problems are still there:

- In arts, I have to use threaded OSS. OSS without threads produces a chunky, bad-sampled sound in KDE

- beast doesn't run. Gives an error message:
Code: Select all
beast:BSE-ERROR: Failed to open PCM devices, giving up: Device not async capable


- any SDL-app or SDL-game doesn't produce sound at all:
Code: Select all
freebsd54beta:/# sdlroids
Warning: Couldn't set audio blocking mode


Code: Select all
freebsd54beta:/# tuxracer
Tux Racer 0.61 -- a Sunspire Studios Production (http://www.sunspirestudios.com)
(c) 1999-2000 Jasmin F. Patry <jfpatry@sunspirestudios.com>
"Tux Racer" is a trademark of Jasmin F. Patry
Tux Racer comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See http://www.gnu.org/copyleft/gpl.html for details.

%%% tuxracer warning: Warning: Couldn't set 22050 Hz 16-bit audio
  Reason: Couldn't set audio blocking mode


Already tried:
Code: Select all
freebsd54beta:/# setenv SDL_DSP_NOSELECT 1


But no success.

Here are my ossmix settings:

Code: Select all
freebsd54beta:/# /usr/lib/oss/bin/ossmix
Selected mixer 0/
Known controls are:
        peak.out1/2 <leftVU>:<rightVU>] (currently 130:130)
        peak.spdout <leftVU>:<rightVU>] (currently 0:0)
        peak.in1/2 <leftVU>:<rightVU>] (currently 0:0)
        peak.spdin <leftVU>:<rightVU>] (currently 0:0)
        peak.main <leftVU>:<rightVU>] (currently 102:102)
        mon.out1/2 <both/leftvol>[:<rightvol>] (currently 135:135)
        mon.spdout <both/leftvol>[:<rightvol>] (currently 135:135)
        mon.in1/2 <both/leftvol>[:<rightvol>] (currently 135:135)
        mon.spdin <both/leftvol>[:<rightvol>] (currently 135:135)
        route.out1/2 <DMA|MONITOR|IN1/2|SPDIF> (currently DMA)
        route.spdif <DMA|MONITOR|IN1/2|SPDIF> (currently DMA)
        gain.out1/2 <+4DB|CONSUMER|-10DB> (currently +4DB)
        envy24.rate <8000|9600|11025|12000|16000|22050|24000|32000|44100|48000|88200|96000> (currently 48000)
        envy24.sync <INTERNAL|SPDIF> (currently INTERNAL)
        envy24.ratelock ON|OFF (currently ON)
        envy24.actrate <decimal value> (currently 48000)
        spdif.mode <CONSUMER|PRO> (currently CONSUMER)


That would be really great if I get sound in beast and some games running...

Regards,
Uri
Guest
 

Postby Guest » Fri Mar 25, 2005 2:27 pm

Hi Uri,

have you tried copying sys/*.h from your OSS distribution to /usr/include/sys?
Some time before I noticed some problems with programs using libao, since I copied the C header files, it's working.
Guest
 

Postby uripui » Sat Mar 26, 2005 4:51 pm

Hi,

what do you mean with copying sys/*.h from my OSS distribution?

Do you mean the directory: "/usr/lib/oss/include/sys"?

I've copied all the files in there to "/usr/include/sys", but no change in function...


Regards,
Uri
uripui
Member
 
Posts: 10
Joined: Wed Nov 17, 2004 10:38 pm

Postby kpanic » Tue Mar 29, 2005 7:43 pm

Heya Uri,

yes, I meant include/sys :)
You may as well need to recompile libao, I had similar problems with ogg123 (and other programs), which rely on libao.
kpanic
New Member
 
Posts: 8
Joined: Tue Mar 15, 2005 6:12 pm

Previous

Return to BSD

Who is online

Users browsing this forum: No registered users and 1 guest