From owner-freebsd-stable Mon Sep 25 15:54:43 2000 Delivered-To: freebsd-stable@freebsd.org Received: from front001.cluster1.charter.net (24-216-159-200.hsacorp.net [24.216.159.200]) by hub.freebsd.org (Postfix) with ESMTP id 39B6B37B42C for ; Mon, 25 Sep 2000 15:54:12 -0700 (PDT) Received: from [24.217.5.250] (HELO dave.uhring.com) by front001.cluster1.charter.net (CommuniGate Pro SMTP 3.2.4) with SMTP id 20724318; Mon, 25 Sep 2000 18:53:55 -0400 From: Dave Uhring To: Phil Homewood , Dave Edmondson Subject: Re: pcm driver Date: Mon, 25 Sep 2000 17:44:33 -0500 X-Mailer: KMail [version 1.0.28] Content-Type: Multipart/Mixed; boundary="Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ" Cc: freebsd-stable@FreeBSD.ORG References: <200009250451.e8P4pY200914@thought.org> <20000925142015.A72441@verdi.jlc.net> <20000926082304.A21277@atlas.bit.net.au> In-Reply-To: <20000926082304.A21277@atlas.bit.net.au> MIME-Version: 1.0 Message-Id: <00092517535400.00237@dave.uhring.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ Content-Type: text/plain Content-Transfer-Encoding: 8bit On Mon, 25 Sep 2000, Phil Homewood wrote: > Dave Edmondson wrote: > > I finally got a Sound Blaster 16 non-PnP model working. Both pcm and sbc > > had to be in the old ISA: > > > > pcm0 at isa? ... > > sbc0 at isa? ... > > > > ...format. After remaking sbc0, it seemed to work fine. > > Mine "works" with just "device pcm" and "device sbc", in the same > way that it "works" using the old "at isa?" syntax. However I have > a weird problem - an attempt to play any given track will fail > about 10% of the time, all I get is static from the speakers. > Restarting the play generally works. > > It sounds to me like maybe something isn't being reset properly > before the device is opened. Has anyone seen this behaviour, or > is there anything anyone can suggest for tracking this down? > > I've tried swapping the card, and the symptoms persist. This is > under 4.1-STABLE, cvsupped yesterday, and has been happening since > 4.0-STABLE as of at least May (when I first installed this box.) > > pdh@minotaur:~% dmesg | egrep 'sb|pcm' > sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,3 on isa0 > sbc0: setting card to irq 5, drq 1, 3 > pcm0: on sbc0 > pdh@minotaur:~% cat /dev/sndstat > FreeBSD Audio Driver (newpcm) Sep 26 2000 07:43:54 > Installed devices: > pcm0: at io 0x220 irq 5 drq 1:3 (1p/1r channels duplex) > pdh@minotaur:~% > > Also, I've just noticed that the volume control in xmms has just > ceased to have any effect, hmm... > -- > Phil Homewood pdh@asiaonline.net > Senior Technician +61 7 3620 1930 > Asia Online (Brisbane) http://www.asiaonline.net/ This topic has been hashed to death previously on this forum. The SB16, SB Vibra16, the Ensoniq 1371-1373 and many other sound cards use *only* device pcm. device pcm is 16 bit sound, device sbc0 is 8 bit sound. I presently have a SB16 installed and am using RealPlayer7 to listen to Beethoven's Emperor Concerto in vivid 16 bit clear stereo. I previously had the SB Vibra 16 and Ensoniq 1373 installed. Using ONLY device pcm, all of them worked perfectly. See the attached kernel config file "dave" and dmesg. Note the kernel build date. It is the same date as cvsup and make buildworld. If sbc1 or pcm1 appear in your dmesg, you have to "sh /dev/MAKEDEV snd1". If sbc0 or pcm0 appear in your dmest, you "sh /dev/MAKEDEV snd0". Dave --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ Content-Type: text/english; name="dave" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="dave" # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.8 2000/07/20 02:51:02 msmith Exp $ machine i386 cpu I586_CPU cpu I686_CPU ident dave maxusers 32 options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev device isa #device eisa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 device fd1 at fdc0 drive 1 # ATA and ATAPI devices device ata0 at isa? port IO_WD1 irq 14 device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 device psm0 at atkbdc? irq 12 device vga0 at isa? # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? disable flags 0x20 # Advanced Power Management # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer device ppi # Parallel port interface device # PCI Ethernet NICs. device de # DEC/Intel DC21x4x (``Tulip'') device fxp # Intel EtherExpress PRO/100B (82557, 82558) # PCI Ethernet NICs that use the common MII bus controller code. device miibus # MII bus support device dc # DEC/Intel 21143 and various workalikes # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support #pseudo-device sl 1 # Kernel SLIP #pseudo-device ppp 1 # Kernel PPP #pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) pseudo-device md # Memory "disks" #pseudo-device gif 4 # IPv6 and IPv4 tunneling #pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter device pcm device agp --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ Content-Type: text/english; name="dmesg" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="dmesg" Copyright (c) 1992-2000 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 4.1-STABLE #0: Sat Sep 23 19:47:17 CDT 2000 duhring@dave.uhring.com:/usr/obj/usr/src/sys/dave Timecounter "i8254" frequency 1193182 Hz CPU: AMD-K6(tm) 3D processor (451.03-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf AMD Features=0x80000800 real memory = 134152192 (131008K bytes) avail memory = 127311872 (124328K bytes) Preloaded elf kernel "kernel" at 0xc0347000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc034709c. K6-family MTRR support enabled (2 registers) md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe5000000-0xe53fffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xe400-0xe40f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pcib2: at device 7.3 on pci0 fxp0: port 0xe800-0xe81f mem 0xe5400000-0xe54fffff,0xe5500000-0xe5500fff irq 10 at device 9.0 on pci0 fxp0: Ethernet address 00:a0:c9:39:62:0f fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: 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 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: IEEE1284 device found /NIBBLE/ECP Probing for PnP devices on ppbus0: ppbus0: MLC,PCL,PML lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 sbc0: setting card to irq 5, drq 1, 5 pcm0: on sbc0 ata1-slave: ata_command: timeout waiting for intr ata1-slave: identify failed ad0: 12427MB [25249/16/63] at ata0-master using UDMA33 ad1: 1220MB [2480/16/63] at ata0-slave using WDMA2 acd0: CDROM at ata1-master using UDMA33 Mounting root from ufs:/dev/ad0s2a ad0s1: rejecting partition in BSD label: it isn't entirely within the slice ad0s1: start 63, end 4819499, size 4819437 ad0s1d: start 0, end 25450991, size 25450992 pid 217 (realplay), uid 1000: exited on signal 11 (core dumped) --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message