Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 1999 03:12:34 +0200 (SAST)
From:      Khetan Gajjar <khetan@chain.freebsd.os.org.za>
To:        questions@freebsd.org
Subject:   Problem using sound card (pcm driver) and SCSI together
Message-ID:  <Pine.BSF.4.10.9908120307010.576-100000@chain.freebsd.os.org.za>

next in thread | raw e-mail | index | archive | help
Hi.

I've got a bit of a odd situation. I can listen to music through
my Soundblaster 16 perfectly, and copy files off a CD-RW perfectly,
but problems occur when I do both. Specifically, the sound from the
sound card almost "slows down". The minute I cancel the reads from the
CD-RW, it's perfect again. The Soundblaster is a recent addition.

I've looked for obvious things like same IRQ or DRQ, but can't find anything.
Does anyone have any ideas ?

The sound card claims to be set to IRQ 10, using DMA 3 and 7, and
using IO address 220F. The SCSI card claims to be using IRQ 11,
using DMA 6 and IO address 330H. From what I remember,
there might be a problem with the Soundblaster using 330H as well.

/dev/sndstat says
11=[khetan@chain] ~$ cat /dev/sndstat
+ cat /dev/sndstat
FreeBSD Audio Driver (981002) Aug 10 1999 23:58:00
Installed devices:
pcm0: <SoundBlaster 16 4.13> at 0x220 irq 10 dma 7:3
which I believe precludes the Soundblaster using 330H at the same
time as the SCSI card.

and the dmesg says

Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Tue Aug 10 23:59:02 SAST 1999
    khetan@chain:/usr/src/sys/compile/CHAIN
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 200456072 Hz
CPU: Pentium/P54C (200.46-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 117440512 (114688K bytes)
config> en pcm0
config> ir pcm0 10
config> dr pcm0 3
config> f pcm0 0x17
config> q
avail memory = 110272512 (107688K bytes)
Preloaded elf kernel "kernel" at 0xc0348000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc034809c.
Preloaded elf module "splash_bmp.ko" at 0xc03480ec.
Preloaded splash_image_data "/boot/splash.bmp" at 0xc0348190.
Intel Pentium detected, installing workaround for F00F bug
VESA: v1.2, 2048k memory, flags:0x0, mode table:0xc00c1bfc (c0001bfc)
VESA: S3 Incorporated. Trio64V+
ccd0-1: Concatenated disk drivers
Probing for PnP devices:
devclass_alloc_unit: pcib0 already exists, using next available unit number
devclass_alloc_unit: pcib0 already exists, using next available unit number
devclass_alloc_unit: pcib0 already exists, using next available unit number
devclass_alloc_unit: pcib0 already exists, using next available unit number
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <SiS 5591 host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
ata-pci0: <Unknown PCI IDE controller (using generic mode)> irq 14 at device 0.1 on pci0
ata-pci0: Busmastering DMA supported
ata0 at 0x01f0 irq 14 on ata-pci0
ata1 at 0x0170 irq 15 on ata-pci0
isab0: <SiS 85c503 PCI-ISA bridge> at device 1.0 on pci0
pci0: unknown card DAY0009 (vendor=0x1039, dev=0x0009) at 1.1
pcib5: <PCI to PCI bridge (vendor=1039 device=0001)> at device 2.0 on pci0
pci1: <PCI bus> on pcib5
vga-pci0: <S3 Trio graphics accelerator> irq 5 at device 9.0 on pci0
de0: <Digital 21041 Ethernet> irq 9 at device 11.0 on pci0
de0: SMC 21041 [10Mb/s] pass 1.1
de0: address 00:00:c0:f9:2f:c8
devclass_alloc_unit: pci1 already exists, using next available unit number
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
devclass_alloc_unit: pci2 already exists, using next available unit number
pcib2: <SiS 5591 host to AGP bridge> on motherboard
pci3: <PCI bus> on pcib2
devclass_alloc_unit: pci3 already exists, using next available unit number
pcib3: <Host to PCI bridge> on motherboard
pci4: <PCI bus> on pcib3
devclass_alloc_unit: pci4 already exists, using next available unit number
pcib4: <Host to PCI bridge> on motherboard
pci5: <PCI bus> on pcib4
isa0: <ISA bus> on motherboard
aha0 at port 0x330-0x333,0x330-0x333 irq 11 drq 6 on isa0
aha0: AHA-1542CF FW Rev. C.0 (ID=45) SCSI Host Adapter, SCSI ID 7, 16 CCBs
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pcm0 at port 0x220 irq 10 drq 3 flags 0x17 on isa0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0 at port 0x378-0x37f irq 7 on isa0
ppc0: Winbond chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus 0
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
de0: enabling 10baseT port
IP packet filtering initialized, divert enabled, rule-based forwarding disabled, logging limited to 100 packets/entry by default
ata0: master: setting up generic WDMA2 mode OK
ad0: <ST32140A/07.07.01> ATA-? disk at ata0 as master
ad0: 2015MB (4127760 sectors), 4095 cyls, 16 heads, 63 S/T, 512 B/S
ad0: piomode=4, dmamode=2, udmamode=-1
ad0: 16 secs/int, 0 depth queue, DMA mode
ata0: slave: setting up generic WDMA2 mode OK
ad1: <WDC AC29100D/J74OA30K> ATA-4 disk at ata0 as slave 
ad1: 8693MB (17803440 sectors), 17662 cyls, 16 heads, 63 S/T, 512 B/S
ad1: piomode=4, dmamode=2, udmamode=2
ad1: 16 secs/int, 31 depth queue, DMA mode
ata1: master: setting up generic WDMA2 mode OK
ad2: <WDC AC21000H/21.15T71> ATA-? disk at ata1 as master
ad2: 1033MB (2116800 sectors), 2100 cyls, 16 heads, 63 S/T, 512 B/S
ad2: piomode=4, dmamode=2, udmamode=-1
ad2: 16 secs/int, 0 depth queue, DMA mode
ata1: slave: setting up generic WDMA2 mode OK
ad3: <QUANTUM FIREBALL1080A/A1M.0900> ATA-? disk at ata1 as slave 
ad3: 1039MB (2128896 sectors), 2112 cyls, 16 heads, 63 S/T, 512 B/S
ad3: piomode=4, dmamode=2, udmamode=-1
ad3: 8 secs/int, 0 depth queue, DMA mode
Waiting 2 seconds for SCSI devices to settle
changing root device to wd1s1a
da0 at aha0 bus 0 target 2 lun 0
da0: <QUANTUM LPS540S 5900> Fixed Direct Access SCSI-2 device 
da0: 3.300MB/s transfers
da0: 516MB (1057616 512 byte sectors: 64H 32S/T 516C)
da1 at aha0 bus 0 target 4 lun 0
da1: <CONNER CFA540S 14B1> Fixed Direct Access SCSI-2 device 
da1: 3.300MB/s transfers
da1: 515MB (1056708 512 byte sectors: 64H 32S/T 515C)
cd0 at aha0 bus 0 target 5 lun 0
cd0: <NEC CD-ROM DRIVE:502 2.0r> Removable CD-ROM SCSI-2 device 
cd0: 3.300MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
cd1 at aha0 bus 0 target 6 lun 0
cd1: <YAMAHA CRW4260 1.0q> Removable CD-ROM SCSI-2 device 
cd1: 3.300MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present - tray closed

---
Khetan Gajjar       (!kg1779) * khetan@os.org.za
http://khetan.os.org.za/      * Talk/Finger khetan@khetan.os.org.za
FreeBSD enthusiast            * http://www2.za.freebsd.org/
Stupidest quote heard : Who is this BSD, and why should we free him ?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908120307010.576-100000>