Date: Wed, 4 Jan 2006 02:28:30 +0100 From: Simon Barner <barner@FreeBSD.org> To: Ariff Abdullah <skywizard@MyBSD.org.my> Cc: freebsd-multimedia@FreeBSD.org Subject: Re: snd_solo broken after big MFC to RELENG_6 Message-ID: <20060104012830.GA839@zi025.glh.mhn.de> In-Reply-To: <20060104080453.71592e1f.skywizard@MyBSD.org.my> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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: <ESS Solo-1 (unknown vendor)> 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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX> AMD Features=3D0x80000800<SYSCALL,3DNow> real memory =3D 268435456 (256 MB) avail memory =3D 256622592 (244 MB) K6-family MTRR support enabled (2 registers) npx0: [FAST] npx0: <math processor> on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: <VIA 82C598MVP (Apollo MVP3) host bridge> pcibus 0 on motherboard pir0: <PCI Interrupt Routing Table: 6 Entries> on motherboard pci0: <PCI bus> on pcib0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C586B UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177= ,0x376,0xa000-0xa00f at device 7.1 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 pci0: <serial bus, USB> at device 7.2 (no driver attached) pci0: <network, ethernet> at device 17.0 (no driver attached) pci0: <network, ethernet> at device 19.0 (no driver attached) pcm0: <ESS Solo-1 (unknown vendor)> 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: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on= isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: <Parallel port> 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: <Parallel port bus> on ppc0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> 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: <PNP0303> can't assign resources (port) unknown: <PNP0c01> can't assign resources (memory) unknown: <PNP0f13> can't assign resources (irq) unknown: <PNP0501> can't assign resources (port) unknown: <PNP0700> can't assign resources (port) unknown: <PNP0401> can't assign resources (port) unknown: <PNP0501> 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 <WDC WD102AA 05.05B05> at ata0-master UDMA33 acd0: CDRW <HL-DT-ST RW/DVD GCC-4120B/2.02> at ata1-master PIO4 ad3: 117246MB <Maxtor 6Y120L0 YAR41BW0> 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: <MII bus> on xl0 nsphy0: <DP83840 10/100 media interface> on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: <RealTek 8139 10/100BaseTX> 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: <MII bus> on rl0 rlphy0: <RealTek internal media interface> on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cd0 at ata1 bus 0 target 0 lun 0 cd0: <HL-DT-ST RW/DVD GCC-4120B 2.02> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060104012830.GA839>