From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 23 02:41:12 2004 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 D8C1E16A4CE for ; Thu, 23 Sep 2004 02:41:12 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 375A143D39 for ; Thu, 23 Sep 2004 02:41:12 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i8N2dVAh027721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 23 Sep 2004 11:39:31 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i8N2ee34011911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Sep 2004 11:40:40 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i8N2ecWQ011910; Thu, 23 Sep 2004 11:40:38 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Thu, 23 Sep 2004 11:40:38 +0900 From: Pyun YongHyeon To: gabor@zahemszky.hu Message-ID: <20040923024038.GA11717@kt-is.co.kr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: freebsd-multimedia@freebsd.org Subject: Re: Maestro3 and 5.3-beta5 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 02:41:13 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Since it worked before, it sounds like DMA buffer allocation issue. Can you try attached patch? It doesn't fix your issue but it checks return code correctly and we can know whether DMA buffer allocation was successful or not. If DMA buffer allocation was successful I have no idea. If you see DMA buffer allocation failure you probably can workaround the issue like this: Step 1. Make static kernel with your sound drivers. Step 2. add vm.old_contigmalloc=1 in /etc/sysctl.conf If you needed step2, maestro3 driver needs rewriting for its memory management code. Cheers, Pyun YongHyeon -- Pyun YongHyeon --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="maestro3.patch" --- sys/dev/sound/pci/maestro3.c.orig Mon Jul 26 20:32:39 2004 +++ sys/dev/sound/pci/maestro3.c Thu Sep 23 11:34:57 2004 @@ -383,7 +383,7 @@ ch->channel = c; ch->fmt = AFMT_U8; ch->spd = DSP_DEFAULT_SPEED; - if (sndbuf_alloc(ch->buffer, sc->parent_dmat, sc->bufsz) == -1) { + if (sndbuf_alloc(ch->buffer, sc->parent_dmat, sc->bufsz) != 0) { device_printf(sc->dev, "m3_pchan_init chn_allocbuf failed\n"); return NULL; } @@ -663,7 +663,7 @@ ch->channel = c; ch->fmt = AFMT_U8; ch->spd = DSP_DEFAULT_SPEED; - if (sndbuf_alloc(ch->buffer, sc->parent_dmat, sc->bufsz) == -1) { + if (sndbuf_alloc(ch->buffer, sc->parent_dmat, sc->bufsz) != 0) { device_printf(sc->dev, "m3_rchan_init chn_allocbuf failed\n"); return NULL; } --G4iJoqBmSsgzjUCe--