From owner-freebsd-usb@FreeBSD.ORG Tue Dec 15 14:11:29 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 945421065672 for ; Tue, 15 Dec 2009 14:11:29 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 66DB68FC13 for ; Tue, 15 Dec 2009 14:11:29 +0000 (UTC) Received: from cherry2.sanpei.org (j069113.ppp.asahi-net.or.jp [61.213.69.113]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id 839B771DD4 for ; Tue, 15 Dec 2009 23:11:28 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by cherry2.sanpei.org (8.14.3/8.14.3) with ESMTP id nBFEBRwj077839; Tue, 15 Dec 2009 23:11:28 +0900 (JST) (envelope-from sanpei@sanpei.org) Date: Tue, 15 Dec 2009 23:11:27 +0900 (JST) Message-Id: <20091215.231127.475793127247154414.sanpei@sanpei.org> To: freebsd-usb@freebsd.org From: MIHIRA Sanpei Yoshiro X-Mailer: Mew version 6.2 on Emacs 22.3 / Mule 5.0 (SAKAKI) 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-4.2.3 (cherry2.sanpei.org [127.0.0.1]); Tue, 15 Dec 2009 23:11:28 +0900 (JST) Subject: 5.1-channel USB sound device on 8.0-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2009 14:11:29 -0000 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/u1soundt4.html This device is 5.1-channel USB sound device. Without patch, ``No playback!'' ugen0.6: at usbus0 uaudio1: 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: 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;