oss3993c and Mediatrix

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: hannu, dev, kodachi, cesium

oss3993c and Mediatrix

Postby fred » Sat Dec 10, 2005 3:42 am

I can play MIDI only when logged in as root, but cannot play WAV files at all. (I saw the message thread previously with the script to modify device permissions.)

Now, that I updated to FreeBSD 6.0, I can use the AHA-1542CP (ISAPNP) SCSI and the parallel port that used to be a problem.

It looks as if the OSS driver may be trying to use 0x330 even though I set it to use 0x300. This combination may be a conflict with the AHA-1542CP.

MediaTrix AudioTrix 3D-XG (ISAPNP)

I can see occasional messages about stray IRQ 5 or unable to allocate a buffer, but I only see these messages after I exit Xorg, so it is difficult for me to send these messages to you. I do not see these messages immediately when I run ossmplay or ossplay in a terminal. ossmplay, ossplay, and osstest exit with no immediate errors, but ossplay and osstest are silent.

Thanks for any suggestions

-----------------------------------------------------

# cat soundon.log
Starting OSS/FreeBSD 3.99.3c Fri Dec 9 06:23:35 CST 2005
6:23AM up 25 secs, 0 users, load averages: 0.67, 0.18, 0.07
======= config =====
# Use soundconf to edit this file.
/SECUREAUDIO OFF
/IRQEXCLUDE 3 4
/DMAEXCLUDE 2
-MPI0003 #MediaTrix Audiotrix 3D XG
OPL3 OPNP P388
UART401 OPNP P300 I5
DUMMY OPNP P370
RAWMSS OPNP Pe80 I10 D1 d3
#NEEDS_ISA
PNP
====== pnpres.dat ========
====================
OSS/FreeBSD 3.99.3c (C) 4Front Technologies 1996-2004

License serial number: N02706790
Drivers: ISA MIX
This copy of OSS is licensed to Rick Voland

Build: 200511042352
Kernel: FreeBSD 6.0-RELEASE #0: Sun Nov 6 16:11:10 CST 2005
root@brian.local.bsd:/usr/obj/usr/src/sys/BRIAN


Card config:
Generic PnP support
OPL-2/OPL-3 FM at 0x388
SoundPort at 0x534 irq 10 drq 0,1
MPU-401 (UART) at 0x330 irq 5

Audio devices:
0: Audiotrix 3D-XG v1.0 (CS4248)
1: OSS Virtual Mixer v2.5 Playback CH #0 (GRC3)
2: OSS Virtual Mixer v2.5 Playback CH #1 (GRC3)
3: OSS Virtual Mixer v2.5 Playback CH #2 (GRC3)
4: OSS Virtual Mixer v2.5 Playback CH #3 (GRC3)
5: OSS Virtual Mixer v2.5 Playback CH #4 (GRC3)
6: OSS Virtual Mixer v2.5 Playback CH #5 (GRC3)
7: OSS Virtual Mixer v2.5 Playback CH #6 (GRC3)
8: OSS Virtual Mixer v2.5 Playback CH #7 (GRC3)

Synth devices:
0: Yamaha OPL-3
1: OSS Virtual Synth v2.5

Midi devices:
0: Audiotrix 3D-XG v1.0

Mixers:
0: Audiotrix 3D-XG v1.0 (CS4248)
1: Virtual Mixer
========== 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: Sun Nov 6 16:11:10 CST 2005
root@brian.local.bsd:/usr/obj/usr/src/sys/BRIAN
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium/P55C (232.67-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x543 Stepping = 3
Features=0x8003bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC,MMX>
real memory = 268435456 (256 MB)
avail memory = 253059072 (241 MB)
MPTable: <OEM00000 PROD00000000>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
Intel Pentium detected, installing workaround for F00F bug
ioapic0: Assuming intbase of 0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
cpu1 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 5 Entries> on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <display, VGA> at device 18.0 (no driver attached)
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x6800-0x687f mem 0xe1001000-0xe100107f irq 3 at device 19.0 on pci0
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:04:76:17:0b:48
dpt0: <DPT Caching SCSI RAID Controller> port 0x6c00-0x6c1f irq 12 at device 20.0 on pci0
dpt0: DPT PM2044UW FW Rev. 07H1, 1 channel, 64 CCBs
dpt0: [GIANT-LOCKED]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xcc000-0xcffff 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]
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
fd1: <1200-KB 5.25" drive> on fdc0 drive 1
ppc0: <Parallel port> at port 0x378-0x37f irq 7 flags 0x64 on isa0
ppc0: Generic chipset (EPP-only) in EPP mode (EPP 1.9)
ppbus0: <Parallel port bus> on ppc0
ppbus0: IEEE1284 device found /ECP_RLE
Probing for PnP devices on ppbus0:
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Polled 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: <PNP0100> can't assign resources (irq)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
aha2: <Adaptec 1542/aha-1535> at port 0x334-0x337 iomem 0xd0000-0xd3fff irq 11
q 5 on isa0
aha2: AHA-1542CP FW Rev. F.0 (ID=46) SCSI Host Adapter, SCSI ID 7, 16 CCBs
aha2: [GIANT-LOCKED]
Timecounters tick every 1.000 msec
ad0: 19470MB <WDC AC420400D J58OA30K> at ata0-master WDMA2
ad2: 19073MB <WDC WD200BB-75DEA0 05.03E05> at ata1-master WDMA2
Waiting 5 seconds for SCSI devices to settle
cd1 at aha2 bus 0 target 4 lun 0
cd1: <YAMAHA CRW6416S 1.0d> Removable CD-ROM SCSI-2 device
cd1: 10.000MB/s transfers (10.000MHz, offset 8)
cd1: Attempt to query device size failed: NOT READY, Medium not present - tray
osed
da2 at aha2 bus 0 target 5 lun 0
da2: <CWS ORB2 -SE U ID 5 D42> Removable Direct Access SCSI-2 device
da2: 10.000MB/s transfers (10.000MHz, offset 8)
da2: Attempt to query device size failed: NOT READY, Medium not present
cd0 at dpt0 bus 0 target 3 lun 0
cd0: <PLEXTOR CD-ROM PX-32CS 1.01> Removable CD-ROM SCSI-2 device
cd0: Attempt to query device size failed: NOT READY, Medium not present
da0 at dpt0 bus 0 target 0 lun 0
da0: <SEAGATE ST318417W 0105> Fixed Direct Access SCSI-3 device
da0: Tagged Queueing Enabled
da0: 17547MB (35937405 512 byte sectors: 255H 63S/T 2237C)
da1 at dpt0 bus 0 target 1 lun 0
da1: <SEAGATE ST36530W 1206> Fixed Direct Access SCSI-2 device
da1: Tagged Queueing Enabled
da1: 6208MB (12715408 512 byte sectors: 255H 63S/T 791C)
SMP: AP CPU #1 Launched!
(da2:aha2:0:5:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:aha2:0:5:0): CAM Status: SCSI Status Error
(da2:aha2:0:5:0): SCSI Status: Check Condition
(da2:aha2:0:5:0): NOT READY asc:3a,1
(da2:aha2:0:5:0): Medium not present - tray closed
(da2:aha2:0:5:0): Unretryable error
Opened disk da2 -> 6
(da2:aha2:0:5:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:aha2:0:5:0): CAM Status: SCSI Status Error
(da2:aha2:0:5:0): SCSI Status: Check Condition
(da2:aha2:0:5:0): NOT READY asc:3a,1
(da2:aha2:0:5:0): Medium not present - tray closed
(da2:aha2:0:5:0): Unretryable error
Opened disk da2 -> 6
(da2:aha2:0:5:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:aha2:0:5:0): CAM Status: SCSI Status Error
(da2:aha2:0:5:0): SCSI Status: Check Condition
(da2:aha2:0:5:0): NOT READY asc:3a,0
(da2:aha2:0:5:0): Medium not present
(da2:aha2:0:5:0): Unretryable error
Opened disk da2 -> 6
Trying to mount root from ufs:/dev/da0s1a
fred
New Member
 
Posts: 9
Joined: Sat Aug 14, 2004 2:16 pm

Postby dev » Sun Dec 11, 2005 12:31 am

Please see:

http://www.4front-tech.com/forum/viewto ... =2355#2355

To fix the permissions issues.



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

oss3993c and Mediatrix

Postby fred » Wed Dec 14, 2005 3:39 am

Thanks for the suggestion, but it did not solve either problem:
1) the permissions problem;
2) I still cannot play digital audio (wave) files even as root.

I created a file oss.sh in /usr/local/etc/rc.d using the script you suggested and I made it executable.

I created a file /etc/devfs.rules using the code you suggested.

(In both cases, I copied your code by copy/paste into nano (text editor).)

I rebooted and saw a new warning message well after loading OSS that a sound driver had already been created. This error message comes after dmesg, so I cannot copy it for you.


-----------------------------------

It looks like OSS does not have
IRQ 5,10;
DMA 0,1,3 (2 of these 3);
0x300

-----------------------------------

$ devinfo -ru
Interrupt request lines:
0x0 (plip0)
0x1 (atkbd0)
0x3 (xl0)
0x4 (sio0)
0x5 ----
0x6 (fdc0)
0x7 (root0)
0x8 (attimer0)
0x9 (root0)
0xa ----
0xb (aha2)
0xc (dpt0)
0xd (npxisa0)
0xe (ata0)
0xf (ata1)
0x13-0x17 (root0)
DMA request lines:
0 ----
1 ----
2 (fdc0)
3 (root0)
4 (atdma0)
5 (aha2)
6-7 (root0)
I/O ports:
0x0-0xf (atdma0)
0x10-0x5f (root0)
0x60 (atkbdc0)
0x61 ----
0x62-0x63 (root0)
0x64 (atkbdc0)
0x65-0x6f (root0)
0x70-0x71 (attimer0)
0x72-0x80 (root0)
0x81-0x83 (atdma0)
0x84-0x86 (root0)
0x87 (atdma0)
0x88 (root0)
0x89-0x8b (atdma0)
0x8c-0x8e (root0)
0x8f-0x91 (atdma0)
0x92-0xbf (root0)
0xc0-0xdf (atdma0)
0xe0-0xef (root0)
0xf0-0xff (npxisa0)
0x100-0x16f (root0)
0x170-0x177 (atapci0)
0x178-0x1ef (root0)
0x1f0-0x1f7 (atapci0)
0x1f8-0x200 (root0)
0x201 ----
0x202-0x207 (root0)
0x208-0x20f (sysresource0)
0x210-0x21f (root0)
0x220-0x22f ----
0x230-0x32f (root0)
0x330-0x331 ----
0x332-0x333 (root0)
0x334-0x337 (aha2)
0x338-0x36f (root0)
0x370-0x371 ----
0x372-0x375 (root0)
0x376 (atapci0)
0x377 (root0)
0x378-0x37f (ppc0)
0x380-0x387 (root0)
0x388-0x38b ----
0x38c-0x3bf (root0)
0x3c0-0x3df (vga0)
0x3e0-0x3ef (root0)
0x3f0-0x3f5 (fdc0)
0x3f6 (atapci0)
0x3f7 (fdc0)
0x3f8-0x3ff (sio0)
0x400-0x47f (root0)
0x480-0x48f (pcibus_pnp0)
0x490-0x4cf (root0)
0x4d0-0x4d1 (pcibus_pnp0)
0x4d2-0x52f (root0)
0x530-0x537 ----
0x538-0xcf7 (root0)
0xcf8-0xcff (pcibus_pnp0)
0xd00-0x63ff (root0)
0x6400-0x64ff ----
0x6500-0x67ff (root0)
0x6800-0x687f (xl0)
0x6880-0x6bff (root0)
0x6c00-0x6c1f (dpt0)
0x6c20-0xefff (root0)
0xf000-0xf00f (atapci0)
0xf010-0xffff (root0)
I/O memory addresses:
0x0-0x9ffff ----
0xa0000-0xbffff (vga0)
0xc0000-0xc7fff (orm0)
0xc8000-0xc8fff (orm0)
0xc9000-0xcbfff (root0)
0xcc000-0xcffff (orm0)
0xd0000-0xd3fff (aha2)
0xd4000-0xdfffffff (root0)
0xe0000000-0xe0ffffff ----
0xe1000000-0xe1000fff ----
0xe1001000-0xe100107f (xl0)
0xe1001080-0xffffffff (root0)
$

-------------------------------------

Thanks for any suggestions.
fred
New Member
 
Posts: 9
Joined: Sat Aug 14, 2004 2:16 pm

oss3993d and MediaTrix AudioTrix 3D-XG

Postby fred » Tue Jan 03, 2006 3:47 am

I updated to oss3993d, added the scripts you recommended for permissions, and still cannot play sound. I see that the OSS driver is not using the resources I selected during installation.
Note especially that 0x330 is liable to conflict with my Adaptec AHA-1542CP SCSI which works fine now.

-------------------------- my configuration choices
[machine]# cat devices.cfg
# Use soundconf to edit this file.
/SECUREAUDIO OFF
/IRQEXCLUDE 3 4
/DMAEXCLUDE 2
-MPI0003 #MediaTrix Audiotrix 3D XG
OPL3 OPNP P388
UART401 OPNP P300 I5
DUMMY OPNP P370
RAWMSS OPNP Pe80 I10 D1 d3
#NEEDS_ISA
PNP
[machine]#
----------------------------------

----------------------------------what is actually happening
$ cat /dev/sndstat
OSS/FreeBSD 3.99.3d (C) 4Front Technologies 1996-2004

License serial number: [...snip...] #omitted from this public posting
Drivers: ISA MIX
This copy of OSS is licensed to [...snip...] #omitted from this public posting

Build: 200512192146
Kernel: FreeBSD 6.0-RELEASE #0: Sun Nov 6 16:11:10 CST 2005
root@[machine].local.bsd:/usr/obj/usr/src/sys/[MACHINE]


Card config:
Generic PnP support
OPL-2/OPL-3 FM at 0x388
SoundPort at 0x534 irq 10 drq 0,1
MPU-401 (UART) at 0x330 irq 5

Audio devices:
0: Audiotrix 3D-XG v1.0 (CS4248)
1: OSS Virtual Mixer v2.5 Playback CH #0 (GRC3)
2: OSS Virtual Mixer v2.5 Playback CH #1 (GRC3)
3: OSS Virtual Mixer v2.5 Playback CH #2 (GRC3)
4: OSS Virtual Mixer v2.5 Playback CH #3 (GRC3)
5: OSS Virtual Mixer v2.5 Playback CH #4 (GRC3)
6: OSS Virtual Mixer v2.5 Playback CH #5 (GRC3)
7: OSS Virtual Mixer v2.5 Playback CH #6 (GRC3)
8: OSS Virtual Mixer v2.5 Playback CH #7 (GRC3)

Synth devices:
0: Yamaha OPL-3
1: OSS Virtual Synth v2.5

Midi devices:
0: Audiotrix 3D-XG v1.0

Mixers:
0: Audiotrix 3D-XG v1.0 (CS4248)
1: Virtual Mixer
$
-------------------------------------------------------

Thanks for your suggestions and consideration.
fred
New Member
 
Posts: 9
Joined: Sat Aug 14, 2004 2:16 pm


Return to BSD

Who is online

Users browsing this forum: No registered users and 1 guest