From owner-freebsd-multimedia@FreeBSD.ORG Tue Jul 12 22:13:36 2005 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 6744816A41C for ; Tue, 12 Jul 2005 22:13:36 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id B35D443D46 for ; Tue, 12 Jul 2005 22:13:34 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3404B6CC84; Wed, 13 Jul 2005 06:19:14 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 45956-05; Wed, 13 Jul 2005 06:19:13 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.109.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 0F3F76CC7F; Wed, 13 Jul 2005 06:19:12 +0800 (MYT) Date: Wed, 13 Jul 2005 06:13:47 +0800 From: Ariff Abdullah To: Sascha Klauder Message-Id: <20050713061347.61f719c8.skywizard@MyBSD.org.my> In-Reply-To: <20050712204404.GA3835@trimind.de> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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: Tue, 12 Jul 2005 22:13:36 -0000 On Tue, 12 Jul 2005 22:44:04 +0200 Sascha Klauder wrote: > On Thu, Jul 07, 2005 at 06:46:03AM +0800, Ariff Abdullah wrote: > > After sometimes, I've decided to release this (massive 4k lines) > > diff to our sound driver. This need proper review and > > confirmation, before it can be committed. > > > > Patches for both HEAD / RELENG_5 available at: > > > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ > > Just applied snd_RELENG_5_20050709_006.diff. > System is 5.4-STABLE (from 2005-06-12), tested hardware: > > $ cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xe000 irq 10 kld snd_emu10k1 > (4p/2r/2v channels duplex default) pcm1: at io 0x220 > irq 5 drq 1:5 bufsz 4096d kld snd_sb16 (1p/1r/1v channels duplex) > > Something's not right here. I had some minor issues with > crackling noise on PCM playback with pcm1 (it's an AWE64), > which seems to be gone now, but the playback is just a bit > too slow, which sounds pretty strange. Playback on pcm0 > (old SB Live!) is just fine, as it was before applying the > patch. > > Recompiling mpg321 and settings vchans didn't help. Where > to start looking? > AWE64 is actually not capable of driving sampling rate at 48k (which is the current default value for vchan). Fortunately you can tune default sampling rate using kernel hint by adding this to your /boot/device.hints: hint.pcm.1.vchanrate="44100" More good news is, I've already added sysctl controller to tune vchan rate on the fly, something like sysctl hw.snd.pcm0.vchanrate=xxx. Stay tuned. If you insist, you may try my latest (revision 8) patch from: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/ I do have general solution to entirely eliminate noise / crackling issues (which plagued most SBLive!), which is part of my TODO list. Thanks for that feedback! -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)