From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 7 01:09:12 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 A1F4C16A41F; Fri, 7 Oct 2005 01:09:12 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D0043D45; Fri, 7 Oct 2005 01:09:11 +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 C01906CC26; Fri, 7 Oct 2005 09:09:43 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48659-01; Fri, 7 Oct 2005 09:09:42 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id AB6E96CC22; Fri, 7 Oct 2005 09:09:41 +0800 (MYT) Date: Fri, 7 Oct 2005 09:09:57 +0800 From: Ariff Abdullah To: David Xu Message-Id: <20051007090957.28da4c9e.skywizard@MyBSD.org.my> In-Reply-To: <4345C235.8060205@freebsd.org> References: <20051006141525.4171b911.skywizard@MyBSD.org.my> <4345C235.8060205@freebsd.org> 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, Alexander@Leidinger.net, noackjr@alumni.rice.edu Subject: Re: DAC1 / DAC2 for ex137x - ES1370/1/2/3 , CT5880/CT4730(EV1938) 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: Fri, 07 Oct 2005 01:09:12 -0000 On Fri, 07 Oct 2005 08:32:53 +0800 David Xu wrote: > > I have applied the patch, it works. Can you tell me how to test > the DAC function By default, only DAC2. You need to set kernel hint hint.pcm.0.dac=0 (or 3, to swap the position) and reload the driver (or reboot, for RELENG_5). From dmesg, you'll see something like this: pcm0: port 0xe400-0xe41f,0xe800-0xe83f irq 18 at device 7.0 on pci0 pcm0: pcm0: ^^^^^^^^^ Now to ensure both are working, simply disable vchan: sysctl hw.snd.maxautovchans=0 sysctl hw.snd.pcm0.vchans=0 .. and play any mp3/audio. Make sure you can run 2 sound apps concurrently, which means the first one will use DAC1, and the second the other. You may enable vchan back if you think you need more than 2 :) > I feel the sound quality is a bit better than > before when playing mp3. > Which patchset did you applied? *_052.diff or *_052slave.diff ? -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)