From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 16 08:54:36 2009 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8D231065670 for ; Wed, 16 Dec 2009 08:54:36 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 1B8698FC13 for ; Wed, 16 Dec 2009 08:54:35 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=xe1oFy6MeuoA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=ORYuRroYAAAA:8 a=T-PJXEmqAAAA:8 a=iV6OMSzTAAAA:8 a=6I5d2MoRAAAA:8 a=6i1PtfrZMIfmk2XqdxIA:9 a=xG5SytKNwTGl4byZ7ioMehP6SfkA:4 a=vqM0cmb3qxAA:10 a=9Cyh9BETGlMA:10 a=9aOQ2cSd83gA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1325217843; Wed, 16 Dec 2009 09:54:33 +0100 From: Hans Petter Selasky To: Ariff Abdullah Date: Wed, 16 Dec 2009 09:56:23 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20091215.231127.475793127247154414.sanpei@sanpei.org> <200912151853.00749.hselasky@c2i.net> <20091216085538.672af2d6.ariff@FreeBSD.org> In-Reply-To: <20091216085538.672af2d6.ariff@FreeBSD.org> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200912160956.25441.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, sanpei@sanpei.org Subject: Re: 5.1-channel USB sound device on 8.0-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, 16 Dec 2009 08:54:36 -0000 On Wednesday 16 December 2009 01:55:38 Ariff Abdullah wrote: > On Tue, 15 Dec 2009 18:52:59 +0100 > > Hans Petter Selasky wrote: > > On Tuesday 15 December 2009 15:11:27 MIHIRA Sanpei Yoshiro wrote: > > > Hi. > > > > > > I tested below device on 8.0-RELEASE with patch. > > > > > > >*1 Kyo-On DIGI(sorry,this page was writtin in Japanese) > > > >http://www.area-powers.jp/product/usb_product/product/kyo-on/u1s > > > >oundt4.htm l > > > > > > This device is 5.1-channel USB sound device. > > > > > > Without patch, ``No playback!'' > > > ugen0.6: at usbus0 > > > uaudio1: > > addr 6> on usbus0 uaudio1: No playback! > > > uaudio1: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format > > > uaudio1: No midi sequencer > > > pcm1: on uaudio1 > > > > > > With patch: > > > uaudio1: > > addr 6> on usb us0 > > > uaudio1: Play: 48000 Hz, 8 ch, 16-bit S-LE PCM format > > > uaudio1: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format > > > uaudio1: No midi sequencer > > > pcm1: on uaudio1 > > > > > > But I could not play with mpg123, only noise. > > > How can I use this device on 8.0-RELEASE. > > > > > > Cheers. > > > --- > > > MIHIRA, Sanpei Yoshiro > > > Tokyo, Japan. > > > > > > > > > http://freebsd.monkey.org/freebsd-usb/200905/msg00090.html > > > > > > --- sys/dev/sound/usb/uaudio.c.org 2009-12-07 10:29:05.593175070 > > > +0900 +++ sys/dev/sound/usb/uaudio.c 2009-12-07 10:29:51.030304905 > > > +0900 @@ -112,7 +112,8 @@ > > > > > > #define MAKE_WORD(h,l) (((h) << 8) | (l)) > > > #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1) > > > -#define UAUDIO_MAX_CHAN(x) (x) > > > +#define UAUDIO_MAX_CHAN(x) (((x) < 2) ? (x) : 2) /* XXX > > > fixme later */ + > > > > > > struct uaudio_mixer_node { > > > int32_t minval; > > > > Hi, > > > > Your audio device does not provide a 2 or 1 channel alternate > > setting. > > > > Currently the PCM sound system does not support more than 2 > > channels. > > It does. > > > That's why it doesn't work. > > > > Feel free to start working on a more complete patch. > > Sent him a patch 6 months ago, without reply. Here it is, again: > > http://people.freebsd.org/~ariff/uaudio_multi.diff > Hi, There is one more change you need to do in uaudio.c before it works. I will get this integrated into USB P4! Thanks! --HPS