[FreeBSD-6.0-RELEASE+ENVY24+OSS3993+SDL12] No audio in SDL..

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: hannu, dev, cesium, kodachi

[FreeBSD-6.0-RELEASE+ENVY24+OSS3993+SDL12] No audio in SDL..

Postby audiodead » Mon Jan 23, 2006 7:43 pm

Greetings,

Code: Select all
freebsd.local:/root# setenv | grep -i sdl
freebsd.local:/root# setenv SDL_DSP_NOSELECT 1
freebsd.local:/root# sdlroids
Warning: Couldn't set audio blocking mode
freebsd.local:/root# dosbox
CONFIG:Loading settings from config file dosbox.conf
MIXER:Can't open audio: Couldn't set audio blocking mode , running in nosound
mode.
MIDI:Opened device:oss
freebsd.local:/root# beast
beast:BSE-Error:0: No Audio
beast:BSE-Error:1: No available audio device was found.
beast:BSE-Error:2: No available audio device could be found and opened
successfully. Sorry, no fallback selection can be made for audio devices,
giving up.
beast:BSE-Error:3: Failed to open PCM devices: Device not async capable
freebsd.local:/root#HEEELP!!!


...

Code: Select all
Starting OSS/FreeBSD  3.99.3d Mo 23 Jan 2006 20:29:38 CET
8:29pm  up 51 secs, 1 user, load averages: 0,62 0,25 0,10
======= config =====
# Use soundconf to edit this file.
/SECUREAUDIO OFF
/IRQEXCLUDE 3 4
/DMAEXCLUDE 2
-PCId6341412 #M Audio Audiophile 2496
ENVY24 ON
====== pnpres.dat ========
====================
Invalid line in etc/options.cfg: ''
*******************************************************************************
NOTICE: The sound cards you have in this system require the PRO driver option.
Remember to select this option if you decide to order the OSS license.
*******************************************************************************
OSS/FreeBSD 3.99.3d (C) 4Front Technologies 1996-2004

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

Drivers: ALL
License will expire after: 06/2006


*** Unregistered version ***

Build: 200601172339
Kernel: FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root@x64.samsco.home:/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
========== dmesg printout follows ========
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP 2800+ (2082.66-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Stepping = 0
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow+,3DNow>
real memory  = 1073676288 (1023 MB)
avail memory = 1041784832 (993 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 10 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA 8377 (Apollo KT400/KT400A/KT600) host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pci0: <multimedia, audio> at device 12.0 (no driver attached)
atapci0: <VIA 6420 SATA150 controller> port 0xec00-0xec07,0xe800-0xe803,0xe400-0xe407,0xe000-0xe003,0xdc00-0xdc0f,0xd800-0xd8ff irq 10 at device 15.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <VIA 8237 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 11 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xbc00-0xbc1f irq 11 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 10 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 10 at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdfffbe00-0xdfffbeff irq 3 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xb400-0xb4ff mem 0xdfffbd00-0xdfffbdff irq 11 at device 18.0 on pci0
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:13:8f:04:66:78
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <2880-KB 3.5" drive (in 1440-KB mode)> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
Timecounter "TSC" frequency 2082664632 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 152627MB <SAMSUNG SP1614N TM100-30> at ata0-master UDMA100
acd0: DVDR <HL-DT-ST DVDRAM GSA-4163B/A102> at ata1-master UDMA33
acd1: DVDR <HL-DT-ST DVDRAM GSA-4082B/A201> at ata1-slave UDMA33
Trying to mount root from ufs:/dev/ad0s3a


Neither any SDL-app nor BEAST run. Only sound in KDE using artsd works.

What the f*** does "blocking mode" and "device not async capable" mean?

How can I fix this?


Regards,
a.d.
audiodead
 

Re: [FreeBSD-6.0-RELEASE+ENVY24+OSS3993+SDL12] No audio in S

Postby dev » Mon Jan 23, 2006 11:25 pm

audiodead wrote:Greetings,

Code: Select all
freebsd.local:/root# setenv | grep -i sdl
freebsd.local:/root# setenv SDL_DSP_NOSELECT 1
freebsd.local:/root# sdlroids
Warning: Couldn't set audio blocking mode
freebsd.local:/root# dosbox
CONFIG:Loading settings from config file dosbox.conf
MIXER:Can't open audio: Couldn't set audio blocking mode , running in nosound
mode.
MIDI:Opened device:oss
freebsd.local:/root# beast
beast:BSE-Error:0: No Audio
beast:BSE-Error:1: No available audio device was found.
beast:BSE-Error:2: No available audio device could be found and opened
successfully. Sorry, no fallback selection can be made for audio devices,
giving up.
beast:BSE-Error:3: Failed to open PCM devices: Device not async capable
freebsd.local:/root#HEEELP!!!


...

Code: Select all
Starting OSS/FreeBSD  3.99.3d Mo 23 Jan 2006 20:29:38 CET
8:29pm  up 51 secs, 1 user, load averages: 0,62 0,25 0,10
======= config =====
# Use soundconf to edit this file.
/SECUREAUDIO OFF
/IRQEXCLUDE 3 4
/DMAEXCLUDE 2
-PCId6341412 #M Audio Audiophile 2496
ENVY24 ON
====== pnpres.dat ========
====================
Invalid line in etc/options.cfg: ''
*******************************************************************************
NOTICE: The sound cards you have in this system require the PRO driver option.
Remember to select this option if you decide to order the OSS license.
*******************************************************************************
OSS/FreeBSD 3.99.3d (C) 4Front Technologies 1996-2004

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

Drivers: ALL
License will expire after: 06/2006


*** Unregistered version ***

Build: 200601172339
Kernel: FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root@x64.samsco.home:/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
========== dmesg printout follows ========
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP 2800+ (2082.66-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Stepping = 0
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow+,3DNow>
real memory  = 1073676288 (1023 MB)
avail memory = 1041784832 (993 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 10 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA 8377 (Apollo KT400/KT400A/KT600) host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pci0: <multimedia, audio> at device 12.0 (no driver attached)
atapci0: <VIA 6420 SATA150 controller> port 0xec00-0xec07,0xe800-0xe803,0xe400-0xe407,0xe000-0xe003,0xdc00-0xdc0f,0xd800-0xd8ff irq 10 at device 15.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <VIA 8237 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 11 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xbc00-0xbc1f irq 11 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 10 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 10 at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdfffbe00-0xdfffbeff irq 3 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xb400-0xb4ff mem 0xdfffbd00-0xdfffbdff irq 11 at device 18.0 on pci0
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:13:8f:04:66:78
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <2880-KB 3.5" drive (in 1440-KB mode)> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
Timecounter "TSC" frequency 2082664632 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 152627MB <SAMSUNG SP1614N TM100-30> at ata0-master UDMA100
acd0: DVDR <HL-DT-ST DVDRAM GSA-4163B/A102> at ata1-master UDMA33
acd1: DVDR <HL-DT-ST DVDRAM GSA-4082B/A201> at ata1-slave UDMA33
Trying to mount root from ufs:/dev/ad0s3a


Neither any SDL-app nor BEAST run. Only sound in KDE using artsd works.

What the f*** does "blocking mode" and "device not async capable" mean?

How can I fix this?


Regards,
a.d.



Update your SDL libraries and see if that works. Another option is to set /dev/dsp to point to a virtual mixer device and see if that helps.

The MAudio is NOT a consumer audio device and so not all OSS apps will work unless they are programmed correctly - SDL does not behave correctly unless you have the latest versioon of the libararies.

File a bug report with SDL programmers not with us!.
Let them contact us and we'll sort it out if there is indeed a problem. As far as 4Front is concerned as long as XMMS, RealPlayer and other apps like KDE, etc work, then it means OSS is not at fault.


best regards

Dev mazumdar
dev
 
Posts: 577
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA


Return to BSD

Who is online

Users browsing this forum: No registered users and 3 guests