From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 4 01:28:36 2006 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B77DE16A41F for ; Wed, 4 Jan 2006 01:28:36 +0000 (GMT) (envelope-from barner@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F89D43D46 for ; Wed, 4 Jan 2006 01:28:35 +0000 (GMT) (envelope-from barner@gmx.de) Received: (qmail invoked by alias); 04 Jan 2006 01:28:34 -0000 Received: from unknown (EHLO zi025.glh.mhn.de) [129.187.43.241] by mail.gmx.net (mp034) with SMTP; 04 Jan 2006 02:28:34 +0100 X-Authenticated: #147403 Received: by zi025.glh.mhn.de (Postfix, from userid 1000) id 8E3C8C42B; Wed, 4 Jan 2006 02:28:31 +0100 (CET) Date: Wed, 4 Jan 2006 02:28:30 +0100 From: Simon Barner To: Ariff Abdullah Message-ID: <20060104012830.GA839@zi025.glh.mhn.de> References: <20060103213654.GA1039@zi025.glh.mhn.de> <20060104055721.4182120e.skywizard@MyBSD.org.my> <20060103225947.GA2815@zi025.glh.mhn.de> <20060104073903.1c21146e.skywizard@MyBSD.org.my> <20060103235205.GA1099@zi025.glh.mhn.de> <20060104080453.71592e1f.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline In-Reply-To: <20060104080453.71592e1f.skywizard@MyBSD.org.my> User-Agent: Mutt/1.5.11 X-Y-GMX-Trusted: 0 Cc: freebsd-multimedia@FreeBSD.org Subject: Re: snd_solo broken after big MFC to RELENG_6 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 01:28:36 -0000 --mojUlQ0s9EVzWg2t Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > The good thing about recent MFC is to expose varying degree of > mistakes within specific driver, and hopefully this is one of them. >=20 > Try again, patch against solo.c: >=20 > http://people.freebsd.org/~ariff/test/solo.c.diff Great, this did the trick. However, vchans still don't work. When I set hw.snd.maxautovchans to some value > 0, I get the following error when loading the module (or during the boot with the value set in /boot/loader.conf): pcm0: vchan_create(pcm0:play:0) =3D=3D 45 I fear that means that the card simply doesn't support it... but I can live with that. The reason why I updated to RELENG_6 was, that I wanted to get rid of the clicks that disturbed audio output under I/O load. Even selecting an mbox with a few thousand messages in mutt is enough. OTOH I can extract the firefox tarball twice with two pararell processes, and I get much less clicking... strange. Perhaps the CPU is to slow to keep up with decompressing, so the I/O load is to low... I increased hw.snd.pcm0.buffersize to 32768 with an entry in /boot/device.hints, but I don't think it improved the situation a lot. Setting it to 65536 gave me warings on the console, so I better turned it back: kernel: DMA count reg bogus: cff8 & cff8 Are there any more knobs to tweak, or do I have to life with a suboptimal sound experience on old and cr*ppy hardware (see attached dmesg). Here's the output of cat /dev/sndstat when I hear the clicking (when=20 copying around my distfiles). FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xb000,0xb400,0xb800 irq 10 kld s= nd_solo (1p/1r/0v channels default) [pcm0:play:0]: spd 44100, fmt 0x10000010, flags 0x00001030, 0x00000000, pi= d 1105 interrupts 5273, underruns 0, ready 131048 {userland} -> feeder_root(0x10000010) -> {hardware} [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x000= 00000 interrupts 0, overruns 0, hfree 32768, sfree 0 {hardware} -> feeder_root(0x00000000) -> {userland} >=20 > I have few more ninja tricks if that doesn't work. :-) Does not seem to be necessary. Thank you very much for quick help! --=20 Best regards / Viele Gr=FC=DFe, barner@FreeBSD.= org Simon Barner barner@gmx.de --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=dmesg Content-Transfer-Encoding: quoted-printable 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-STABLE #0: Tue Jan 3 18:26:47 CET 2006 root@zi025.glh.mhn.de:/usr/obj/usr/src/sys/KISTE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD-K6(tm) 3D+ Processor (400.91-MHz 586-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x591 Stepping =3D 1 Features=3D0x8021bf AMD Features=3D0x80000800 real memory =3D 268435456 (256 MB) avail memory =3D 256622592 (244 MB) K6-family MTRR support enabled (2 registers) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177= ,0x376,0xa000-0xa00f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 7.2 (no driver attached) pci0: at device 17.0 (no driver attached) pci0: at device 19.0 (no driver attached) pcm0: port 0xb000-0xb03f,0xb400-0xb40f,0xb800= -0xb80f,0xbc00-0xbc03,0xc000-0xc003 irq 10 at device 20.0 on pci0 pcm0: 'buffersize=3D49152' hint is not a power of 2, using 32768 pcm0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on= isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/15 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 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 unknown: can't assign resources (port) unknown: can't assign resources (memory) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 400911959 Hz quality 800 Timecounters tick every 10.000 msec IP Filter: v4.1.8 initialized. Default =3D block all, Logging =3D enabled ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled,= default to deny, logging disabled ad0: 9787MB at ata0-master UDMA33 acd0: CDRW at ata1-master PIO4 ad3: 117246MB at ata1-slave UDMA33 Trying to mount root from ufs:/dev/ad0s1a xl0: <3Com 3c905-TX Fast Etherlink XL> port 0xac00-0xac3f irq 5 at device 1= 9.0 on pci0 xl0: Ethernet address: 00:60:08:4a:00:e5 miibus0: on xl0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: port 0xa800-0xa8ff mem 0xe5000000-0xe50000= ff irq 11 at device 17.0 on pci0 rl0: Ethernet address: 00:50:22:b1:03:d4 miibus1: on rl0 rlphy0: on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device=20 cd0: 16.000MB/s transfers --RnlQjJ0d97Da+TV1-- --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDuyS+Ckn+/eutqCoRArJAAKCz2vzsnc/05K0PnCbVhwpgcLHXdACgkG6t 14Ce3WORbdD+6pHArCkE1gY= =zsuV -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t--