Date: Thu, 20 Sep 2001 19:33:26 -0700 (PDT) From: Gary Thorpe <gat@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/30700: Applications cannot synchronize sound using pcm(4) driver Message-ID: <200109210233.f8L2XQx27458@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 30700 >Category: i386 >Synopsis: Applications cannot synchronize sound using pcm(4) driver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 20 19:40:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Gary Thorpe >Release: 4.2 >Organization: >Environment: FreeBSD elf.elven.org 4.2-RELEASE FreeBSD 4.2-RELEASE #7: Mon Sep 3 18:42:50 PDT 2001 gthorpe@elf.elven.org:/usr/src/sys/compile/ELF i386 Type of machine: laptop- Toshiba Satellite 4010CDS, sound hardware - OPL3-SAx Added lines to kernel config for sound: options PNPBIOS device pcm Dmesg output: 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.2-RELEASE #7: Mon Sep 3 18:42:50 PDT 2001 gthorpe@elf.elven.org:/usr/src/sys/compile/ELF Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (266.62-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> real memory = 100597760 (98240K bytes) avail memory = 94519296 (92304K bytes) Preloaded elf kernel "kernel" at 0xc0345000. Preloaded elf module "splash_bmp.ko" at 0xc034509c. Preloaded elf module "vesa.ko" at 0xc0345140. Preloaded splash_image_data "/boot/splash.bmp" at 0xc03451dc. VESA: v2.0, 2048k memory, flags:0x0, mode table:0xc02f7260 (1000040) VESA: CHIPS 6x555 Super VGA Pentium Pro MTRR support enabled apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> on motherboard pci0: <PCI bus> on pcib0 pcic-pci0: <Toshiba ToPIC97 PCI-CardBus Bridge> at device 2.0 on pci0 pcic-pci1: <Toshiba ToPIC97 PCI-CardBus Bridge> at device 2.1 on pci0 pci0: <Chips & Technologies 65555 SVGA controller> at 4.0 isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xfe60-0xfe6f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11 intpm0: <Intel 82371AB Power management controller> port 0xfe70-0xfe7f irq 9 at device 7.3 on pci0 intpm0: I/O mapped fe70 intpm0: intr IRQ 9 enabled revision 0 smbus0: <System Management Bus> on intsmb0 smb0: <SMBus general purpose I/O> on smbus0 intpm0: PM I/O mapped fe00 chip1: <Toshiba Fast Infra Red controller> port 0xff80-0xff9f irq 11 at device 10.0 on pci0 fdc0: <NEC 765 or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 on isa0 pcic0: Polling mode pccard0: <PC Card bus -- kludge version> on pcic0 pccard1: <PC Card bus -- kludge version> on pcic0 sio0 at port 0x3f8-0x3ff irq 4 flags 0x20010 on isa0 sio0: type ST16650A ppc0: <Parallel port> at port 0x378-0x37f irq 7 drq 3 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port plip0: <PLIP network interface> on ppbus0 ppi0: <Parallel I/O> on ppbus0 unknown: <PNP0000> can't assign resources unknown: <PNP0303> can't assign resources unknown: <PNP0f13> can't assign resources unknown: <PNP0c02> can't assign resources unknown: <PNP0700> can't assign resources unknown: <PNP0501> can't assign resources unknown: <PNP0401> can't assign resources unknown: <PNP0e03> can't assign resources pcm0: <Yamaha OPL-SAx> at port 0x220-0x233,0x530-0x537,0x388-0x38f,0x330-0x333,0x538-0x539 irq 5 drq 1,0 on isa0 ata1-slave: ata_command: timeout waiting for intr ata1-slave: identify failed ad0: 4126MB <TOSHIBA MK4310MAT> [8944/15/63] at ata0-master UDMA33 acd0: CDROM <CD-224E> at ata1-master using WDMA2 Mounting root from ufs:/dev/ad0s2a uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xffe0-0xffff irq 11 at device 7.2 on pci0 usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered >Description: The pcm(4) sound driver does not seem to provide proper information for synchronizing sound with other activities in user applications. This is observed as a delay of 1-2 seconds between when the sound is supposed to be heard and when it actually is heard. The SNES emulator snes9x (ported or compiled from source) shows this lag when roms are being emulated: sound effects occur with a 1-2 second delay after the corresponding action. Another application which can be used to show this is mtvp or mtv (mpeg video player from www.mpegtv.com) which runs on FreeBSD via linux emulation. The mpeg video being played also has a lag of 1-2 seconds between the sound output and the corresponding video. I have used both applications under linux without this behaviour. Additonally, mtvp has several means of synchronizing the sound with the video, but none seem to work (the best one has the lag problem). >How-To-Repeat: Use an application which requires sound to be synchronized with video or some other output. You should notice a "phase shift" between the video and audio. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109210233.f8L2XQx27458>