From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 20 08:54:35 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 C503816A4CE for ; Mon, 20 Sep 2004 08:54:35 +0000 (GMT) Received: from ALPHA6.ITS.MONASH.EDU.AU (alpha6.its.monash.edu.au [130.194.1.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8159A43D2F for ; Mon, 20 Sep 2004 08:54:35 +0000 (GMT) (envelope-from bawig1@student.monash.edu) Received: from localhost ([130.194.13.87]) by vaxc.its.monash.edu.au (PMDF V6.1 #39306) with ESMTP id <01LF3MX22IY69LUZZ6@vaxc.its.monash.edu.au> for freebsd-multimedia@freebsd.org; Mon, 20 Sep 2004 18:54:30 +1000 Received: from curly.its.monash.edu.au (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id CFCA8AB542 for ; Mon, 20 Sep 2004 18:54:29 +1000 (EST) Received: from localhost.localdomaincurly.its.monash.edu.au ; Mon, 20 Sep 2004 18:54:29 +1000 (EST) Date: Mon, 20 Sep 2004 08:54:29 +0000 From: Brett Wiggins To: freebsd-multimedia@freebsd.org Message-id: <220.253.59.244.1095670355.66041@my.monash.edu.au> MIME-version: 1.0 X-Mailer: my.monash Portal Mail Reader Content-type: text/plain Content-transfer-encoding: 7BIT Content-disposition: inline Subject: fxtv user manual 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: Mon, 20 Sep 2004 08:54:35 -0000 Hi, Is there a user manual for fxtv? I have read the README file and can get numerous channels. I am however having problems recording. Thanks Brett From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 21 03:24:39 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 ACD5B16A4CE for ; Tue, 21 Sep 2004 03:24:39 +0000 (GMT) Received: from pandora.afflictions.org (asylum.afflictions.org [64.7.134.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id C86CF43D49 for ; Tue, 21 Sep 2004 03:24:38 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from localhost (localhost [127.0.0.1]) by pandora.afflictions.org (Postfix) with ESMTP id F1BE178C55 for ; Mon, 20 Sep 2004 23:25:41 -0400 (EDT) Received: from dementia.afflictions.org (dementia.afflictions.org [172.19.206.56]) by pandora.afflictions.org (Postfix) with ESMTP id 7D5B278C35 for ; Mon, 20 Sep 2004 23:25:37 -0400 (EDT) Received: by dementia.afflictions.org (Postfix, from userid 1001) id 746391703D; Mon, 20 Sep 2004 23:25:29 -0400 (EDT) Date: Mon, 20 Sep 2004 23:25:29 -0400 From: Damian Gerow To: multimedia@freebsd.org Message-ID: <20040921032528.GM28638@afflictions.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 5.3-BETA3 on a i386 X-GPG-Fingerprint: B3D7 D901 A53A 1A99 BFD6 E6DF 9F3B 742B C288 9CC9 User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at afflictions.org Subject: Envy24 drivers 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: Tue, 21 Sep 2004 03:24:39 -0000 Some time ago, someone posted the start to an Envy24 driver (woohoo!). I'm interested in picking up the work on this, but I've a few obstacles to overcome first (namely, learning C...). Has anyone done any work on this driver? Is it still in the same state it was posted in? From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 21 15:10:26 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 397A516A4DA for ; Tue, 21 Sep 2004 15:10:26 +0000 (GMT) Received: from mwinf0407.wanadoo.fr (smtp4.wanadoo.fr [193.252.22.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF3F743D62 for ; Tue, 21 Sep 2004 15:10:13 +0000 (GMT) (envelope-from djdomics@wanadoo.fr) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0407.wanadoo.fr (SMTP Server) with SMTP id DD8F3180011D for ; Tue, 21 Sep 2004 17:10:12 +0200 (CEST) Received: from [172.20.0.241] (AAubervilliers-152-1-40-143.w83-114.abo.wanadoo.fr [83.114.166.143]) by mwinf0407.wanadoo.fr (SMTP Server) with ESMTP id 4B6B418000A7 for ; Tue, 21 Sep 2004 17:10:12 +0200 (CEST) From: Goncalves Dominique To: freebsd-multimedia@freebsd.org Content-Type: text/plain Date: Tue, 21 Sep 2004 17:10:10 +0200 Message-Id: <1095779410.9001.7.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Problem using qcamview with Quickcam Express 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: Tue, 21 Sep 2004 15:10:26 -0000 Hi I have a quickcam express Logitech, on FreeBSD 5.2.1-RELEASE-p10, and installed from the ports qcamview. Here some informations: %pkg_info |grep qcamview qcamview-0.40d Logitech Quickcam Express USB Utilities for NetBSD/FreeBSD %dmesg | grep ugen ugen0: Logitech Camera, rev 1.10/1.00, addr 2 %pkg_info | grep gtk-1 gtk-1.2.10_12 Gimp Toolkit for X11 GUI (previous stable version) To use my webcam I have followed this page http://www2.starcat.ne.jp/~takam/bsd/NetBSD.html#qcam when I try to use my webcam i have this : %qcamview /dev/ugen0 Gtk-WARNING **: Unable to locate loadable module in module_path: "libthinice.so" , Gtk-WARNING **: Unable to locate loadable module in module_path: "libpixmap.so", Gtk-WARNING **: Unable to locate loadable module in module_path: "libpixmap.so", USB Quickcam camera found using: $Id: quickcam.c,v 1.111 2003/01/27 09:41:03 tuu kkat Exp $ + BSD patch 0.04 quickcam: probe of HDCS1000 sensor = 10 00 id: 08 quickcam: probe of BP100 sensor = 00 10 id: 64 quickcam: probe of VV6410 sensor = 00 10 id: 19 quickcam: probe of HDCS1020 sensor = 10 10 id: 10 quickcam: HDCS1020 sensor detected /Segmentation fault (core dumped) And when I try to capture image : %qcamshot /dev/ugen0 > output.ppm USB Quickcam camera found using: $Id: quickcam.c,v 1.111 2003/01/27 09:41:03 tuukkat Exp $ + BSD patch 0.04 quickcam: probe of HDCS1000 sensor = 10 00 id: 08 quickcam: probe of BP100 sensor = 00 10 id: 64 quickcam: probe of VV6410 sensor = 00 10 id: 19 quickcam: probe of HDCS1020 sensor = 10 10 id: 10 quickcam: HDCS1020 sensor detected grabbing error: grabbing size = 0 Closing Qcam Express.....Done. %ls -l output.ppm -rw-r--r-- 1 dom dom 0 21 sep 17:00 output.ppm Any help is apprecied. --DomiX From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 22 07:42:20 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 60DB116A4CE for ; Wed, 22 Sep 2004 07:42:20 +0000 (GMT) Received: from fe07.axelero.hu (fe07.axelero.hu [195.228.240.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 584A443D39 for ; Wed, 22 Sep 2004 07:42:19 +0000 (GMT) (envelope-from Gabor@Zahemszky.HU) Received: from fe07 (localhost-02 [127.0.2.1]) by fe07.axelero.hu (8.12.11/8.12.11) with SMTP id i8M7gITf056677 for ; Wed, 22 Sep 2004 09:42:18 +0200 (CEST) Received: from fe07.axelero.hu [127.0.2.1] via SMTP gateway by fe07 [195.228.240.95]; id A0DD5EC3D8F at Wed, 22 Sep 2004 09:42:17 +0200 Received: from [192.168.1.2] (78.193-182-adsl-pool.axelero.hu [81.182.193.78]) by fe07.axelero.hu (8.12.11/8.12.11) with ESMTP id i8M7gGPX056614 for ; Wed, 22 Sep 2004 09:42:17 +0200 (CEST) Message-ID: <41512E2D.6080907@Zahemszky.HU> Date: Wed, 22 Sep 2004 09:47:57 +0200 From: =?ISO-8859-2?Q?Zahemszky_G=E1bor?= User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040909) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed X-RAVMilter-Version: 8.4.3(snapshot 20030217) (fe07.axelero.hu) Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by fe07.axelero.hu id i8M7gGPX056614 Subject: Maestro3 and 5.3-beta5 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: Wed, 22 Sep 2004 07:42:20 -0000 Hi! Yesterday I upgraded my HP Omnibook 6000 from 5.2.1-p9 to 5.3-beta5.=20 Generated a new world and kernel, with "portupgrade -a -f" I recompiled=20 everything, and after it the sound card looks bad. In dmseg it says: pcm0: port 0x1400-0x14ff mem=20 0xf4000000-0xf4001fff irq 5 at device 13.0 on pci0 pcm0: failed: rid 0x10 is ioport, requested 3 pcm0: [GIANT-LOCKED] pcm0: And if I play something (eg. ogg123 file.ogg), I got: pcm0:play:0: plya interrupt timeout, channel dead and of course, I cannot do anything with the application ( ^C, ^\, ^Z -=20 nothing works). With kill -9, I can kill it. In ps, it looks: MWCHAN: kserel STAT: I+ There is nothing in device.hints related to pcm, and Maestro3 is loaded=20 from loader.conf. Any help or suggestions? Bye, Zahemszky, G=E1bor < Gabor at Zahemszky dot HU > --=20 #!/bin/ksh Z=3D'21N16I25C25E30, 40M30E33E25T15U!' ;IFS=3D' ABCDEFGHIJKLMNOPQRSTUVWXY= Z=20 ';set $Z ;for i { [[ $i =3D ? ]]&&print $i&&break;[[ $i =3D ???=20 ]]&&j=3D$i&&i=3D${i%?};typeset -i40 i=3D8#$i;print -n ${i#???};[[ "$j" =3D= ???=20 ]]&&print -n "${j#??} "&&j=3D;typeset +i i;};IFS=3D' 0123456789 ';set $Z;= for=20 i { [[ $i =3D , ]]&&i=3D2;[[ $i =3D ?? ]]||typeset -l i;j=3D"$j $i";types= et +l=20 i;};print "$j" 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-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 23 11:37:18 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 9714F16A4CE for ; Thu, 23 Sep 2004 11:37:18 +0000 (GMT) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7EBC43D2D for ; Thu, 23 Sep 2004 11:37:15 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.1/8.12.11/NinthNine) with SMTP id i8NBbDjt051259; Thu, 23 Sep 2004 20:37:13 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Thu, 23 Sep 2004 20:37:13 +0900 (JST) Message-Id: <200409231137.i8NBbDjt051259@sakura.ninth-nine.com> From: Norikatsu Shigemura To: yongari@kt-is.co.kr In-Reply-To: <20040923024038.GA11717@kt-is.co.kr> References: <20040923024038.GA11717@kt-is.co.kr> X-Mailer: Sylpheed version 0.9.12-gtk2-20040622 (GTK+ 2.4.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sakura.ninth-nine.com [219.127.74.121]); Thu, 23 Sep 2004 20:37:14 +0900 (JST) cc: freebsd-multimedia@FreeBSD.org cc: gabor@zahemszky.hu Subject: Re: Maestro3 and 5.3-beta5 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: Thu, 23 Sep 2004 11:37:18 -0000 On Thu, 23 Sep 2004 11:40:38 +0900 Pyun YongHyeon wrote: > 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. I was in trouble with this problem, too. So I tested your patch. It looks good with Onkyo SE-120PCI(Maestro3). Would you plase commit to CURRENT and RELENG_5? > 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. So I didn't try to do it. From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 23 12:01:39 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 C6CA516A4CE; Thu, 23 Sep 2004 12:01:39 +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 0EDC443D2D; Thu, 23 Sep 2004 12:01:39 +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 i8NBxtAh052313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 23 Sep 2004 20:59:55 +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 i8NC1634013351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Sep 2004 21:01:07 +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 i8NC15ET013350; Thu, 23 Sep 2004 21:01:05 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Thu, 23 Sep 2004 21:01:05 +0900 From: Pyun YongHyeon To: Norikatsu Shigemura Message-ID: <20040923120105.GC13003@kt-is.co.kr> References: <20040923024038.GA11717@kt-is.co.kr> <200409231137.i8NBbDjt051259@sakura.ninth-nine.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <200409231137.i8NBbDjt051259@sakura.ninth-nine.com> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: freebsd-multimedia@FreeBSD.org cc: gabor@zahemszky.hu 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 12:01:40 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 23, 2004 at 08:37:13PM +0900, Norikatsu Shigemura wrote: > On Thu, 23 Sep 2004 11:40:38 +0900 > Pyun YongHyeon wrote: > > 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. > > I was in trouble with this problem, too. So I tested your > patch. It looks good with Onkyo SE-120PCI(Maestro3). > Would you plase commit to CURRENT and RELENG_5? > Yes, I have plans to do it. But it's just part of other commits pending which would be committed after 5.3R. The reason I didn't commit it was lack of time. If you want to commit it please go ahead. Almost all audio drivers's code for sndbuf_alloc() call should be corrected. And possible memory leak in sound(4) should be fixed too. I have attached patch file and it was reviewed by truckman, mat.(Since the patch was tested on sparc64, you may have to add cast (unsigned long) in sndbuf_setmap() patch.) I'll not be reachable until Oct 1. Regards, Pyun YongHyeon -- Pyun YongHyeon --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="pcm.patch" --- sys/dev/sound/pcm/buffer.c.orig Thu Apr 29 11:51:59 2004 +++ sys/dev/sound/pcm/buffer.c Mon Aug 30 20:21:10 2004 @@ -61,11 +61,12 @@ struct snd_dbuf *b = (struct snd_dbuf *)arg; if (bootverbose) { - device_printf(b->dev, "sndbuf_setmap %lx, %lx; ", (unsigned long)segs->ds_addr, - (unsigned long)segs->ds_len); - printf("%p -> %lx\n", b->buf, (unsigned long)vtophys(b->buf)); + device_printf(b->dev, "sndbuf_setmap %lx, %lx; ", + segs[0].ds_addr, segs[0].ds_len); + printf("%p -> %lx\n", b->buf, segs[0].ds_addr); } - b->buf_addr = segs->ds_addr; + if ((b->map_error = error) == 0) + b->buf_addr = segs[0].ds_addr; } /* @@ -76,14 +77,26 @@ int sndbuf_alloc(struct snd_dbuf *b, bus_dma_tag_t dmatag, unsigned int size) { + int ret; + b->dmatag = dmatag; b->maxsize = size; b->bufsize = b->maxsize; - if (bus_dmamem_alloc(b->dmatag, (void **)&b->buf, BUS_DMA_NOWAIT, &b->dmamap)) - return ENOSPC; - if (bus_dmamap_load(b->dmatag, b->dmamap, b->buf, b->maxsize, sndbuf_setmap, b, 0)) - return ENOSPC; - return sndbuf_resize(b, 2, b->maxsize / 2); + b->map_error = 0; + if (bus_dmamem_alloc(b->dmatag, (void **)&b->buf, BUS_DMA_NOWAIT, + &b->dmamap)) + return (ENOMEM); + if (bus_dmamap_load(b->dmatag, b->dmamap, b->buf, b->maxsize, + sndbuf_setmap, b, 0) != 0 || b->map_error != 0) { + bus_dmamem_free(b->dmatag, b->buf, b->dmamap); + b->dmamap = NULL; + return (ENOMEM); + } + + ret = sndbuf_resize(b, 2, b->maxsize / 2); + if (ret != 0) + sndbuf_free(b); + return (ret); } int @@ -92,6 +105,7 @@ b->buf = buf; b->maxsize = size; b->bufsize = b->maxsize; + b->map_error = 0; return sndbuf_resize(b, 2, b->maxsize / 2); } --- sys/dev/sound/pcm/buffer.h.orig Wed Jan 28 17:02:15 2004 +++ sys/dev/sound/pcm/buffer.h Sat Aug 28 17:35:46 2004 @@ -52,6 +52,7 @@ bus_dmamap_t dmamap; bus_dma_tag_t dmatag; u_int32_t buf_addr; + int map_error; struct selinfo sel; struct pcm_channel *channel; char name[SNDBUF_NAMELEN]; --fUYQa+Pmc3FrFX/N-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 23 12:15:49 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 BEACF16A4CE; Thu, 23 Sep 2004 12:15:49 +0000 (GMT) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 398C043D41; Thu, 23 Sep 2004 12:15:49 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.1/8.12.11/NinthNine) with SMTP id i8NCFmL6052191; Thu, 23 Sep 2004 21:15:48 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Thu, 23 Sep 2004 21:15:48 +0900 (JST) Message-Id: <200409231215.i8NCFmL6052191@sakura.ninth-nine.com> From: Norikatsu Shigemura To: yongari@kt-is.co.kr In-Reply-To: <20040923120105.GC13003@kt-is.co.kr> References: <20040923024038.GA11717@kt-is.co.kr> <200409231137.i8NBbDjt051259@sakura.ninth-nine.com> <20040923120105.GC13003@kt-is.co.kr> X-Mailer: Sylpheed version 0.9.12-gtk2-20040622 (GTK+ 2.4.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sakura.ninth-nine.com [219.127.74.121]); Thu, 23 Sep 2004 21:15:48 +0900 (JST) cc: freebsd-multimedia@FreeBSD.org cc: gabor@zahemszky.hu cc: nork@FreeBSD.org Subject: Re: Maestro3 and 5.3-beta5 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: Thu, 23 Sep 2004 12:15:49 -0000 On Thu, 23 Sep 2004 21:01:05 +0900 Pyun YongHyeon wrote: > > > 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. > > I was in trouble with this problem, too. So I tested your > > patch. It looks good with Onkyo SE-120PCI(Maestro3). > > Would you plase commit to CURRENT and RELENG_5? > Yes, I have plans to do it. But it's just part of other commits > pending which would be committed after 5.3R. The reason I didn't Hum... > commit it was lack of time. If you want to commit it please go > ahead. Almost all audio drivers's code for sndbuf_alloc() call Sorry, I am not src committer. > should be corrected. And possible memory leak in sound(4) > should be fixed too. I have attached patch file and it was > reviewed by truckman, mat.(Since the patch was tested on sparc64, > you may have to add cast (unsigned long) in sndbuf_setmap() patch.) This is good news. I am waiting for your fix:-). > I'll not be reachable until Oct 1. Oops, I wonder if this patch will not commit to 5.3-R. From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 23 13:19:35 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 6E46616A4CE for ; Thu, 23 Sep 2004 13:19:35 +0000 (GMT) Received: from web41623.mail.yahoo.com (web41623.mail.yahoo.com [66.218.94.139]) by mx1.FreeBSD.org (Postfix) with SMTP id 42BB343D2D for ; Thu, 23 Sep 2004 13:19:35 +0000 (GMT) (envelope-from strbenjr@yahoo.com) Message-ID: <20040923131935.42768.qmail@web41623.mail.yahoo.com> Received: from [69.143.43.222] by web41623.mail.yahoo.com via HTTP; Thu, 23 Sep 2004 06:19:35 PDT Date: Thu, 23 Sep 2004 06:19:35 -0700 (PDT) From: "Ben H." To: freebsd-multimedia@freebsd.org In-Reply-To: <4145DD31.601@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: sound between BETA4 and 5.3-BETA5 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: Thu, 23 Sep 2004 13:19:35 -0000 FYI... Regarding the message below... When I CVSUPed to 5.3-beta5 [FIVE]... ... all my sound output stopped working! KDE wouldn't make sound Audacity wouldn't output XMMS got an error related to output I performed a port upgrade last night as described in the article below and now all sound seems to work fine. http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html Hope this is useful. __________________________________________________________ Message: 1 Date: Thu, 23 Sep 2004 11:40:38 +0900 From: Pyun YongHyeon Subject: Re: Maestro3 and 5.3-beta5 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 ===== Ben Hacker, Jr. Sr. Security Analyst strbenjr@yahoo.com ben_hacker@inter-op.net 703.418.8004 (w) -- -- -- http://www.coeba.org http://www.inter-op.net http://www.hackerweb.net/bthacker From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 24 15:42:47 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 E73E516A4CE for ; Fri, 24 Sep 2004 15:42:47 +0000 (GMT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7529343D1D for ; Fri, 24 Sep 2004 15:42:47 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from kg-work.kg4.no (68.80-202-174.nextgentel.com [80.202.174.68]) by mail.broadpark.no (Postfix) with SMTP id D55851958 for ; Fri, 24 Sep 2004 17:43:27 +0200 (MEST) Date: Fri, 24 Sep 2004 17:43:21 +0200 From: Torfinn Ingolfsen To: freebsd-multimedia@freebsd.org Message-Id: <20040924174321.0eec3c63.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq;m"_0v;~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: USB Audio on FreeBSD 5.2.1-release? 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: Fri, 24 Sep 2004 15:42:48 -0000 Hei, Are USB audio devices suposed to work without problems under FreeBSD 5.2.1-release? I have a USB Speaker set, when connected to the machine, it is identifed as: # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00 port 2 addr 3:full speed, power 500 mA, config 1, USB Audio(0x0001), C-Media INC.(0x0d8c), rev 0.10 It attaches as (from /var/log/messages): Sep 24 17:02:31 kg-work kernel: uaudio0: audio rev 1.00 Sep 24 17:02:31 kg-work kernel: pcm1: on uaudio0 However, when i try to play a MP3 file (using XMMS) it sounds stuttering or "choppy" if you know what I mean. The same MP3 file sounds fine when played on the internal sound device. I have googled, but couldn't find anything on hw to fix this. BTW, does anybody know how to configure Zinf to use another device than the internal one? Any hints appreciated. -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 24 20:32:51 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 CD54C16A4CE for ; Fri, 24 Sep 2004 20:32:51 +0000 (GMT) Received: from mx01.ewc.edu (mx01.ewc.edu [68.152.80.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id A56D843D1D for ; Fri, 24 Sep 2004 20:32:50 +0000 (GMT) (envelope-from mjoyner@vbservices.net) Received: from [192.168.4.160] ([68.152.80.161]) by mx01.ewc.edu (8.12.9p2/8.12.9) with ESMTP id i8OKWjxg087802; Fri, 24 Sep 2004 16:32:46 -0400 (EDT) (envelope-from mjoyner@vbservices.net) Message-ID: <41548467.1090105@vbservices.net> Date: Fri, 24 Sep 2004 16:32:39 -0400 From: Michael Joyner User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040906 X-Accept-Language: en-us, en MIME-Version: 1.0 To: jobert@pinoymusic.org References: <20040820044504.14121.qmail@web60402.mail.yahoo.com> In-Reply-To: <20040820044504.14121.qmail@web60402.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new cc: freebsd-multimedia@freebsd.org Subject: Re: iso 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: Fri, 24 Sep 2004 20:32:51 -0000 Jobert wrote: > Hello good day; > > Anyone help me how to mount vcd or how to copy a vcd. > Thanks on advance > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" man cdrdao From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 24 21:35:26 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 CFCFE16A4CF for ; Fri, 24 Sep 2004 21:35:26 +0000 (GMT) Received: from hak.cnd.mcgill.ca (hak.cnd.McGill.CA [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 076CD43D45 for ; Fri, 24 Sep 2004 21:35:26 +0000 (GMT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i8OLg31M065824; Fri, 24 Sep 2004 17:42:04 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i8OLg3wh065823; Fri, 24 Sep 2004 17:42:03 -0400 (EDT) Date: Fri, 24 Sep 2004 17:42:02 -0400 From: Mathew Kanner To: Torfinn Ingolfsen Message-ID: <20040924214202.GA65403@cnd.mcgill.ca> References: <20040924174321.0eec3c63.torfinn.ingolfsen@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040924174321.0eec3c63.torfinn.ingolfsen@broadpark.no> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.62 X-Spam-Checker-Version: SpamAssassin 2.62 (2004-01-11) on hak.cnd.mcgill.ca cc: freebsd-multimedia@freebsd.org Subject: Re: USB Audio on FreeBSD 5.2.1-release? 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: Fri, 24 Sep 2004 21:35:27 -0000 On Sep 24, Torfinn Ingolfsen wrote: > Hei, > > Are USB audio devices suposed to work without problems under FreeBSD > 5.2.1-release? > > I have a USB Speaker set, when connected to the machine, it is identifed > as: > # usbdevs -v > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), > SiS(0x0000), rev 1.00 > port 2 addr 3:full speed, power 500 mA, config 1, USB Audio(0x0001), > C-Media INC.(0x0d8c), rev 0.10 > > It attaches as (from /var/log/messages): > Sep 24 17:02:31 kg-work kernel: uaudio0: audio rev 1.00 > Sep 24 17:02:31 kg-work kernel: pcm1: on uaudio0 > > However, when i try to play a MP3 file (using XMMS) it sounds stuttering > or "choppy" if you know what I mean. > The same MP3 file sounds fine when played on the internal sound device. There are some tests you can try out. Use mplayer to play mp3s and force the output to 48khz There are problems with USB audio. Could you try http://www.cnd.mcgill.ca/~mat/uaudio-netbsd177.diff.bz2 Something that I was working on a couple of weeks ago. You should sysctl hw.usb.uadion.delay=0 You'll loose the mixer but it should report the speed a little better and I think they (netbsd) improved the packet size calculation. It also picks up the endpoints better (iirc). --Mat -- Canada is a country whose main exports are hockey players and cold fronts. Our main imports are baseball players and acid rain. - Pierre Elliott Trudeau From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 25 16:47:42 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 EE8A916A4CE for ; Sat, 25 Sep 2004 16:47:42 +0000 (GMT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7324C43D58 for ; Sat, 25 Sep 2004 16:47:42 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from kg-work.kg4.no (68.80-202-174.nextgentel.com [80.202.174.68]) by mail.broadpark.no (Postfix) with SMTP id 152E06224 for ; Sat, 25 Sep 2004 18:48:23 +0200 (MEST) Date: Sat, 25 Sep 2004 18:46:06 +0200 From: Torfinn Ingolfsen To: freebsd-multimedia@freebsd.org Message-Id: <20040925184606.1944f49d.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20040924214202.GA65403@cnd.mcgill.ca> References: <20040924174321.0eec3c63.torfinn.ingolfsen@broadpark.no> <20040924214202.GA65403@cnd.mcgill.ca> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq;m"_0v;~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: USB Audio on FreeBSD 5.2.1-release? 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, 25 Sep 2004 16:47:43 -0000 On Fri, 24 Sep 2004 17:42:02 -0400 Mathew Kanner wrote: > There are some tests you can try out. Use mplayer to play > mp3s and force the output to 48khz I must be stupid, I coldn't find out how to force mplayer audio output to 48kHz. > http://www.cnd.mcgill.ca/~mat/uaudio-netbsd177.diff.bz2 I tried this patch, but so far it hasn't helped much. The soud is the same as before, and my machine freezes up when I hit the stop button in XMMS. I just rebuilt the snd_uaudio module. Do I need to rebuild the kernel also? > sysctl hw.usb.uadion.delay=0 My kernel doesn't seem to have any hw.usb.* variables. -- Regards, Torfinn Ingolfsen, Norway