From owner-freebsd-multimedia@FreeBSD.ORG Sat May 14 19:09:17 2005 Return-Path: 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 11E2616A4CE for ; Sat, 14 May 2005 19:09:17 +0000 (GMT) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8168543D7B for ; Sat, 14 May 2005 19:09:16 +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 8763C6CC31; Sun, 15 May 2005 03:11:49 +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 08020-05; Sun, 15 May 2005 03:11:38 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.108.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C2B726CC27; Sun, 15 May 2005 03:11:37 +0800 (MYT) Date: Sun, 15 May 2005 03:09:19 +0800 From: Ariff Abdullah To: Arne =?ISO-8859-1?Q? "W=F6rner" ?= Message-Id: <20050515030919.7c9a333c.skywizard@MyBSD.org.my> In-Reply-To: <20050514180230.23533.qmail@web41210.mail.yahoo.com> References: <20050514180230.23533.qmail@web41210.mail.yahoo.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY cc: freebsd-multimedia@freebsd.org Subject: Re: volume problems with snd_via8233 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 19:09:17 -0000 On Sat, 14 May 2005 11:02:30 -0700 (PDT) Arne "W=F6rner" wrote: > --- dgmm wrote: > > On Saturday 14 May 2005 11:14, vaida bogdan wrote: > > > Hi, I've bought a new computer with an ASRock K7Upgrade-880 > > > motherboard with 5.1 channels AC'97 Audio (quoting from > > install guide > > > and I have a problem with sound on Freebsd 5.4 with > > snd_via8233. > > > > > > After I load the module, the sound volume is set to max and > > even > > > though I can lower the sound bar (xmms) or lower the volume in > > mplayer > > > the volume doesn't change. I can only change it from my audio > > boxes. > > > > > > I think it could be a module problem because it works ok in > > windows. > > > > > > # cat /dev/sndstat > > > FreeBSD Audio Driver (newpcm) > > > Installed devices: > > > pcm0: at io 0xd000 irq 22 kld snd_via8233 > > (5p/1r/0v > > > channels duplex default) > >=20 > > Same here with this... > > Perhaps you guys can try these patches: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ac97.c.diff http://staff.mybsd.org.my/skywizard/FreeBSD/sound/vchan.c.diff > But not here with this: > > cat /dev/sndstat=20 > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xe000 irq 7 (5p/1r/0v channels duplex > default) >=20 > Works fine... Just strange interuptions in playback, when there is > heavy concurrency about CPU or IO resources. >=20 > -Arne > VIA is known for it's notorious DXS playback to achive multiple playback sources. The driver itself not MPSAFE, which is another reason. You can try to disable it and use pcm virtual channel instead. Can you try these patch: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/via8233.c.diff http://staff.mybsd.org.my/skywizard/FreeBSD/sound/vchan.c.diff Be sure to add hint.pcm.0.via_dxs_disabled=3D1 into your /boot/device.hints (this will disable DXS playback). Enabling PREEMPTION + ULE in your kernel also helps alot. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)