From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 01:11:34 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 20BCF16A41F for ; Wed, 13 Jul 2005 01:11:33 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F8C643D49 for ; Wed, 13 Jul 2005 01:11:31 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id i13so70912wra for ; Tue, 12 Jul 2005 18:11:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=J7ARCir1lapqDk1Wy35/7ZAHyY1V9GRWAI3YMspSZfaNOMcmNIOhl8hiHepHQrvNi9wCDSXXfXKtJnY0fOiBYAuhwHxtEeovJ3urOLSamiFeOzLKfBcIs2fi41UJOc+Kn8fq+bG+WJqIQrxVS1bdnzsEn94FvL5B4RCywRXi16k= Received: by 10.54.57.46 with SMTP id f46mr131731wra; Tue, 12 Jul 2005 18:11:30 -0700 (PDT) Received: from michelle.rndsoft.co.kr ([211.32.202.209]) by mx.gmail.com with ESMTP id 33sm706734wra.2005.07.12.18.11.29; Tue, 12 Jul 2005 18:11:30 -0700 (PDT) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j6D1AJDb004803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jul 2005 10:10:19 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j6D1AIVm004802; Wed, 13 Jul 2005 10:10:18 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Wed, 13 Jul 2005 10:10:18 +0900 From: Pyun YongHyeon To: Muzaffar Ariff Message-ID: <20050713011018.GB4479@rndsoft.co.kr> References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> <8eb2b8105071217477e240667@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <8eb2b8105071217477e240667@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 01:11:34 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 13, 2005 at 08:47:00AM +0800, Muzaffar Ariff wrote: > > Hmm, I'm afraid you loaded old module again. Please let me know which > > FreeBSD version you used. I can make a patch for the specific FreeBSD > > version. > > I'm using FreeBSD 5.3-release. Are you saying that I did the patching > and loading of the patch correctly, its just you gave the wrong one? > (need to know either my methods were right) > I can't sure but your dmeseg output says it was not patched. Try attached patch on your system. 1. Save attached patch file to your system(e.g. /tmp). 2. Patch and build. #cd /usr/src #patch -p0 < /path/to/patchfile #cd /usr/src/sys/modules/sound/driver/maestro3 #make 3. Load built module and experiment it. #kldload ./snd_maestro3.ko 4. It the driver works then install it. #make install Please let me know how it goes on your system. -- Regards, Pyun YongHyeon --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="maestro3.resource.diff2" --- sys/dev/sound/pci/maestro3.c.orig Fri Jul 16 12:59:27 2004 +++ sys/dev/sound/pci/maestro3.c Wed Jul 13 10:02:46 2005 @@ -1105,19 +1105,21 @@ } } + pci_enable_busmaster(dev); data = pci_read_config(dev, PCIR_COMMAND, 2); - data |= (PCIM_CMD_PORTEN | PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN); + data |= (PCIM_CMD_PORTEN | PCIM_CMD_MEMEN); pci_write_config(dev, PCIR_COMMAND, data, 2); sc->regid = PCIR_BAR(0); - sc->regtype = SYS_RES_MEMORY; + data = pci_read_config(dev, PCIR_COMMAND, 2); + device_printf(dev,"PCIR_COMMAND = 0x%x\n", data); + sc->regtype = SYS_RES_IOPORT; + if ((data & PCIM_CMD_PORTEN) == 0) { + sc->regtype = SYS_RES_MEMORY; + device_printf(dev,"using memory mapped I/O\n"); + } sc->reg = bus_alloc_resource_any(dev, sc->regtype, &sc->regid, RF_ACTIVE); - if (!sc->reg) { - sc->regtype = SYS_RES_IOPORT; - sc->reg = bus_alloc_resource_any(dev, sc->regtype, &sc->regid, - RF_ACTIVE); - } if (!sc->reg) { device_printf(dev, "unable to allocate register space\n"); goto bad; --5mCyUwZo2JvN/JJP--