From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 18 07:04:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53A1B37B401; Mon, 18 Aug 2003 07:04:20 -0700 (PDT) Received: from kazi.fit.vutbr.cz (kazi.fit.vutbr.cz [147.229.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id A135443FE3; Mon, 18 Aug 2003 07:04:18 -0700 (PDT) (envelope-from cejkar@fit.vutbr.cz) Received: from kazi.fit.vutbr.cz (localhost [127.0.0.1]) by kazi.fit.vutbr.cz (8.12.9/8.12.9) with ESMTP id h7IE4EbW005813 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 18 Aug 2003 16:04:14 +0200 (CEST) Received: (from cejkar@localhost) by kazi.fit.vutbr.cz (8.12.9/8.12.5/Submit) id h7IE4DKe005812; Mon, 18 Aug 2003 16:04:13 +0200 (CEST) X-Authentication-Warning: kazi.fit.vutbr.cz: cejkar set sender to cejkar@fit.vutbr.cz using -f Date: Mon, 18 Aug 2003 16:04:13 +0200 From: Rudolf Cejka To: Orion Hodson Message-ID: <20030818140413.GA2639@fit.vutbr.cz> References: <20030815223203.GA68085@fit.vutbr.cz> <200308180405.h7I45HTU092075@puma.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200308180405.h7I45HTU092075@puma.icir.org> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org cc: Oleg Sharoiko Subject: Re: ASUS P4P800-VM + AD1980 (Was Re: VIA8235 + AD1980) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 14:04:20 -0000 Orion Hodson wrote (2003/08/17): > There's a patch below that should help with this case - let > me know how you go as I have no similar h/w. Hello, my "another machine" is at home, so I will be sure about your patch tomorrow and I will send you another mail, however it looks reasonably. Maybe just for "defensive programming" wouldn't it be "safer" to switch values instead of assignment? Maybe there are some boards, which can use both outputs... My home machine is 4.8-RELEASE and pcm0: port 0xef00-0xef3f,0xe800-0xe8ff irq 9 at device 31.5 on pci0 pcm0: and it seems that registers are again according to the specification, AD1885 in this case: ich_rdcd(0x00): 0x0410 ich_rdcd(0x04): 0x8000 ich_rdcd(0x28): 0x0001 ich_rdcd(0x38): 0x0000 Because of AD1885 use, there is no problem with source selection for line out/hp out as in AD1980 case, because there is not any source switch for AD1885 and both outputs are connected to the mixer output. Hmm, documentation for AD1885 looks much better than for AD1980... > The existing code does something already (ac97_fix_auxout in ac97.c), Interesting, thanks ;o) and best regards. -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic