From owner-FreeBSD-users-jp@jp.FreeBSD.org Fri Jul 22 22:33:31 2005
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id j6MDXVB89228;
	Fri, 22 Jul 2005 22:33:31 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from mailgw.kanazawa-u.ac.jp (mailgw.kanazawa-u.ac.jp [133.28.20.10])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id j6MDXTh89123
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Fri, 22 Jul 2005 22:33:30 +0900 (JST)
	(envelope-from hirano@t.kanazawa-u.ac.jp)
Received: from smtpin01.ipc.kanazawa-u.ac.jp (smtpin01.ipc.kanazawa-u.ac.jp [133.28.27.201])
	by mailgw.kanazawa-u.ac.jp (8.12.10/8.12.10) with ESMTP id j6MDX2gQ002833;
	Fri, 22 Jul 2005 22:33:02 +0900 (JST)
Received: from smtpin01.ipc.kanazawa-u.ac.jp (localhost [127.0.0.1])
	by localhost.kanazawa-u.ac.jp (Postfix) with ESMTP
	id C702898AB; Fri, 22 Jul 2005 22:31:01 +0900 (JST)
Received: from pisces.naklab.ec.t.kanazawa-u.ac.jp (pisces.ec.t.kanazawa-u.ac.jp [133.28.97.33])
	by smtpin01.ipc.kanazawa-u.ac.jp (Postfix) with ESMTP
	id 73BF998A9; Fri, 22 Jul 2005 22:31:01 +0900 (JST)
Received: from localhost (sagitta.naklab.ec.t.kanazawa-u.ac.jp [192.168.1.47])
	by pisces.naklab.ec.t.kanazawa-u.ac.jp (8.13.3/8.13.1) with ESMTP id j6MDV1Lq065582;
	Fri, 22 Jul 2005 22:31:01 +0900 (JST)
	(envelope-from hirano@t.kanazawa-u.ac.jp)
Message-Id: <20050722.223105.45517500.hirano@t.kanazawa-u.ac.jp>
To: bsd-usb@clave.gr.jp, FreeBSD-users-jp@jp.FreeBSD.org
From: Akihiro HIRANO <hirano@t.kanazawa-u.ac.jp>
X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.86.1, clamav-milter version 0.86 on pisces.naklab.ec.t.kanazawa-u.ac.jp
X-Virus-Status: Clean
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Fri, 22 Jul 2005 22:31:05 +0900
X-Sequence: FreeBSD-users-jp 86170
Subject: [FreeBSD-users-jp 86170] [USB =?ISO-2022-JP?B?GyRCSVRGMBsoQg==?=
 =?ISO-2022-JP?B?GyRCOm5KczlwGyhC?=] TASCAM US-122
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: hirano@t.kanazawa-u.ac.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+050320

$BJ?Ln(B@$B6bBtBg$G$9!#(B

$B!!:#EY$O!"F0$+$J$+$C$?$H$$$&Js9p$G$9!#(B

$B!!(BTASCAM$B$N(BUS-122$B$H$$$&(BUSB$B%*!<%G%#%*(BI/F$B$G!"(BUSB$B5kEE$GF0:n$7$F!"%U%!%s%H(B
$B%`EE8;$b6!5k$G$-$k$H$$$&M%$l$b$N$G$9!#%P%C%F%j6nF0$N%N!<%H%Q%=%3%s$GO?(B
$B2;$H$$$&L\O@8+$G!D(B


========================================================================
1. $B$*;H$$$N(B USB $B%G%P%$%9$N@5<0L>>N!"%a!<%+!<!#$G$-$l$P@=IJ$X$N(B URL$B$b!#(B

$BL>>N(B: USB$B%*!<%G%#%*(B/MIDI$B%$%s%?!<%U%'!<%9(B
$B%a!<%+!<(B: TASCAM
$B7?HV(B: US-122
URL: http://www.teac.co.jp/tascam/products/us122/index.html


2. $B$*;H$$$N(B OS $B$N(B $B%P!<%8%g%s!"$D$^$j(B uname -r$B$N7k2L(B
    ($B$G$-$l$P(B-CURRENT$B!"(B-STABLE $B$N>l9g$O$$$D$N(B cvsup $B$7$?$+$b(B)$B!#(B

5.4-RELEASE-p4

$B!!$J$*!"(BUSB$B%5%&%s%I%I%i%$%P$O2<5-$K99?7$7$F!"$5$i$KDI2C%Q%C%A$rEv$F$F(B
$B$bJQ2=$O$J$$!#(B

uaudio.c:/*     $FreeBSD: src/sys/dev/sound/usb/uaudio.c,v 1.7.8.2 2005/04/15 04:15:24 julian Exp $: */
uaudio.h:/* $FreeBSD: src/sys/dev/sound/usb/uaudio.h,v 1.1.10.2 2005/04/15 04:15:24 julian Exp $ */
uaudio_pcm.c:/* $FreeBSD: src/sys/dev/sound/usb/uaudio_pcm.c,v 1.5.2.3 2005/04/20 06:43:41 julian Exp $ */
uaudioreg.h:/* $FreeBSD: src/sys/dev/sound/usb/uaudioreg.h,v 1.2.8.2 2005/04/15 04:15:24 julian Exp $ */

$B!Z%Q%C%A![(B
========================================================================
--- sys/dev/sound/usb/uaudio_pcm.c.orig	Thu Jul 21 21:52:56 2005
+++ sys/dev/sound/usb/uaudio_pcm.c	Thu Jul 21 23:32:03 2005
@@ -346,7 +346,9 @@
 
 	pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua);
 #ifndef NO_RECORDING
-	pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua);
+	if (ua_recfmt[0] != 0) {
+		pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua);
+	}
 #endif
 	pcm_setstatus(dev, status);
========================================================================


3. USB $B%G%P%$%9$rG'<1$7$F$$$k$H$3$m$N(B /var/log/messages

ugen0: vendor 0x1604 product 0x8006, rev 1.00/1.00, addr 2


4. usbdevs -v $B$N7k2L(B($B$3$l$OBgJQ=EMW$G$9!#$H$$$&$N$b!"@=IJ$r%f%K!<%/$K(B
   $B7hDj$G$-$k$+$i$G$9(B)

========================================================================
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 addr 2: full speed, power 100 mA, config 1, product 0x8006(0x8006), vendor 0x1604(0x1604), rev 1.00
 port 2 powered
========================================================================

5. $BF0:n$7$?$+!"$7$J$$$+!#F0:n$7$J$/$F$b>pJs$H$7$F$O=EMW$G$9(B!!

$BF0:n$7$J$$!#(B


6. $BB>$K5$$K$J$kE@!"Cm0UE@$K$D$$$F!#(B


7. $B%W%i%$%Y!<%H%a!<%k$r8x3+$7$F$h$$$+(B($B%G%U%)%k%H$G$O8x3+$7$^$9!#(B2ch $B$X(B
   $B$O(B link $B$rD%$j$^$9(B)$B!#(B

$BNI$$(B


8. $B<U<-$KL>A0$r:\$;$F$b$h$$$+$I$&$+(B($B%G%U%)%k%H$G$O:\$;$^$9(B)$B!#(B

$BNI$$(B

$B0J2<F0$+$J$+$C$?>l9g(B


9. Linux $B$G$OF0$$$F$$$k$+$I$&$+(B

$B!!F0$$$F$$$k$_$?$$$G$9!#(B
Advanced Linux Sound Architecture (ALSA) Project
http://www.alsa-project.org/alsa-doc/index.php?vendor=vendor-Tascam#matrix


10. USB$B%G%P%$%9$rJ,2r$7$F$_$F!"$I$N%A%C%W$,;H$o$l$F$$$k$+(B

$B!!(BALSA$B$N%Z!<%8$K$O!V(BEZUSB, FPGA$B!W$H$"$j$^$9!#(B


11. udesc_dump $B$N7k2L$r$D$1$k!#(B

========================================================================
Standard Device Descriptor:
  bLength            18
  bDescriptorType    01
  bcdUSB             0100
  bDeviceClass       ff
  bDeviceSubClass    ff
  bDeviceProtocol    ff
  bMaxPacketSize     64
  idVendor           1604
  idProduct          8006
  bcdDevice          0100
  iManufacturer      0
  iProduct           0
  iSerialNumber      0
  bNumConfigurations 1

Configuration 0:
	Standard Configuration Descriptor:
	  bLength             9
	  bDescriptorType     02
	  wTotalLength        218
	  bNumInterface       1
	  bConfigurationValue 1
	  iConfiguration      0
	  bmAttributes        80
	  bMaxPower           50 (100 mA)

	Standard Interface Descriptor:
	  bLength            9
	  bDescriptorType    04
	  bInterfaceNumber   0
	  bAlternateSetting  0
	  bNumEndpoints      0
	  bInterfaceClass    ff
	  bInterfaceSubClass ff
	  bInterfaceProtocol ff
	  iInterface         0

	Standard Interface Descriptor:
	  bLength            9
	  bDescriptorType    04
	  bInterfaceNumber   0
	  bAlternateSetting  1
	  bNumEndpoints      13
	  bInterfaceClass    ff
	  bInterfaceSubClass ff
	  bInterfaceProtocol ff
	  iInterface         0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 81 (in)
	  bmAttributes     03 (Interrupt)
	  wMaxPacketSize   16
	  bInterval        10

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 82 (in)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 02 (out)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 84 (in)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 04 (out)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 86 (in)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 06 (out)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 88 (in)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 08 (out)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 89 (in)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 09 (out)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 8a (in)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 0a (out)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Interface Descriptor:
	  bLength            9
	  bDescriptorType    04
	  bInterfaceNumber   0
	  bAlternateSetting  2
	  bNumEndpoints      13
	  bInterfaceClass    ff
	  bInterfaceSubClass ff
	  bInterfaceProtocol ff
	  iInterface         0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 81 (in)
	  bmAttributes     03 (Interrupt)
	  wMaxPacketSize   64
	  bInterval        10

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 82 (in)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 02 (out)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 84 (in)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 04 (out)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 86 (in)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 06 (out)
	  bmAttributes     02 (Bulk)
	  wMaxPacketSize   64
	  bInterval        0

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 88 (in)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   256
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 08 (out)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   256
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 89 (in)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 09 (out)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 8a (in)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1

	Standard Endpoint Descriptor:
	  bLength          7
	  bDescriptorType  05
	  bEndpointAddress 0a (out)
	  bmAttributes     01 (Isochronous)
	  wMaxPacketSize   16
	  bInterval        1
========================================================================


12. $B5,3J=q$,$"$l$P$=$N>l=j(B
========================================================================
----
$BJ?Ln989((B@$B6bBtBg3X(B $BBg3X1!(B $B<+A32J3X8&5f2J(B $BEE;R>pJs2J3X@l96(B
hirano@t.kanazawa-u.ac.jp
