From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 12:12:18 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 5449816A420 for ; Sat, 17 Dec 2005 12:12:18 +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 C579A43D7B for ; Sat, 17 Dec 2005 12:12:03 +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 5BED16CC3E; Sat, 17 Dec 2005 20:17:12 +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 73978-02; Sat, 17 Dec 2005 20:17:10 +0800 (MYT) Received: from misaki (unknown [219.95.202.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 8F45C6CC2F; Sat, 17 Dec 2005 20:17:09 +0800 (MYT) Date: Sat, 17 Dec 2005 20:11:54 +0800 From: Ariff Abdullah To: pyunyh@gmail.com Message-Id: <20051217201154.43fb87d2.skywizard@MyBSD.org.my> In-Reply-To: <20051214014838.GA10021@rndsoft.co.kr> References: <200512030310.jB33A77R038278@freefall.freebsd.org> <20051203092819.GB13672@rndsoft.co.kr> <20051204181714.C728@atlantis.403forbidden.net> <20051205060208.GC1086@rndsoft.co.kr> <20051205202824.C45817@atlantis.403forbidden.net> <20051212030939.GA1093@rndsoft.co.kr> <20051212201440.G701@atlantis.403forbidden.net> <20051213041830.GB5920@rndsoft.co.kr> <20051213200617.K701@atlantis.403forbidden.net> <20051214014838.GA10021@rndsoft.co.kr> 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 AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4) 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: Sat, 17 Dec 2005 12:12:18 -0000 On Wed, 14 Dec 2005 10:48:38 +0900 Pyun YongHyeon wrote: > On Tue, Dec 13, 2005 at 08:16:44PM -0500, Steven S. wrote: > > > > > > I tried that patch and no difference. > > > > if it helps here is the verbose ssndstat output > > > > > > Installed devices: > > pcm0: port 0xfc00-0xfcff irq 11 at > > device 12.0 on pci0 (4p/1r/4v channels duplex default) > > [pcm0:play:0]: spd 44100, fmt 0x10000010, flags > > 0x00001000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_vchan_s16(0x10000010) -> {hardware} > > [pcm0:play:1]: spd 44100, fmt 0x10000010, flags > > 0x00000000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x10000010) -> {hardware} > > [pcm0:play:2]: spd 0, fmt 0x00000000/0x00000008, flags > > 0x00000000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > [pcm0:play:3]: spd 0, fmt 0x00000000/0x00000008, flags > > 0x00000000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags > > 0x00000000, 0x00000000 > > interrupts 0, overruns 0, hfree 16384, sfree 0 > > {hardware} -> feeder_root(0x00000000) -> {userland} > > pcm0:play:0[pcm0:virtual:0]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > pcm0:play:0[pcm0:virtual:1]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > pcm0:play:0[pcm0:virtual:2]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > pcm0:play:0[pcm0:virtual:3]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > > > nothing else changed in dmesg or mixer > > > > Then I have no idea as my system works here. It seems it would be > difficult to fix the problem without accessing the hardware. :-( > How about setting hw.pci.enable_io_modes=0 or disabling ACPI in > loader.conf? > > Maybe ariff@ has better idea.(CCed) > To be truth, this is one of the issue that keep me puzzled. Lack of hardware is also an issue for me. One thing to note is, this driver used to work before the conversion of busdma (<= 5.1-R). The rest: 1) Excessive inlining - maestro.c won't survive if WARN=1. Inlining failure probably cause incorrect code generation. This need to be addressed. 2) Delayed interrupt hook - few drivers (ich, atiixp) need to delay further chip initialization in order to let interrupt works first. I cannot tell whether this is the right solution, but probably worth a try. Anyway, I'll try to get the specific hardware first. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)