Date: Tue, 15 Dec 2009 23:11:27 +0900 (JST) From: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org> To: freebsd-usb@freebsd.org Subject: 5.1-channel USB sound device on 8.0-RELEASE Message-ID: <20091215.231127.475793127247154414.sanpei@sanpei.org>
next in thread | raw e-mail | index | archive | help
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: <vendor 0x0d8c> at usbus0 uaudio1: <vendor 0x0d8c product 0x0006, class 0/0, rev 1.10/0.10, addr 6> on usbus0 uaudio1: No playback! uaudio1: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format uaudio1: No midi sequencer pcm1: <USB audio> on uaudio1 With patch: uaudio1: <vendor 0x0d8c product 0x0006, class 0/0, rev 1.10/0.10, 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: <USB audio> 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091215.231127.475793127247154414.sanpei>