From owner-freebsd-multimedia@FreeBSD.ORG Sun Aug 28 21:46: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 7A72F16A420 for ; Sun, 28 Aug 2005 21:46:34 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5BA043D7D for ; Sun, 28 Aug 2005 21:46:18 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0ILY004SNCKGP9D0@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Sun, 28 Aug 2005 23:48:16 +0200 (CEST) Received: from kg-work.kg4.no ([80.202.174.153]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0ILY0047CCMK1UB0@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Sun, 28 Aug 2005 23:49:33 +0200 (CEST) Date: Sun, 28 Aug 2005 23:46:13 +0200 From: Torfinn Ingolfsen 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 To: freebsd-multimedia@freebsd.org Message-id: <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Sound patches and volume problems? 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: Sun, 28 Aug 2005 21:46:34 -0000 Hello! I installed the massive sound patches from http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ on a laptop running an up-to-date 5.4-stable: tingo@kg-jobbpc3$ uname -a FreeBSD kg-jobbpc3.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #3: Thu Aug 25 23:20:08 CEST 2005 root@kg-jobbpc3.kg4.no:/storage/usr/obj/storage/usr/src/sys/T41_NOUHID i386 The patches lets FreeBSD detect all the usb audio devices that I have; this is good. However, there seems to be some problems with the volume controls... it seems like the volume is ... sort of relative now, not absolute. And when I adjust volume, equalizer settings etc, it seems lie the volume gets ... well, lost, and gets louder all the time, until finally I have to shut down xmms to save my speakers / headphones. The last device tested was a set of USB speakers from Jazz Speakers (model no. J1116U), and theyu have the same problem. Here are the lines from /var/loig/messages showing how the speakers are detected: Aug 28 23:06:53 kg-jobbpc3 kernel: ugen0: C-Media INC. USB Audio, rev 1.10/0.10, addr 2 Aug 28 23:08:10 kg-jobbpc3 kernel: ugen0: at uhub1 port 2 (addr 2) disconnected Aug 28 23:08:10 kg-jobbpc3 kernel: ugen0: detached Aug 28 23:08:17 kg-jobbpc3 kernel: uaudio0: C-Media INC. USB Audio, rev 1.10/0.10, addr 2 Aug 28 23:08:17 kg-jobbpc3 kernel: uaudio0: audio rev 1.00 Aug 28 23:08:17 kg-jobbpc3 kernel: pcm1: on uaudio0 Aug 28 23:08:17 kg-jobbpc3 kernel: record channel supported format list invalid Aug 28 23:08:17 kg-jobbpc3 kernel: pcm1: chn_init(pcm1:record:0) failed: err = 19 Aug 28 23:08:17 kg-jobbpc3 kernel: pcm1: pcm_chn_create(ua_chan, -1, 0xc2f12a00) failed Currently, I have only tested with xmms, because there is no easy way in zinf to chenge output device. I'm sorry that my little "problem report" isn't more accurate, but so far I'm just seeing the symptoms, and don't know where to start looking for the problems yet. -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Sun Aug 28 23:26:09 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 3020716A41F for ; Sun, 28 Aug 2005 23:26:09 +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 9E1C743D48 for ; Sun, 28 Aug 2005 23:26:08 +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 9DA5C6CC32; Mon, 29 Aug 2005 07:32:57 +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 58141-08; Mon, 29 Aug 2005 07:32:56 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [219.95.39.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E8A046CC2F; Mon, 29 Aug 2005 07:32:55 +0800 (MYT) Date: Mon, 29 Aug 2005 07:26:13 +0800 From: Ariff Abdullah To: Torfinn Ingolfsen Message-Id: <20050829072613.3eb2b46e.skywizard@MyBSD.org.my> In-Reply-To: <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> References: <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> 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-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound patches and volume problems? 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: Sun, 28 Aug 2005 23:26:09 -0000 On Sun, 28 Aug 2005 23:46:13 +0200 Torfinn Ingolfsen wrote: > Hello! > > I installed the massive sound patches from > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ > > on a laptop running an up-to-date 5.4-stable: > tingo@kg-jobbpc3$ uname -a > FreeBSD kg-jobbpc3.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #3: Thu Aug > 25 23:20:08 CEST 2005 > root@kg-jobbpc3.kg4.no:/storage/usr/obj/storage/usr/src/sys/T41_NOU > HID i386 > > The patches lets FreeBSD detect all the usb audio devices that I > have; this is good. > > However, there seems to be some problems with the volume controls... > it seems like the volume is ... sort of relative now, not absolute. > And when I adjust volume, equalizer settings etc, it seems lie the > volume gets ... well, lost, and gets louder all the time, until > finally I have to shut down xmms to save my speakers / headphones. > > The last device tested was a set of USB speakers from Jazz Speakers > (model no. J1116U), and theyu have the same problem. > Here are the lines from /var/loig/messages showing how the speakers > are detected: > Aug 28 23:06:53 kg-jobbpc3 kernel: ugen0: C-Media INC. USB Audio, > rev 1.10/0.10, addr 2 Aug 28 23:08:10 kg-jobbpc3 kernel: ugen0: at > uhub1 port 2 (addr 2) disconnected Aug 28 23:08:10 kg-jobbpc3 > kernel: ugen0: detached Aug 28 23:08:17 kg-jobbpc3 kernel: uaudio0: > C-Media INC. USB Audio, rev 1.10/0.10, addr 2 Aug 28 23:08:17 > kg-jobbpc3 kernel: uaudio0: audio rev 1.00 Aug 28 23:08:17 > kg-jobbpc3 kernel: pcm1: on uaudio0 Aug 28 23:08:17 > kg-jobbpc3 kernel: record channel supported format list invalid Aug > 28 23:08:17 kg-jobbpc3 kernel: pcm1: chn_init(pcm1:record:0) failed: > err = 19 Aug 28 23:08:17 kg-jobbpc3 kernel: pcm1: > pcm_chn_create(ua_chan, -1, 0xc2f12a00) failed > > Currently, I have only tested with xmms, because there is no easy > way in zinf to chenge output device. > > I'm sorry that my little "problem report" isn't more accurate, but > so far I'm just seeing the symptoms, and don't know where to start > looking for the problems yet. -- > Regards, > Torfinn Ingolfsen, > Norway > Unfortunately, this is pretty much usb audio specific and I don't have any of it. People with this kind of hardware probably could tell you more, but I do suspect it's all about incorrect volume resolution or perhaps volume miscalculation within uaudio.c. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Mon Aug 29 05:34:01 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 8946616A41F for ; Mon, 29 Aug 2005 05:34:01 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from pandora.afflictions.org (asylum.afflictions.org [64.7.134.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 171A343D4C for ; Mon, 29 Aug 2005 05:34:00 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from localhost (localhost [127.0.0.1]) by pandora.afflictions.org (Postfix) with ESMTP id EA35B78C5D; Mon, 29 Aug 2005 01:38:59 -0400 (EDT) Received: from pandora.afflictions.org ([127.0.0.1]) by localhost (pandora.afflictions.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 45973-08; Mon, 29 Aug 2005 01:38:37 -0400 (EDT) Received: from dementia.afflictions.org (dementia.afflictions.org [172.19.206.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pandora.afflictions.org (Postfix) with ESMTP id 4039078C35; Mon, 29 Aug 2005 01:38:35 -0400 (EDT) Received: by dementia.afflictions.org (Postfix, from userid 1001) id CAE2033C30; Mon, 29 Aug 2005 01:33:31 -0400 (EDT) Date: Mon, 29 Aug 2005 01:33:31 -0400 From: Damian Gerow To: Alexander Leidinger Message-ID: <20050829053331.GG42469@afflictions.org> References: <20050826120035.6FADB16A438@hub.freebsd.org> <4.3.2.7.2.20050826084734.01f78508@mail.qconline.com> <20050826161527.15f48542@Magellan.Leidinger.net> <20050827003806.GI52270@afflictions.org> <20050827122945.5574328d@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050827122945.5574328d@Magellan.Leidinger.net> X-GPG-Fingerprint: B3D7 D901 A53A 1A99 BFD6 E6DF 9F3B 742B C288 9CC9 User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at pandora.afflictions.org Cc: freebsd-multimedia@freebsd.org Subject: Re: quality soundcard 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: Mon, 29 Aug 2005 05:34:01 -0000 Thus spake Alexander Leidinger (Alexander@Leidinger.net) [27/08/05 07:06]: : http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/oss.html : but don't be surprised if it doesn't explain the current way of : writting a sound driver. : : If you find something wrong, please report it here and/or in our PR : database. Much better would be a patch which corrects the error, but : just a report about outdated content is better than not knowing about : the problem at all. This might be a dumb question, but hasn't there been substantial changes to pcm since FreeBSD 4.4? As a matter of curiousity, are skywizard's changes going to be incorporated into the tree at any point in time? He's done some work that would be very nice to have for some of the higher-end sound cards. - Damian From owner-freebsd-multimedia@FreeBSD.ORG Mon Aug 29 11:02:12 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 465F916A423 for ; Mon, 29 Aug 2005 11:02:12 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8A4943D45 for ; Mon, 29 Aug 2005 11:02:11 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7TB2BCM021555 for ; Mon, 29 Aug 2005 11:02:11 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7TB2AHA021549 for freebsd-multimedia@freebsd.org; Mon, 29 Aug 2005 11:02:10 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 29 Aug 2005 11:02:10 GMT Message-Id: <200508291102.j7TB2AHA021549@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 29 Aug 2005 11:02:12 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/12/26] kern/60599 multimedia [sound] [partial patch] No sound for ATI 1 problem total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Aug 29 12:59:23 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 6742616A47C for ; Mon, 29 Aug 2005 12:59:21 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96EFE43D4C for ; Mon, 29 Aug 2005 12:59:15 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5CD12.dip.t-dialin.net [84.165.205.18]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7TCoB4Y003582; Mon, 29 Aug 2005 14:50:27 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7TCvviK076816; Mon, 29 Aug 2005 14:57:57 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.31 ([141.113.101.31]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Mon, 29 Aug 2005 14:57:57 +0200 Message-ID: <20050829145757.kl7yfcyog8k0ocow@netchild.homeip.net> X-Priority: 3 (Normal) Date: Mon, 29 Aug 2005 14:57:57 +0200 From: Alexander Leidinger To: Damian Gerow References: <20050826120035.6FADB16A438@hub.freebsd.org> <4.3.2.7.2.20050826084734.01f78508@mail.qconline.com> <20050826161527.15f48542@Magellan.Leidinger.net> <20050827003806.GI52270@afflictions.org> <20050827122945.5574328d@Magellan.Leidinger.net> <20050829053331.GG42469@afflictions.org> In-Reply-To: <20050829053331.GG42469@afflictions.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: quality soundcard 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: Mon, 29 Aug 2005 12:59:26 -0000 Damian Gerow wrote: > Thus spake Alexander Leidinger (Alexander@Leidinger.net) [27/08/05 07:06]: > : http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/oss.html > : but don't be surprised if it doesn't explain the current way of > : writting a sound driver. > : > : If you find something wrong, please report it here and/or in our PR > : database. Much better would be a patch which corrects the error, but > : just a report about outdated content is better than not knowing about > : the problem at all. > > This might be a dumb question, but hasn't there been substantial changes to > pcm since FreeBSD 4.4? I think the most intrusive change was the SMP locking. So you should compare with other drivers while working on your own one. > As a matter of curiousity, are skywizard's changes going to be incorporated > into the tree at any point in time? He's done some work that would be very > nice to have for some of the higher-end sound cards. Some changes are already in -current. I've asked him to split his most recent patchset into "fixes" and "new features". I will try to commit the fixes this week. I also want to commit the new features (slave channels), but I want t get time to review and at least partially understand what he does before I commit it. Some of the changes which are in -current need to be changed (e.g. allow an ordinary user to switch to digital out instead of having it as a root-only switch) before we can think about merging them back to -stable. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 If a listener nods his head when you're explaining your program, wake him up. From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 00:57:50 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECBD716A41F; Wed, 31 Aug 2005 00:57:50 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A947843D4C; Wed, 31 Aug 2005 00:57:50 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7V0vo7D028110; Wed, 31 Aug 2005 00:57:50 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7V0vohH028106; Wed, 31 Aug 2005 00:57:50 GMT (envelope-from gnats) Date: Wed, 31 Aug 2005 00:57:50 GMT From: GNU GNATS Message-Id: <200508310057.j7V0vohH028106@freefall.freebsd.org> To: gnats@FreeBSD.org, sound@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/38795: [sound] kldunload of snd_ess, snd_sb16, snd_sb8 panics system 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: Wed, 31 Aug 2005 00:57:51 -0000 Synopsis: [sound] kldunload of snd_ess, snd_sb16, snd_sb8 panics system Responsible-Changed-From-To: sound->freebsd-multimedia Responsible-Changed-By: gnats Responsible-Changed-When: Wed Aug 31 00:57:03 GMT 2005 Responsible-Changed-Why: Reassign to more well-known mailing list. http://www.freebsd.org/cgi/query-pr.cgi?pr=38795 From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 07:07:53 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 67F5D16A420 for ; Wed, 31 Aug 2005 07:07:53 +0000 (GMT) (envelope-from pge@netuse.de) Received: from mail0.netuse.de (radius1.ki.wlan.netuse.net [195.244.244.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C3B543D46 for ; Wed, 31 Aug 2005 07:07:51 +0000 (GMT) (envelope-from pge@netuse.de) Received: from netuse.de (boss [192.168.254.12]) by mail0.netuse.de (8.12.11/8.12.10) with ESMTP id j7V77n3N015098 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 31 Aug 2005 09:07:49 +0200 (CEST) Received: from raysrv1.intern.netuse.de (raysrv1 [192.168.254.67]) by netuse.de (8.12.10/8.12.10) with ESMTP id j7V77mt4020010 for ; Wed, 31 Aug 2005 09:07:48 +0200 (MEST) Received: from raysrv1.intern.netuse.de (localhost [127.0.0.1]) by raysrv1.intern.netuse.de (8.12.10+Sun/8.12.2) with ESMTP id j7V77mox010712 for ; Wed, 31 Aug 2005 09:07:48 +0200 (MEST) Received: (from pge@localhost) by raysrv1.intern.netuse.de (8.12.10+Sun/8.12.10/Submit) id j7V77mJK010711 for freebsd-multimedia@freebsd.org; Wed, 31 Aug 2005 09:07:48 +0200 (MEST) Date: Wed, 31 Aug 2005 09:07:48 +0200 From: Pia Gerhardt To: freebsd-multimedia@freebsd.org Message-ID: <20050831070748.GA10153@raysrv1.netuse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.31.1.0; VDF 6.31.1.198 X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.31.1.0; VDF 6.31.1.198 Subject: uaudio fullduplex on 5.4-RELEASE? 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: Wed, 31 Aug 2005 07:07:53 -0000 Hi, I installed a 5.4-RELEASE over ftp just yesterday, and managed to make uaudio output work on my logitech 350 USB headset with a minor patch. I was wondering if there is some way to make fullduplex on uaudio work in this release. Any hints are welcome. Regards, Pia Gerhardt From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 09:53:11 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 ED65A16A41F for ; Wed, 31 Aug 2005 09:53:11 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5971843D45 for ; Wed, 31 Aug 2005 09:53:10 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5DFCC.dip.t-dialin.net [84.165.223.204]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7V9i64s022960; Wed, 31 Aug 2005 11:44:17 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7V9qF6C063561; Wed, 31 Aug 2005 11:52:16 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.31 ([141.113.101.31]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Wed, 31 Aug 2005 11:52:15 +0200 Message-ID: <20050831115215.6fx8wellc0cs8s8g@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 31 Aug 2005 11:52:15 +0200 From: Alexander Leidinger To: Pia Gerhardt References: <20050831070748.GA10153@raysrv1.netuse.de> In-Reply-To: <20050831070748.GA10153@raysrv1.netuse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio fullduplex on 5.4-RELEASE? 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: Wed, 31 Aug 2005 09:53:12 -0000 Pia Gerhardt wrote: > Hi, > I installed a 5.4-RELEASE over ftp just yesterday, and > managed to make uaudio output work on my logitech 350 > USB headset with a minor patch. I was wondering if there > is some way to make fullduplex on uaudio work in this > release. Some USB chips have problems with fullduplex operation. Because of this it's disabled by default. AFAIK it's not known if it is a problem with our USB subsystem or not. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 To see you is to sympathize. From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 11:42:01 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 8AF8416A41F for ; Wed, 31 Aug 2005 11:42:01 +0000 (GMT) (envelope-from clemens@ladisch.de) Received: from mailgate.uni-halle.de (mailgate.urz.uni-halle.de [141.48.3.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 223C543D49 for ; Wed, 31 Aug 2005 11:42:00 +0000 (GMT) (envelope-from clemens@ladisch.de) Received: from studcom.urz.uni-halle.de ([141.48.3.19]) by mailgate.uni-halle.de with esmtp (Exim 4.52) id 1EAQyc-00043L-QP ; Wed, 31 Aug 2005 13:41:59 +0200 Received: from localhost (aezr4@localhost) by studcom.urz.uni-halle.de (8.9.3 (PHNE_28760_binary)/8.9.3) with ESMTP id NAA18381; Wed, 31 Aug 2005 13:41:57 +0200 (METDST) X-Authentication-Warning: studcom.urz.uni-halle.de: aezr4 owned process doing -bs Date: Wed, 31 Aug 2005 13:41:57 +0200 (METDST) From: Clemens Ladisch Sender: To: Alexander Leidinger In-Reply-To: <20050831115215.6fx8wellc0cs8s8g@netchild.homeip.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scan-Signature: fa387a8e3d1d0a686ead6772113d72f4 Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio fullduplex on 5.4-RELEASE? 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: Wed, 31 Aug 2005 11:42:01 -0000 Alexander Leidinger wrote: > Some USB chips have problems with fullduplex operation. AFAIK it's > not known if it is a problem with our USB subsystem or not. Which chips? There are devices (some from Edirol and M-Audio) that do not support full duplex with higher sample rates (and where this is documented), but most should work just fine. Regards, Clemens From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 12:01:45 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 042E116A41F for ; Wed, 31 Aug 2005 12:01:45 +0000 (GMT) (envelope-from pge@netuse.de) Received: from mail0.netuse.de (mail0.netuse.de [195.244.244.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4735443D45 for ; Wed, 31 Aug 2005 12:01:43 +0000 (GMT) (envelope-from pge@netuse.de) Received: from netuse.de (boss [192.168.254.12]) by mail0.netuse.de (8.12.11/8.12.10) with ESMTP id j7VC1fFd019154 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 31 Aug 2005 14:01:41 +0200 (CEST) Received: from raysrv4.intern.netuse.de (raysrv4 [192.168.254.75]) by netuse.de (8.12.10/8.12.10) with ESMTP id j7VC1et4028680; Wed, 31 Aug 2005 14:01:40 +0200 (MEST) Received: from raysrv4.intern.netuse.de (localhost [127.0.0.1]) by raysrv4.intern.netuse.de (8.12.10+Sun/8.12.2) with ESMTP id j7VC1eZb021493; Wed, 31 Aug 2005 14:01:40 +0200 (MEST) Received: (from pge@localhost) by raysrv4.intern.netuse.de (8.12.10+Sun/8.12.10/Submit) id j7VC1ei2021492; Wed, 31 Aug 2005 14:01:40 +0200 (MEST) Date: Wed, 31 Aug 2005 14:01:39 +0200 From: Pia Gerhardt To: Alexander Leidinger Message-ID: <20050831120139.GC28448@raysrv4.netuse.de> References: <20050831070748.GA10153@raysrv1.netuse.de> <20050831115215.6fx8wellc0cs8s8g@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050831115215.6fx8wellc0cs8s8g@netchild.homeip.net> User-Agent: Mutt/1.4.2.1i X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.31.1.0; VDF 6.31.1.198 X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.31.1.0; VDF 6.31.1.198 Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio fullduplex on 5.4-RELEASE? 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: Wed, 31 Aug 2005 12:01:45 -0000 On Wed, 31 Aug 2005 11:52 +0200, Alexander Leidinger wrote: > Pia Gerhardt wrote: > > >Hi, > >I installed a 5.4-RELEASE over ftp just yesterday, and > >managed to make uaudio output work on my logitech 350 > >USB headset with a minor patch. I was wondering if there > >is some way to make fullduplex on uaudio work in this > >release. > > Some USB chips have problems with fullduplex operation. Because of this it's > disabled by default. AFAIK it's not known if it is a problem with our USB > subsystem or not. Hi, accidently forgot to cc the list. I think its worth a try. Whats the most elegant way to enable it? Regards, Pia Gerhardt > From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 20:24:05 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 25ED816A41F for ; Wed, 31 Aug 2005 20:24:05 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83CBE43D45 for ; Wed, 31 Aug 2005 20:24:03 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FE28.dip.t-dialin.net [84.165.254.40]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7VKEtmv027290; Wed, 31 Aug 2005 22:15:06 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7VKN9hR053910; Wed, 31 Aug 2005 22:23:09 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Wed, 31 Aug 2005 22:23:09 +0200 From: Alexander Leidinger To: Clemens Ladisch Message-ID: <20050831222309.112e3e5c@Magellan.Leidinger.net> In-Reply-To: References: <20050831115215.6fx8wellc0cs8s8g@netchild.homeip.net> X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio fullduplex on 5.4-RELEASE? 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: Wed, 31 Aug 2005 20:24:05 -0000 On Wed, 31 Aug 2005 13:41:57 +0200 (METDST) Clemens Ladisch wrote: > Alexander Leidinger wrote: > > Some USB chips have problems with fullduplex operation. AFAIK it's > > not known if it is a problem with our USB subsystem or not. > > Which chips? There are devices (some from Edirol and M-Audio) that do > not support full duplex with higher sample rates (and where this is > documented), but most should work just fine. I was talking about USB controllers, not about Audio chips. AFAIR there seems to be a problem with ohci controllers, while uhci controllers seems to work as expected. This may be a problem in the USB stack. Bye, Alexander. -- It is easier to fix Unix than to live with NT. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 20:32:03 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 3EC7716A41F for ; Wed, 31 Aug 2005 20:32:03 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9867743D45 for ; Wed, 31 Aug 2005 20:32:02 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FE28.dip.t-dialin.net [84.165.254.40]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7VKMsXj027326; Wed, 31 Aug 2005 22:23:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7VKV8YK055072; Wed, 31 Aug 2005 22:31:08 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Wed, 31 Aug 2005 22:31:07 +0200 From: Alexander Leidinger To: Pia Gerhardt Message-ID: <20050831223107.09d415a1@Magellan.Leidinger.net> In-Reply-To: <20050831120139.GC28448@raysrv4.netuse.de> References: <20050831070748.GA10153@raysrv1.netuse.de> <20050831115215.6fx8wellc0cs8s8g@netchild.homeip.net> <20050831120139.GC28448@raysrv4.netuse.de> X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio fullduplex on 5.4-RELEASE? 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: Wed, 31 Aug 2005 20:32:03 -0000 On Wed, 31 Aug 2005 14:01:39 +0200 Pia Gerhardt wrote: > On Wed, 31 Aug 2005 11:52 +0200, Alexander Leidinger wrote: > > Pia Gerhardt wrote: > > > > >Hi, > > >I installed a 5.4-RELEASE over ftp just yesterday, and > > >managed to make uaudio output work on my logitech 350 > > >USB headset with a minor patch. I was wondering if there > > >is some way to make fullduplex on uaudio work in this > > >release. > > > > Some USB chips have problems with fullduplex operation. Because of this it's > > disabled by default. AFAIK it's not known if it is a problem with our USB > > subsystem or not. > > Hi, > accidently forgot to cc the list. I think its worth a try. Whats the > most elegant way to enable it? You have to enable it by modifying a source file. But I don't remember which one and how. Maybe google is able to find how to do it. Someone mentioned it somewhere on the FreeBSD lists. Bye, Alexander. -- Where do you think you're going today? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 20:43:05 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 2A3F216A437 for ; Wed, 31 Aug 2005 20:43:05 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.tele2.se [212.247.155.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8826243D45 for ; Wed, 31 Aug 2005 20:43:04 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-39-191.daxnet.no ([193.217.39.191] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 235607708; Wed, 31 Aug 2005 22:43:02 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Wed, 31 Aug 2005 22:43:54 +0200 User-Agent: KMail/1.7 References: <20050831070748.GA10153@raysrv1.netuse.de> <20050831120139.GC28448@raysrv4.netuse.de> <20050831223107.09d415a1@Magellan.Leidinger.net> In-Reply-To: <20050831223107.09d415a1@Magellan.Leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508312243.55828.hselasky@c2i.net> Cc: Alexander Leidinger Subject: Re: uaudio fullduplex on 5.4-RELEASE? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 20:43:05 -0000 On Wednesday 31 August 2005 22:31, Alexander Leidinger wrote: > On Wed, 31 Aug 2005 14:01:39 +0200 > > Pia Gerhardt wrote: > > On Wed, 31 Aug 2005 11:52 +0200, Alexander Leidinger wrote: > > > Pia Gerhardt wrote: > > > >Hi, > > > >I installed a 5.4-RELEASE over ftp just yesterday, and > > > >managed to make uaudio output work on my logitech 350 > > > >USB headset with a minor patch. I was wondering if there > > > >is some way to make fullduplex on uaudio work in this > > > >release. > > > > > > Some USB chips have problems with fullduplex operation. Because of th= is > > > it's disabled by default. AFAIK it's not known if it is a problem with > > > our USB subsystem or not. > > > > Hi, > > accidently forgot to cc the list. I think its worth a try. Whats the > > most elegant way to enable it? > > You have to enable it by modifying a source file. But I don't remember > which one and how. > > Maybe google is able to find how to do it. Someone mentioned it > somewhere on the FreeBSD lists. > > Bye, > Alexander. Here, found this in the archives: On Friday 22 April 2005 06:39, Kazuhito HONDA wrote: > the uaudio driver doesn't allow USB devices to > open playback and record channel pipe, simultaneously, > if in FreeBSD-stable, at line 3650 of uaudio.c as below: > > =A0 =A0 =A0 =A0 if ((sc->sc_playchan.pipe !=3D NULL) || (sc->sc_recchan.p= ipe !=3D > NULL)) return (-1); /src/sys/dev/sound/usb/uaudio.c Then if you have "uaudio" in the kernel, recompile the kernel. Else recompi= le=20 the module, "sys/modules/uaudio". If full duplex doesn't work, then:=20 Download the three files below into a new directory and type=20 "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Then recompile all USB modules and/or kernel, depending on your configurati= on.=20 Here is a quick USB-module compile script: #!/bin/sh cd /sys/modules/aue && make depend all install clean cd /sys/modules/axe && make depend all install clean cd /sys/modules/cdce && make depend all install clean cd /sys/modules/cue && make depend all install clean cd /sys/modules/if_ndis && make depend all install clean cd /sys/modules/kue && make depend all install clean cd /sys/modules/ndis && make depend all install clean cd /sys/modules/netgraph/bluetooth/ubtbcmfw && make depend all install clean cd /sys/modules/netgraph/bluetooth/ubt && make depend all install clean cd /sys/modules/rue && make depend all install clean cd /sys/modules/sound/driver/uaudio && make depend all install clean cd /sys/modules/ubsa && make depend all install clean cd /sys/modules/ubser && make depend all install clean cd /sys/modules/ucom && make depend all install clean cd /sys/modules/ucycom && make depend all install clean cd /sys/modules/udav && make depend all install clean cd /sys/modules/udbp && make depend all install clean cd /sys/modules/ufm && make depend all install clean cd /sys/modules/uftdi && make depend all install clean cd /sys/modules/ugen && make depend all install clean cd /sys/modules/uhid && make depend all install clean cd /sys/modules/ukbd && make depend all install clean cd /sys/modules/ulpt && make depend all install clean cd /sys/modules/umass && make depend all install clean cd /sys/modules/umct && make depend all install clean cd /sys/modules/umodem && make depend all install clean cd /sys/modules/ums && make depend all install clean cd /sys/modules/uplcom && make depend all install clean cd /sys/modules/ural && make depend all install clean cd /sys/modules/urio && make depend all install clean cd /sys/modules/usb && make depend all install clean cd /sys/modules/uscanner && make depend all install clean cd /sys/modules/uvisor && make depend all install clean cd /sys/modules/uvscom && make depend all install clean =2D-HPS From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 31 21:01:47 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 6392016A41F for ; Wed, 31 Aug 2005 21:01:47 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id D311C43D45 for ; Wed, 31 Aug 2005 21:01:46 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-37-15.daxnet.no ([193.217.37.15] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 252470274 for freebsd-multimedia@freebsd.org; Wed, 31 Aug 2005 23:01:15 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Wed, 31 Aug 2005 23:02:08 +0200 User-Agent: KMail/1.7 References: <20050831070748.GA10153@raysrv1.netuse.de> <20050831223107.09d415a1@Magellan.Leidinger.net> <200508312243.55828.hselasky@c2i.net> In-Reply-To: <200508312243.55828.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508312302.09539.hselasky@c2i.net> Subject: Re: uaudio fullduplex on 5.4-RELEASE? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 21:01:47 -0000 > > Here, found this in the archives: > > On Friday 22 April 2005 06:39, Kazuhito HONDA wrote: > > the uaudio driver doesn't allow USB devices to > > open playback and record channel pipe, simultaneously, > > if in FreeBSD-stable, at line 3650 of uaudio.c as below: > > > > =A0 =A0 =A0 =A0 if ((sc->sc_playchan.pipe !=3D NULL) ||=20 > > =A0 =A0 =A0 =A0 (sc->sc_recchan.pipe !=3D NULL)) return (-1); ^^^ you can remove this =2D-HPS From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 1 08:16:24 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 555A516A41F for ; Thu, 1 Sep 2005 08:16:24 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from phws.ph.noda.tus.ac.jp (phws.ph.noda.tus.ac.jp [133.31.102.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id E77B743D49 for ; Thu, 1 Sep 2005 08:16:23 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost (unknown [133.31.111.131]) by phws.ph.noda.tus.ac.jp (Postfix) with ESMTP id 4882F4D804B; Thu, 1 Sep 2005 17:15:52 +0900 (JST) Date: Thu, 01 Sep 2005 17:16:21 +0900 (JST) Message-Id: <20050901.171621.343192221.kazuhito@ph.noda.tus.ac.jp> To: skywizard@MyBSD.org.my From: Kazuhito HONDA In-Reply-To: <20050829072613.3eb2b46e.skywizard@MyBSD.org.my> References: <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> <20050829072613.3eb2b46e.skywizard@MyBSD.org.my> X-Mailer: Mew version 3.3 on XEmacs 21.5-b18 (chestnut) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound patches and volume problems? 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: Thu, 01 Sep 2005 08:16:24 -0000 Hello, From: Ariff Abdullah Subject: Re: Sound patches and volume problems? Date: Mon, 29 Aug 2005 07:26:13 +0800 > but I do suspect it's all about incorrect volume resolution or > perhaps volume miscalculation within uaudio.c. Ah, though it may not be related to that problem, uaudio.c has one bug about volume calculation at least. This sometimes gives a USB audio device an unexpected value. But this doesn't affect when the volume is small. Sincerely yours kazuhito HONDA kazuhito@ph.noda.tus.ac.jp --- uaudio.c.orig Thu Sep 1 16:51:34 2005 +++ uaudio.c Thu Sep 1 16:52:13 2005 @@ -4130,10 +4130,10 @@ uaudio_mixer_set(device_t dev, unsigned if (mc->ctl == type) { if (mc->nchan == 2) { /* set Right */ - uaudio_ctl_set(sc, SET_CUR, mc, 1, (int)(right*256)/100); + uaudio_ctl_set(sc, SET_CUR, mc, 1, (int)(right*255)/100); } /* set Left or Mono */ - uaudio_ctl_set(sc, SET_CUR, mc, 0, (int)(left*256)/100); + uaudio_ctl_set(sc, SET_CUR, mc, 0, (int)(left*255)/100); } } return; From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 2 17:21:13 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 2913916A41F for ; Fri, 2 Sep 2005 17:21:13 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from t-mta3.odn.ne.jp (mfep3.odn.ne.jp [143.90.131.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 892CD43D46 for ; Fri, 2 Sep 2005 17:21:11 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([219.66.56.243]) by t-mta3.odn.ne.jp with ESMTP id <20050902172110492.MJVI.496069.t-mta3.odn.ne.jp@mta3.odn.ne.jp>; Sat, 3 Sep 2005 02:21:10 +0900 Date: Sat, 03 Sep 2005 02:21:10 +0900 (JST) Message-Id: <20050903.022110.846932674.kazuhito@ph.noda.tus.ac.jp> To: hselasky@c2i.net From: Kazuhito HONDA In-Reply-To: Your message of "Wed, 31 Aug 2005 22:43:54 +0200". <200508312243.55828.hselasky@c2i.net> X-Mailer: Mew version 3.3 on XEmacs 21.4.17 (Jumbo Shrimp) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Alexander@leidinger.net Subject: Re: uaudio fullduplex on 5.4-RELEASE? 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: Fri, 02 Sep 2005 17:21:13 -0000 Hello, In <200508312243.55828.hselasky@c2i.net>, hselasky@c2i.net wrote: >> Then if you have "uaudio" in the kernel, recompile the kernel. Else recompile >> the module, "sys/modules/uaudio". If full duplex doesn't work, then: >> >> Download the three files below into a new directory and type >> "make install" (to uninstall type "make deinstall") >> http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile >> http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 >> http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 I checked that uaudio fullduplex worked with no problem by this patch. When do you apply the patch to the source tree? Would you please remove the codes to forbid uaudio fullduplex at that time? Sincerely yours, Kazuhito HONDA From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 2 18:53:54 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 DA20C16A41F for ; Fri, 2 Sep 2005 18:53:53 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D1A43D45 for ; Fri, 2 Sep 2005 18:53:50 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-120-97.daxnet.no ([193.216.120.97] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 253938180; Fri, 02 Sep 2005 20:53:46 +0200 From: Hans Petter Selasky To: Kazuhito HONDA Date: Fri, 2 Sep 2005 20:54:44 +0200 User-Agent: KMail/1.7 References: <20050903.022110.846932674.kazuhito@ph.noda.tus.ac.jp> In-Reply-To: <20050903.022110.846932674.kazuhito@ph.noda.tus.ac.jp> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_1/JGDwqu5uxGgO6" Message-Id: <200509022054.45785.hselasky@c2i.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio fullduplex on 5.4-RELEASE? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 18:53:54 -0000 --Boundary-00=_1/JGDwqu5uxGgO6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 02 September 2005 19:21, Kazuhito HONDA wrote: > Hello, > > In <200508312243.55828.hselasky@c2i.net>, hselasky@c2i.net wrote: > >> Then if you have "uaudio" in the kernel, recompile the kernel. Else > >> recompile > >> > >> the module, "sys/modules/uaudio". If full duplex doesn't work, then: > >> > >> Download the three files below into a new directory and type > >> "make install" (to uninstall type "make deinstall") > >> http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile > >> http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 > >> http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 > > I checked that uaudio fullduplex worked with no problem by this patch. > When do you apply the patch to the source tree? I haven't got any commit rights so I cannot do so much. My plan is to port my patch kit to NetBSD. Then FreeBSD and NetBSD can be upgraded at the same time, without ending up with two different branches. This is one reason someone is using, for holding my patch kit back. My patch kit should support everything that you need for high-speed multimedia: OHCI : isochronous (tested) UHCI : isochronous (tested) EHCI : low speed isocronous (tested) EHCI : high speed isocronous (not tested on real devices, but assumed to work) Also my system will automatically adjust in case of data underflow. At this point you can just forget the official USB drivers for *BSD. Also the official EHCI driver completely lacks isochronous support. My patch kit also includes a new USB API, that can easily get your uaudio driver out if Giant. See "/sys/dev/usb2/_ugen.c" for some examples on how to use it. I have a newer version of "_ugen.c" that fully supports isochronous transfers, read and write. Please have a look at the attached file, if the list mailer doesn't strip it off then. Note: the attached file does not compile with "new_usb_1_5_4", hence there are some missing ioctl definitions. > Would you please remove the codes > to forbid uaudio fullduplex at that time? I have added this to my todo file, and will include a patch for this in my distribution next time I make a release. Ok. Do you know of any USB audio devices that use USB 2.0? You might have to change the code a little bit, hence USB 2.0 processes 8 times as many frames per second as USB 1.x. See "/sys/dev/usb2/_ugen.c" for how you can test for USB2.0. Note that you cannot send more than 0xC00 bytes per frame, with highspeed isochronous transfers. So maybe you have to spread sound data over multiple frames. Yours, --HPS --Boundary-00=_1/JGDwqu5uxGgO6-- From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 2 23:42:25 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 8340C16A41F for ; Fri, 2 Sep 2005 23:42:25 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FC4F43D46 for ; Fri, 2 Sep 2005 23:42:24 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IM700HWERA6WH30@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Sat, 03 Sep 2005 01:44:30 +0200 (CEST) Received: from kg-work.kg4.no ([80.202.174.153]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IM7000NPRC1DKQ0@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Sat, 03 Sep 2005 01:45:38 +0200 (CEST) Date: Sat, 03 Sep 2005 01:42:22 +0200 From: Torfinn Ingolfsen 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 In-reply-to: <20050901.171621.343192221.kazuhito@ph.noda.tus.ac.jp> To: freebsd-multimedia@freebsd.org Message-id: <20050903014222.120b1a10.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> <20050829072613.3eb2b46e.skywizard@MyBSD.org.my> <20050901.171621.343192221.kazuhito@ph.noda.tus.ac.jp> Subject: Re: Sound patches and volume problems? 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: Fri, 02 Sep 2005 23:42:25 -0000 On Thu, 01 Sep 2005 17:16:21 +0900 (JST) Kazuhito HONDA wrote: > Ah, though it may not be related to that problem, You are right, the patch doesn't change the symptom of the problem I'm seeing. However, as far as I can tell, it doen't have any negative effects either. -- Yours, Torfinn Ingolfsen, Norway