Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2012 22:34:22 -0200
From:      Marcel Bonnet <marcelbonnet@gmail.com>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: USB audio 2.0 testers wanted
Message-ID:  <CAPe0dBns7-NEM1QZkZG=7ZFba1uw7tyVS053BCy=bVabRJyN=A@mail.gmail.com>
In-Reply-To: <CAPe0dBkmmZq4Tt%2B0vAoPinOvdmWv=Q4YzVhxKWk1P0rQ5o7J=A@mail.gmail.com>
References:  <201211080816.56068.hselasky@c2i.net> <20121109175928.0885f564@davenulle.org> <20121109190124.03b639f722907b66c1537fc2@getmail.no> <CAPe0dBkmmZq4Tt%2B0vAoPinOvdmWv=Q4YzVhxKWk1P0rQ5o7J=A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9 November 2012 18:05, Marcel Bonnet <marcelbonnet@gmail.com> wrote:
> On 9 November 2012 16:01, Torfinn Ingolfsen
> <torfinn.ingolfsen@getmail.no> wrote:
>> On Fri, 09 Nov 2012 17:59:28 +0100
>> Patrick Lamaiziere <patfbsd@davenulle.org> wrote:
>>
>>>
>>> Hmmm, How we know if a device is audio 2.0?
>>
>> I was wondering the same thing. :)
>> I have a set of USB speakers, model J1116U from Jazz Speakers[1].
>> They show up like this in /var/log/messages:
>> Nov  9 18:45:00 kg-v2 kernel: ugen0.3: <C-Media INC.> at usbus0
>> Nov  9 18:45:01 kg-v2 root: Unknown USB device: vendor 0x0d8c product 0x0001 bus uhub0
>> Nov  9 18:45:01 kg-v2 kernel: uaudio0: <C-Media INC. USB Audio, class 0/0, rev 1.10/0.10, addr 3> on usbus0
>> Nov  9 18:45:01 kg-v2 kernel: uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format.
>> Nov  9 18:45:01 kg-v2 kernel: uaudio0: No recording.
>> Nov  9 18:45:01 kg-v2 kernel: uaudio0: No midi sequencer.
>> Nov  9 18:45:01 kg-v2 kernel: pcm3: <USB audio> on uaudio0
>>
>> usbconfig output:
>> root@kg-v2# usbconfig -u 0 -a 3 dump_device_desc
>> ugen0.3: <USB Audio C-Media INC.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
>>
>>   bLength = 0x0012
>>   bDescriptorType = 0x0001
>>   bcdUSB = 0x0110
>>   bDeviceClass = 0x0000
>>   bDeviceSubClass = 0x0000
>>   bDeviceProtocol = 0x0000
>>   bMaxPacketSize0 = 0x0008
>>   idVendor = 0x0d8c
>>   idProduct = 0x0001
>>   bcdDevice = 0x0010
>>   iManufacturer = 0x0001  <C-Media INC.>
>>   iProduct = 0x0002  <USB Audio>
>>   iSerialNumber = 0x0000  <no string>
>>   bNumConfigurations = 0x0001
>>
>> This is on
>> root@kg-v2# uname -a
>> FreeBSD kg-v2.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #6: Fri Apr 27 23:50:55 CEST 2012
>>      root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
>>
>> HTH
>>
>> References:
>> 1) http://www.jazzspeakers.com/
>> --
>> Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>
>
> Hi, I'm sorry, I asked the same thing to Hans, but in PVT.
> He said to install the port sysutils/usbutils and run:
> lsusb -vvv
>
> I'll try it later too!
> Cheers.
>


Hi, folks.

The bcdUSB field reports the highest version of USB the device
supports. The value is in binary coded decimal with a format of 0xJJMN
where JJ is the major version number, M is the minor version number
and N is the sub minor version number. e.g. USB 2.0 is reported as
0x0200, USB 1.1 as 0x0110 and USB 1.0 as 0x0100.

As suggested:

# lsusb -s0 -v

Bus /dev/usb Device /dev/ugen0.2: ID 0763:2012 Midiman
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0763 Midiman
  idProduct          0x2012
  bcdDevice            1.00
  iManufacturer           1 M-Audio
  iProduct                2 FastTrack Pro
  (...)

So, Hans, I think my interface is not eligible for the USB2.0 test you
need, right?

-- 
Marcel Bonnet
www.monovox.net.br



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPe0dBns7-NEM1QZkZG=7ZFba1uw7tyVS053BCy=bVabRJyN=A>