From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 22 07:50:27 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E08916A4CE for ; Fri, 22 Oct 2004 07:50:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB5F843D39 for ; Fri, 22 Oct 2004 07:50:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9M7oQFa000583 for ; Fri, 22 Oct 2004 07:50:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9M7oQ7E000582; Fri, 22 Oct 2004 07:50:26 GMT (envelope-from gnats) Resent-Date: Fri, 22 Oct 2004 07:50:26 GMT Resent-Message-Id: <200410220750.i9M7oQ7E000582@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, tom Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B1ED16A4CE for ; Fri, 22 Oct 2004 07:47:43 +0000 (GMT) Received: from xiombarg.uffner.com (dsl092-233-084.phl1.dsl.speakeasy.net [66.92.233.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5BF543D39 for ; Fri, 22 Oct 2004 07:47:41 +0000 (GMT) (envelope-from tom@xiombarg.uffner.com) Received: from xiombarg.uffner.com (localhost [127.0.0.1]) by xiombarg.uffner.com (8.13.1/8.13.1) with ESMTP id i9M7le6T037366 for ; Fri, 22 Oct 2004 03:47:40 -0400 (EDT) (envelope-from tom@xiombarg.uffner.com) Received: (from tom@localhost) by xiombarg.uffner.com (8.13.1/8.13.1/Submit) id i9M7le1Q037365; Fri, 22 Oct 2004 03:47:40 -0400 (EDT) (envelope-from tom) Message-Id: <200410220747.i9M7le1Q037365@xiombarg.uffner.com> Date: Fri, 22 Oct 2004 03:47:40 -0400 (EDT) From: tom To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/72995: Intel ICH2 (82801BA) - sound nearly inaudible X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: tom List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 07:50:27 -0000 >Number: 72995 >Category: kern >Synopsis: Intel ICH2 (82801BA) - sound nearly inaudible >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: Fri Oct 22 07:50:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: tomuffner.com >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD xiombarg.uffner.com 6.0-CURRENT FreeBSD 6.0-CURRENT #4: Thu Oct 21 18:59:23 EDT 2004 tom@xiombarg.uffner.com:/usr/obj/usr/src/sys/XIOMBARG i386 machine i386 cpu I686_CPU ident XIOMBARG maxusers 0 options SCHED_ULE options INET #InterNETworking options INET6 #IPv6 communications protocols options IPSEC #IP security options IPSEC_ESP #IP security (crypto; define w/ IPSEC) options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options MD_ROOT #MD is a potential root device options NFSCLIENT #Network Filesystem Client options NFSSERVER #Network Filesystem Server options CD9660 #ISO 9660 Filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 #Compatible with FreeBSD4 options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV # install a CDEV entry in /dev options PERFMON options NO_F00F_HACK options PQ_CACHESIZE=256 # color for 512k/16k cache options KDB options CLK_USE_I8254_CALIBRATION device isa device eisa device pci device fdc device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering device md # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc device atkbd device psm device vga # syscons is the default console driver, resembling an SCO console device sc options SC_HISTORY_SIZE=1000 # number of history buffer lines options SC_DISABLE_REBOOT # disable reboot key sequence options SC_NORM_ATTR="(FG_GREEN|BG_BLACK)" device splash device npx device sio # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # Pseudo devices - the number indicates how many units to allocate. device loop # Network loopback device ether # Ethernet support device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device bpf #Berkeley packet filter # for IPv6 device gif #IPv6 and IPv4 tunneling device faith #for IPv6 and IPv4 translation # USB support device uhci # UHCI PCI->USB interface device usb # USB Bus (required) device ugen # Generic device uhid # "Human Interface Devices" device ukbd # Keyboard device ums # Mouse device sound device snd_ich Copyright (c) 1992-2004 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-CURRENT #4: Thu Oct 21 18:59:23 EDT 2004 tom@xiombarg.uffner.com:/usr/obj/usr/src/sys/XIOMBARG WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant WARNING: MPSAFE network stack disabled, expect reduced performance. Timecounter "i8254" frequency 1193142 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.13-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf12 Stepping = 2 Features=0x3febfbff real memory = 267874304 (255 MB) avail memory = 252407808 (240 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf4000000-0xf7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: at device 30.0 on pci0 pci2: on pcib2 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xdc80-0xdcff mem 0xff6ffc00-0xff6ffc7f irq 11 at device 12.0 on pci2 miibus0: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:06:5b:a2:d4:90 xl0: [GIANT-LOCKED] isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 uhci0: port 0xff80-0xff9f irq 11 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] usb0: 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 pci0: at device 31.3 (no driver attached) uhci1: port 0xff60-0xff7f irq 9 at device 31.4 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcm0: port 0xcc40-0xcc7f,0xc800-0xc8ff irq 10 at device 31.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model NetScroll, device ID 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x778-0x77f,0x378-0x37f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xc0000-0xc7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1794130020 Hz quality 800 Timecounters tick every 10.000 msec IPsec: Initialized Security Association Processing. ad0: 76345MB [155114/16/63] at ata0-master UDMA100 acd0: CDRW at ata1-master UDMA33 pcm0: measured ac97 link rate at 55925 Hz Mounting root from ufs:/dev/ad0s1a [xiombarg:~:ttyp2] cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xc800, 0xcc40 irq 10 bufsz 16384 (1p/1r/4v channels duplex default) >Description: pcm sound levels on my Dell GX240 are much lower than expected. i am using a known good set of speakers that work well on a older Dell box with identical FreeBSD version. sound is inaudible unless mixer pcm & ogain are both set above 80%, mixer vol setting makes no difference. output levels appear identical on the speaker jack and headphone jack. headphones sound ok at ogain=50, pcm=75-100; speakers get enough volume for a small quiet room at ogain=95-100, pcm=75-100 but sound is clipped and distorted (probably due to nearly maximum settings) the application used does not seem to matter. i've tested w/ xmms, mpg123, realplay and a variety of audio formats. this patch (inspired by kern/66422) made no difference =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/pcm/ac97.c,v retrieving revision 1.51 diff -u -r1.51 ac97.c --- ac97.c 8 May 2004 03:41:40 -0000 1.51 +++ ac97.c 22 Oct 2004 06:14:11 -0000 @@ -548,7 +548,7 @@ ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); ac97_reset(codec); - ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); + ac97_wrcd(codec, AC97_REG_POWER, 0x8000); i = ac97_rdcd(codec, AC97_REG_RESET); codec->caps = i & 0x03ff; @@ -663,7 +663,7 @@ ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); ac97_reset(codec); - ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); + ac97_wrcd(codec, AC97_REG_POWER, 0x8000); if (!codec->noext) { ac97_wrcd(codec, AC97_REGEXT_STAT, codec->extstat); sound works great on a Dell GX200 (p3, Intel ICH 82801AA) running the same build of FreeBSD-Current, and plays louder than I can comfortably listen to if i turn the mixer settings up to similar levels. >How-To-Repeat: run any audio application >Fix: >Release-Note: >Audit-Trail: >Unformatted: